Use var() to access a CSS variable. CSS variables can be set using custom properties (which begin with two dashes like --main-color-name).
Syntax | |
---|---|
CSS Custom Properties for Cascading Variables Level 1 | var( <custom-property-name> [, <declaration-value> ]? ) |