You’re defining custom colors for the Gutenberg Editor via the functions.php. When you highlight/mark a text with these colors, it doesn’t apply. And yes this is a behavior in Bricks. I have tried this on a fresh installation (local). Does anyone have a solution for this?
how did you define the color for Gutenberg? Can you give me the code and all the steps from defining a color to the testing, so I can reproduce it? Maybe best if you record a voiced video.
Themes are responsible for creating the classes that apply the colors in different contexts. Core blocks use “color”, “background-color”, and “border-color” contexts. So to correctly apply “strong magenta” to all contexts of core blocks a theme should implement the classes itself. The class name is built appending ‘has-‘, followed by the class name using kebab case and ending with the context name.
So in your case you have to add the following CSS:
I made the following setting in WPCodeBox 2 in the CSS file:
Where to insert the snippet: Custom Action: after_setup_theme
————-
Hello, thank you for your help. The colors are displayed on the frontend, thanks. But unfortunately, they are not displayed up in the backend, in the editor. Is there a solution for this? It’s really exhausting to work with the Gutenberg Editor.