Hi guys,
I have a question regarding the processor "cssVariables"
Is there a method to define variables more than once? So that the cssVariables owerwrite themselves whenever a new declaration is found...
I want to implement a css-theme-generator and I want to use cssVariables on the website. So, initially I want the variables to have default values but when there is a theme definition, I want the variables to be overwritten.
At the current state (as I am aware of), I can only ommit initial values which leads to css code not being valid (w3c) if there is no theme definition.
Explanation:
html:
... <div class=theme-background-color>...
css:
.theme-background-color {
background-color: var(theme-background-color);
}
theme css (if any):
@variables {
theme-background-color: #000000;
}
Best regards,
elvirus