Text color picker with swatches for Bard fields.
Features
- Set text color in Bard fields
- Predefined color swatches
- Beautiful and easy to use color panel
- Dark Mode Support
Installation
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install or require it using Composer:
composer require ndx/statamic-bard-color-picker
How to use
Open the blueprint or fieldset that contains your Bard field, open the settings of that field and activate the text color button.
Configuration
If you want to define swatches or disable the color picker, make sure that the configuration file is published by entering the following command:
php artisan vendor:publish --tag=bard-color-picker-config
Have a look at the configuration file for details.
Migrate from 1.x
Instead of the @simonwep/pickr package, this addon uses a native HTML color picker since v2.0. This causes some breaking changes.
- Statamic 5 is required
- Colors are always saved in HEX format
- The configuration file has changed completely
After updating from v1.x to v2.0 we recommend to republish the addon configuration, overwrite old settings and define new ones:
php artisan vendor:publish --tag=bard-color-picker-config --force
Alternatively, you could rename the recommended
item to swatches
in your configuration.
About us
We develop digital solutions for all kinds of disciplines. From the idea and concepts to implementation and operation.
Visit our website: new-data-services.de