While examining the HTML code of my blog, I came across a CSS variable declared in CDTA within the index.html file.
<![CDATA[
<Variable name="keycolor" description="Main Color" type="color" default="#2196f3" value="#2196f3"/>
.page{
backgroung-color: $(keycolor);
}
]]>
I am aware of the usual CSS method:
:root{
--keycolor:#2196f3;
}
.page{
backgroung-color: var(--keycolor);
}
However, I am curious about the <variable/> element - can it be utilized in a CSS file, and if so, how would it be implemented?