You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
<!-- statamic:hide -->
2
2
3
-
# Bard Color Picker
3
+
# Statamic Bard Text Color
4
4
5
5
<!-- /statamic:hide -->
6
6
@@ -9,10 +9,9 @@
9
9
## Features
10
10
11
11
- Set text color in Bard fields
12
-
- Customizable layouts
13
12
- Predefined color swatches
14
-
- Support for HEX, RGB, CMYK and more
15
13
- Beautiful and easy to use color panel
14
+
- Dark Mode Support
16
15
17
16
## Installation
18
17
@@ -30,16 +29,31 @@ Open the blueprint or fieldset that contains your Bard field, open the settings
30
29
31
30
## Configuration
32
31
33
-
If you want to change the layout, components or predefined colors, make sure that the configuration file is published by entering the following command:
32
+
If you want to define swatches or disable the color picker, make sure that the configuration file is published by entering the following command:
This addon uses the [@simonwep/pickr](https://github.com/Simonwep/pickr) package under the hood and supports many configuration options including different layouts.
40
-
41
38
Have a look at the [configuration file](config/bard-color-picker.php) for details.
42
39
40
+
## Migrate from 1.x
41
+
42
+
Instead of the @simonwep/pickr package, this addon uses a native HTML color picker since v2.0. This causes some breaking changes.
43
+
44
+
- Statamic 5 is required
45
+
- Colors are always saved in HEX format
46
+
- The [configuration file](config/bard-color-picker.php) has changed completely
47
+
48
+
After updating from v1.x to v2.0 we recommend to republish the addon configuration, overwrite old settings and define new ones:
0 commit comments