Kevin Powell shows three ways to use CSS custom properties to write cleaner stylesheets: easier styling of modifier classes, simplifying abstract CSS, and creating shorthands where none exist. It is aimed at people who already write CSS.
What you’ll learn
✓Style modifier classes more easily with custom properties
✓Simplify abstract CSS using custom properties
✓Create shorthand properties where CSS does not provide one