DEV Community

Discussion on: CSS Quickies: CSS Variables - Or how you create a ๐ŸŒžwhite/๐ŸŒ‘dark theme easily

Collapse
 
chrisachard profile image
Chris Achard

YES! I first ran across native CSS variables about a month ago, and was super excited - finally variables come to CSS without a preprocessor! This post is a nice example of where they can be used. Thanks!

(for those curious, here's where you can check what browsers support css variables: caniuse.com/#feat=css-variables)

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

They are really awesome!

Oh, good point! I should have included the caniuse link! They are for me just so integral and normal to use that I don't even think about that there can be some issues with older browser ๐Ÿ™ˆ

Collapse
 
nuxodin profile image
Tobias Buschor

And for IE11 i made this polyfill (linked on caniuse)
github.com/nuxodin/ie11CustomPrope...

Collapse
 
chrisachard profile image
Chris Achard

Oh, nice!

Thread Thread
 
nuxodin profile image
Tobias Buschor

Thanx.
Here the Demo in IE11 with just adding the polyfill:
jsbin.com/pofetiyaha/1/edit

Collapse
 
lampewebdev profile image
Michael "lampe" Lazarski

Nice I will check it out later ๐Ÿ‘๐Ÿ˜Š