DEV Community

Discussion on: Don't miss out on css variables

Collapse
 
dorshinar profile image
Dor Shinar

Great article, definitely learned something new here. I'm still not convinced though - how are variables transferred from one stylesheet to another? Say I scope my CSS for individual components (like in react), does it offer seamless integration like other tools already available?
If I have to edit the styles from JS whenever an event fires, why not go full blown CSS-IN-JS?

Collapse
 
timdeschryver profile image
Tim Deschryver

I'm afraid that I'm not the best to answer these questions, as I'm not really familiar with react and css-in-js.

But you can override css variables from another stylesheet in your own stylesheet, which could be useful.