Archived topic
Question about Colors and grouping them (or Variables)
1 reply · Started by Patrick on March 8, 2019
Hi, very often I need to make a lot of color changes to test different designs, sure it's easy doing it in the customizer with GP Pro, but it's very slow.
I would love to have something like a color grouping option. Let's say I have 4 main Colors for the entire website, I would like to group all Link colors from Body, Header, Content, Footer, etc. So I only need to change the color for Links let's say. Is this possible with PHP maybe?
I was thinking about doing it with CSS Variables but I would need all CSS classes that use colors.
Hi there,
Unfortunately there isn't a good solution for this.
Although if you just change the link of the body, the rest of the link options should just inherit that setting unless you've changed them to something else.
There is also this filter that might help to select colors faster:
https://docs.generatepress.com/article/generate_default_color_palettes/