Skip Navigation

An advanced way to use CSS variables

gomakethings.com An advanced way to use CSS variables

Yesterday, we learned about CSS variables. Today, I wanted to show you an advanced approach to working with them that I often use with client projects. Let’s dig in! Globals for system or theme defaults I like to scope design system or theme defaults to the :root element. This makes them accessible ...

An advanced way to use CSS variables
2

You're viewing a single thread.