themehybrid / mythic

Mythic is a next-generation starter theme designed to help theme authors write elegant, intelligent, and modern code.
https://themehybrid.com/themes/mythic
GNU General Public License v2.0
237 stars 43 forks source link

Theme color palette #23

Open brettsmason opened 6 years ago

brettsmason commented 6 years ago

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.

justintadlock commented 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.

justintadlock commented 6 years ago

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.