DEV Community

Discussion on: Using CSS variables to create a dark mode for your site

Collapse
 
miguelmj profile image
MiguelMJ

I didn't want to make two modes for my own site because I only knew the SASS solution... now the CSS variables seem more viable, I might give it a try. Thanks!

Collapse
 
cchana profile image
Charanjit Chana

Exactly my dilemma, you could even combine the two so CSS variables are driven by ones you’ve already defined in SASS. Overkill? Perhaps, but it also brings as much flexibility as you need there to be.