Open brettsmason opened 6 years ago
I'm not sure how far we're going to go with this in the build process. Ideas are welcome.
This ticket would definitely need to be addressed: https://github.com/WordPress/gutenberg/issues/6425
We should have some basic theme support registered for custom colors as an example for theme authors, at the very least.
Right now, I'm going to mark this for later. I think I need to build a Gutenberg-ready theme to really see how this might work. I could see this crossing from a config file over into the CSS, PHP, and potentially JS.
I think we'll need more time than we have before 1.0 to do this feature justice.
Now that Gutenberg supports registering color palettes how could we integrate this into the build system too?
We could add colors to a
json
file and use something like this: https://github.com/Updater/node-sass-json-importer (thanks @m-e-h).That way colors would only need updating in one place.