Open yankiara opened 4 years ago
EDIT: Added frontend CSS generation
Nice one, very useful.
Thank you, @yankiara, used that for a current project. Implemented via Code Snippet.
I would also love to see this! I was about to submit this request myself and then found this!
I was going to use this link as a code reference: https://www.billerickson.net/code/color-palette-setup-in-gutenberg/
This doesn't seem too difficult, as this color palette could simply be triggered to update upon changing the global color palette... or it could even be hooked to the regeneration of the CSS cache, since that happens every time global CSS options are updated!
Would love to see this implemented on Oxygen (assuming it's still being maintained)
@csaborio001
Would love to see this implemented on Oxygen (assuming it's still being maintained)
In the meantime, you can use my code snippet: https://www.altmann.de/en/blog-en/code-snippet-oxygen-colors-in-gutenberg/
Describe the feature you'd like to see included in Oxygen. Add an option to replace standard Gutenberg color palette with Oxygen global colors.
What are the use cases for this feature? Client can edit pages without breaking color design.
Here is the raw code for colors substitution and frontend CSS: