DEV Community

Discussion on: How using CSS variables helped me cut down on JavaScript

Collapse
 
jnschrag profile image
Jacque Schrag

Late, but I wanted to share that there is a ponyfill for CSS variables that allow them to work in older browsers, with a few caveats. They serve a different function than SASS variables do, so it's definitely worth looking at the ponyfill if you'd like to start using CSS variables & need to support older browsers.

Collapse
 
nuxodin profile image
Tobias Buschor

Or this (my) polyfill which gives IE11 almost complete support for CSS variables:
github.com/nuxodin/ie11CustomPrope...

Collapse
 
bbarbour profile image
Brian Barbour

Thanks Jacque!