How to Set Universal Root Colors in CSS (saving you time in the long run)

A Designer Who Codes on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerDesign Engineering5 min

About this video

The video shows how to set a root color in CSS and reuse it across a stylesheet, so a color change needs editing in one place rather than find and replace. It is aimed at designers who are starting to write CSS.

What you’ll learn

  • Define a root color variable in CSS once and reuse it across a stylesheet
  • Change a shared color across a whole site by editing a single value