Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
Hi,
I use SiteOrigin CSS by SiteOrigin and I tried to do this but the declaration of a color doesn’t work :(
:root {
–primary-color: #285157;
–secondary-color: #4c4c4c;
–accent-color: #df1616;
–divider-color: #840a1b;
}
.h1 {
color: var(–primary-color);
}
Hi FuoriLuogo,
Okay, so there are a few issues with your CSS. Firstly, there needs to be two hyphens (–) rather than a single – (that might be related to our formatting though).
Also, is the .h1 intentional?
The following CSS should work without issue for you:
I’ll show up as an error due to a CSSLinit issue (it’s the ruleset) but you can safely ignore it.