awesomemotive / edd-themedd

WordPress theme for Easy Digital Downloads
https://themedd.com
32 stars 9 forks source link

Color preset support within customizer #40

Open arraypress opened 7 years ago

arraypress commented 7 years ago

This is merely a feature suggestion that would be useful to have, and something I could contribute to in terms of presets for the theme.

Within the color options in the customizer, there are lots of color options to configure and it can be a bit overwhelming for first time users to setup. Due to this it would be useful to have the ability to include "presets" that could be selected from a drop down for pre-made color schemes. Ideally presets could be named, saved and loaded as well.

Just an idea for a potential future release, better to get it out the door first! :)

amdrew commented 7 years ago

I've definitely thought about doing this and won't dismiss it yet, so will tag for a future release. I'd actually prefer it being its own plugin or even just color schemes you can download and import from a resources section on themedd.com.

Here's my thinking:

Right now it's simple - there's 1 base color scheme and a user has the ability to change the theme to the exact colors they need.

ashleyfae commented 7 years ago

Just for inspiration if you do decide to go through with this later, I quite like this method: http://deluxeblogtips.com/add-color-schemes-wordpress-theme/

The idea is that the select box for choosing the colour scheme doesn't actually output the colour CSS. Instead, it's just a method of changing the colours of the colour pickers to pre-defined values on a change event. So if you do change the colour scheme settings later (or remove one), it doesn't affect someone who's already using them, since they'd still have the colour pickers set to their chosen values.

amdrew commented 7 years ago

Thanks @nosegraze, will check it out.

arraypress commented 7 years ago

Just a slight update on this, I researched different ways of approaching this and decided that simply having a dropdown that loaded separate color scheme CSS files was the best route. The drop down/select recursively scans a directory for CSS files and displays the available options within the customizer. This has a few benefits over the above methods:

SeanTOSCD commented 7 years ago

I took that approach in one of my old themes. Can't remember which one. I liked it, though.