DEV Community

Discussion on: Easiest way to do a dark theme with CSS vars (and JS!)

Collapse
 
corentints profile image
Corentin

Yes unfortunately CSS variables are not implemented in IE. There are other ways to do this, such as creating a second CSS file containing our dark theme, but it's not really ideal either. :(

Collapse
 
janhommes profile image
Jan Hommes

But there is a pollyfill for IE11. Worked very well for me.

Thread Thread
 
corentints profile image
Corentin

Ok! That’s nice :)