Back to Developer Roadmap

Css Variables

src/data/question-groups/frontend/content/css-variables.md

4.0425 B
Original Source

Just like variables in frontend programming languages, CSS variables can be set by developers and reused across the entire CSS stylesheets. They’re great for centralizing global values that are used throughout the web site’s code.

They’re also heavily used by CSS frameworks to set constants such as the value of colors (i.e. “black” being “#222” instead of “000”.)