Plurrrr

Wed 18 Dec 2019

7 Uses for CSS Custom Properties

Custom properties (also known as CSS variables) allow us to store property values for re-use in our stylesheets. If you’re relatively new to them, you might wonder when you might use them over and above preprocessor variables (if indeed you use a preprocessor). I’m using custom properties a lot in my workflow these days, and thought I would collate some of the use cases here.

Source: 7 Uses for CSS Custom Properties, an article by Michelle Barker.