CSS HTML Validator - The fast, all-in-one, HTML, CSS, Link, SEO, spelling, and accessibility checker for Windows, & htmlval for Mac and Linux
Home Help: var() CSS function

The var() Function

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 for var()
 Syntax
CSS Custom Properties for Cascading Variables Level 1var( <custom-property-name> [, <declaration-value> ]? )

Recommended Links

Search Engine Links (for more information)

Help us improve this page: Suggest a link or noteReport a problem