CSS variables can be set using custom properties (that begin with two dashes like --main-color-name) and accessed throughout a CSS document by using the functional notation var().
Syntax | |
---|---|
CSS Custom Properties for Cascading Variables Level 1 | var( <custom-property-name> [, <declaration-value> ]? ) |