Adding colors to editor-color-palette.json ?
-
Hi. I’m trying to figure out how Understrap decides which colors to include in editor-color-palette.json (used to generate the Gutenberg color palette).
It seems like it uses the $colors map if defined in _child_theme_variables.scss but it doesn’t use all of them. If I un-set $colors the default BS colors are used, but if I define it using my color palette: …
$colors: ( "pink": $pink, "purple": $purple, "teal": $teal, "green": $green, "black": $black, "white": $white, "pink-65": $pink-65, "pink-26": $pink-26, "pink-10": $pink-10, "purple-65": $purple-65, "purple-26": $purple-26, "purple-10": $purple-10, "teal-65": $teal-65, "teal-26": $teal-26, "teal-10": $teal-10, "green-65": $green-65, "green-26": $green-26, "green-10": $green-10, );
… it’s only adding the following:
{ "--bs-pink": "#FB328F", "--bs-purple": "#443363", "--bs-teal": "#268899", "--bs-green": "#15CE20", "--bs-white": "#FFF" }
Why aren’t black, pink-65, pink-26, etc. being included?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding colors to editor-color-palette.json ?’ is closed to new replies.