⇾ A Complete Guide to Custom Properties on CSS Tricks

Chris Coyier has created this guide on custom CSS properties. Make your CSS code more readable, cleaner and safe time changing stuff.

To the question ”Why care about CSS custom properties?” Chris writes …

  1. They help DRY up your CSS. That is “Don’t Repeat Yourself.” Custom properties can make code easier to maintain because you can update one value and have it reflected in multiple places. Careful though, overdoing abstraction can make have the opposite effect and make code less understandable.
  2. They are particularly helpful for things like creating color themes on a website.
  3. They unlock interesting possibilities in CSS.
  4. The fact that they can be updated in JavaScript opens up even more interesting doors.

⇾ Visit: A Complete Guide to Custom Properties on CSS Tricks