Adding custom color options for blocks #106
Replies: 3 comments 1 reply
-
This tutorial should also explore using theme-defined default colors. The "unofficial" standard for the two primary color slugs for themes is Another option for other scenarios is to allow themes to define colors via a |
Beta Was this translation helpful? Give feedback.
-
Issue created to move forward: Please continue discussion there.
|
Beta Was this translation helpful? Give feedback.
-
Created a new issue for the original topic here |
Beta Was this translation helpful? Give feedback.
-
Sometimes, block developers need to add custom color options that are not available as the default Text, Background, and Link color supports, as shown in this screenshot:
This question pops up from time to time, and it'd be good to have a solid resource on how to accomplish it. I've already written code for this in a plugin of my own: https://github.com/x3p0-dev/x3p0-progress/blob/1.0/resources/js/color/panel-color.js
Some things to note:
Beta Was this translation helpful? Give feedback.
All reactions