Create CSS color variables from within this plugin
-
Great plugin, thank you very much for your work!
Wouldn’t it be great if the color names maintained in Central Color Palette could be used as CSS variables?
E.g. if in Central Color Palette, “my-black” was the name of my own color version of “black”, I could then use this as if I had defined it in CSS as e.g.
:root { --my-black: #030201; }
and then use it like throughout WordPress e.g. like this
DIV { color: var(--my-black); }
Did I overlook something and it’s already working like this? Or what else is the use of the color names, besides appearing in some of the color pickers?
And if I may… another great wish would be for Multisite Installations to be able to use your plugin network-wide, e.g. like the “Code Snippets” plugin is enabling this. I gladly see that Central Color Palette works in Multisite, and it would be terrific to make color palettes available system-wide. The way Code Snippets implemented this is fabulously straightforward and simple.
Thank you so much for your consideration!
- The topic ‘Create CSS color variables from within this plugin’ is closed to new replies.