You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#111740 Custom Colors Using Variables

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Friday, 26 August 2022 17:30 BST

ARTUPWEB
Hi there,
I have created a template which I use for many customers.
In this template I have four main colors. The CSS is written with variables so when you change a color in the template you can see the changes in many places.
Is there a way I could use these variables in the custom colors section of your color picker?

Ryan
This is not yet supported, but it would probably be better to create a set of css rules in your template that reference those colors, that can then be selected by the user from the Styles list, eg:

.red {
    color: var(--red);
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.