Modern Web cover image

Building a Design System with Paige Kelley

Modern Web

CHAPTER

CSS Variables

It's actually way simpler than you think it would be, but with CSS variables were basically passing in a data theme property that'll tell it like which theme to use and then swapping out just the mapping for from one to the other. The power of CSS variables and like what we can do right now with just like, like just CSS is crazy. We basically got two theme families that have like white mode, dark mode, and it's like a surprisingly simple code to get this done.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner