loading...

re: Tips: CSS Variables for styled-components VIEW POST

FULL DISCUSSION
 

Would using CSS variable prevent styled components (SC) generating classes per each CSS variable value?

e.g.) SC would generate 100 classes for 100 colors with props.

 

Maybe yes, component not generate classes but <Vars> components class is generated.
I'm not that right solution but it's maybe solve attrs.
styled-components.com/docs/basics#...

code of conduct - report abuse