An Introduction to CSS Variablesby@awh

An Introduction to CSS Variables

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Variables let you set common values like colors and sizes in a single place then reference the variable when you need to use those values. Variables are part of the normal cascade of CSS properties. They are case-sensitive, so --foo and --Foo are not the same variable. The values of your variables can be many different things as basically any valid CSS value can be the value of a variable. You don’t need any build tools or pipelines; they are just part of what the browser uses.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - An Introduction to CSS Variables
AWH HackerNoon profile picture

@awh

AWH


Receive Stories from @awh

react to story with heart
AWH HackerNoon profile picture
by AWH @awh.We are an elite team of digital product creators and data problem solvers.
Contact us

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa