DEV Community

Discussion on: Create your first CSS Custom Properties (Variables)

Collapse
 
brob profile image
Bryan Robinson

Very interesting! I usually shy away from JS polyfills for CSS, but Custom Properties are one of those things that mix CSS and JS so much that I think it makes a lot of sense!

Usually, if I'm worrying about fallbacks, I'll specify my values outside of Custom Properties and then overwrite with the custom property to allow a graceful fallback, but having the best of both worlds would be super nice!