CSS Variables

What are CSS variables?

If you’re not already familiar with CSS variables, these are simply entities that help define style rules that can be reused throughout a document.

CSS variables are set using custom property notation and prefixed with a double dash (--), allowing these properties to be constructed as follows:

Get hands-on with 1200+ tech skills courses.