var function
suggest changeThe var() function allows CSS variables to be accessed.
/* set a variable */
:root {
--primary-color: blue;
}
/* access variable */
selector {
color: var(--primary-color);
}
This feature is currently under development. Check caniuse.com for the latest browser support.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents