An open API service indexing awesome lists of open source software.

https://github.com/andreia/filament-cotton-candy-docs

A sweet light and dark theme for Filament PHP
https://github.com/andreia/filament-cotton-candy-docs

Last synced: 4 months ago
JSON representation

A sweet light and dark theme for Filament PHP

Awesome Lists containing this project

README

          

# Filament Cotton Candy Theme

A sweet light and dark theme for Filament PHP.

![Dashboard Light and Dark](https://raw.githubusercontent.com/andreia/filament-cotton-candy-docs/main/art/dashboard.jpg)

## Requirements

- Filament 4 or 5

## Features

- Scale down effect in buttons
- Rounded corners
- Transparency
- Soft colors on light mode

## Video

Check out how the theme looks when applied to Filament demo project:

[![Filament Cotton Candy Youtube Video](https://raw.githubusercontent.com/andreia/filament-cotton-candy-docs/main/art/youtube_cover.jpg)](https://youtu.be/lA2T1oKqVn0)

## Installation

> [!IMPORTANT]
> Regarding the payment, at the moment there is a limitation because Stripe does not support fee transfers between the Netherlands (where AnyStack is based) and Brazil (where I am currently based). If you encounter any issues related to this, you can contact me via email at andreiabohner@gmail.com, and I can provide an alternative.

## Activating Your License on AnyStack

Filament Cotton Candy Theme uses AnyStack to handle payment, licensing, and distribution. [You can buy it here](https://checkout.anystack.sh/filament-cotton-candy-theme).

During the purchasing process, AnyStack will provide you with a license key. Once your license key is activated, you can proceed with the Composer installation described below.

## Installing with Composer

Add the Filament Cotton Candy package to the repositories section of your `composer.json` file:

```
{
    "repositories": [
        {
            "type": "composer",
            "url": "https://filament-cotton-candy-theme.composer.sh"
        }
    ]
}
```

Once the repository has been added to the `composer.json` file, you can install like any other Composer package using the `composer require` command:

```bash
composer require filament-handbook/filament-cotton-candy-theme
```

Next, you will be prompted to provide your username and password.

```
Loading composer repositories with package information
Authentication required (filament-cotton-candy.composer.sh):
Username: [license-email]
Password: [license-key]
```

Your username will be your email address and the password will be your license key. For example, let's say we have the following email and license activation:

```
Contact email: your@email.com
License key: 04c21df8f-4890-7024-y2vk-6bny143ta642
```

You will need to enter the above information as follows when prompted for your credentials:

```
Loading composer repositories with package information
Authentication required (filament-cotton-candy.composer.sh):
Username: your@email.com
Password: 04c21df8f-4890-7024-y2vk-6bny143ta642
```

Add a new item to the `input` array of your `vite.config.js` file:

```js
'vendor/filament-handbook/filament-cotton-candy-theme/resources/css/theme.css'
```

Run:

```bash
npm run build
```

Register the plugin on your panel (e.g. `/app/Providers/Filament/AdminPanelProvider.php`):

```php
use FilamentHandbook\FilamentCottonCandyTheme\FilamentCottonCandyThemePlugin;

$panel
->plugin(FilamentCottonCandyThemePlugin::make())
```

You're all set!

## Color Palettes

Cotton Candy theme comes with 8 sweet color palettes:

### CandyGum
Pink candy vibes 💗

![CandyGum palette](./art/palette-candygum.svg)

### CandyLavender
Soft purple sweetness 💜

![CandyLavender palette](./art/palette-candylavender.svg)

### CandyPeach 🍑
Warm peachy tones

![CandyPeach palette](./art/palette-candypeach.svg)

### CandyMint 🍃
Fresh minty greens

![CandyMint palette](./art/palette-candymint.svg)

### CandyVanilla 🍨
Creamy vanilla yellows

![CandyVanilla palette](./art/palette-candyvanilla.svg)

### CandySky ☁️
Dreamy blue cotton candy

![CandySky palette](./art/palette-candysky.svg)

### CandyJelly 💙
Vibrant blue jelly candy

![CandyJelly palette](./art/palette-candyjelly.svg)

### CandyApricot 🧡
Sweet apricot orange

![CandyApricot palette](./art/palette-candyapricot.svg)

### Usage

You can use any of these palettes to override colors in your panel:

```php
use FilamentHandbook\FilamentCottonCandyTheme\Color;
use FilamentHandbook\FilamentCottonCandyTheme\FilamentCottonCandyThemePlugin;

$panel
->colors([
'primary' => Color::CandyLavender,
'secondary' => Color::CandyMint,
'accent' => Color::CandyApricot,
])
->plugin(FilamentCottonCandyThemePlugin::make())
```

By default, the primary color is `CandyGum`.

## Appearance

### Login



Login Light
Login Dark





Dashboard Light


Dashboard Dark


### Dashboard



Dashboard Light
Dashboard Dark





Dashboard Light


Dashboard Dark


### User Menu



User Menu Light
User Menu Dark





User Menu Light


User Menu Dark


### Product



Create Product Light
Create Product Dark





Create Product Light


Create Product Dark


### Order



Order List Light
Order List Dark





Order List Light


Order List Dark




Create Order Light
Create Order Dark





Create Order Light


Create Order Dark