DEV Community

Discussion on: CSS Quickies: CSS Variables - Or how you create a 🌞white/🌑dark theme easily

Collapse
 
nickytonline profile image
Nick Taylor

Even DEV uses CSS variables for theming. 🔥 It goes through SASS, but there is a mixin for generating theme styles via CSS properties.

Chameleon

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

Oh cool, I didn't know that :)

I really need to look some time into the dev.to code 😀🖖

But yeah I think SASS and LESS have some sort of plugins that let you write CSS variables :)

Collapse
 
ggenya132 profile image
Eugene Vedensky

That's a cute mixin.