happytodev / filament-tailwind-color-picker
Specific Tailwindcss color picker for Filamentphp
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- dev-main
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/github_actions/stefanzweifel/git-auto-commit-action-5
- dev-dependabot/github_actions/actions/checkout-4
- dev-dependabot/github_actions/aglipanci/laravel-pint-action-2.3.0
- dev-dependabot/github_actions/ramsey/composer-install-2
- dev-develop
This package is auto-updated.
Last update: 2024-11-09 13:18:12 UTC
README
This plugin add a field in Filament Form to help you to select color in the Tailwind color's palette.
Screenshots
Single Tailwind Color Picker in Filament
Code integration example
Filament Tailwind Color Picker works perfectly with other filaments fields
Responsive on 1280x1024
Responsive on iPhone 12 Pro
Support us
You can support the development of this open-source package here
Installation
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"
Usage
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
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.