Introduction to CSS Variables
Learn about CSS variables.
A CSS variable is simply a value that you want to reuse, again and again, in your layout.
CSS variables are formally known as custom properties.
Why CSS variables
CSS variables give us a way to keep our code nicely organized and easy to update. For example, let’s say that we want to update the font color on certain parts of our page from gray
to darkslategray
. Let’s also ...