Feature request: multiple color palettes

If we could create multiple color palettes it would be easier to switch between and try out different color schemes during development. We could also design several color schemes for our clients to pick which one they want to use. Another example of how this might be useful is if we wanted to create a dark mode. For the dark mode idea to be useful there would have to be a site visitor facing button/toggle that could load an alternative color palette, so this may be loosely related to my other request.

Hey @JvP,

Unfortunately, this is a steep one. We’ll keep it in mind but I don’t see it being something we tackle anytime soon because of challenges adding another management layer. What I’ll do for now is add a filter that will allow custom code to manipulate the colors. It would work something like this:

add_filter( 'cs_color_items', function( $items ) {
  //dynamically change colors in here
  return $items;
});

At a minimum that would allow the colors to be overwritten right before the CSS is generated, but it would take some work to write the logic that finds the right colors and applies a new palette.

Thanks, so it’s not something that will never happen, just not anytime soon. That’s totally ok because it’s not a critical feature, just something nice to have.

I can certainly see how it would be useful for some applications.

1 Like

Absolutely :slight_smile: