This plugin add a field in Filament Form to help you to select color in the Tailwind color's palette.
You can support the development of this open-source package here
You need first a Filament installation working. For that, please read instructions on the Filament website.
You can install the package via composer:
composer require happytodev/filament-tailwind-color-picker
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-tailwind-color-picker-views"
For adding a background color picker :
TailwindColorPicker::make('backgroundColor')
->bgScope(),
When user choose a color in the tailwindcss palette, the value returned by the form will be for example :
bg-red-300
For adding a text color picker :
TailwindColorPicker::make('backgroundColor')
->textScope(),
When user choose a color in the tailwindcss palette, the value returned by the form will be for example :
text-red-300
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.