DEV Community

Discussion on: CSS and JS Are at War, Here’s How to Stop It

Collapse
 
gugadev profile image
Gustavo Garsaky

I try to get the best from both worlds. I'm doing a design system for my company using React and styled components via styled-jsx. I give styled components for React devs and a CSS file for web designers. IMO, devs trends to be very partials choosing one of two options instead choosing both.

Collapse
 
iskin profile image
Andrey Sitnik

BTW, you can try Astroturf zero-runtime CSS-in-JS. Compare to SC it has better performance and it generates a static CSS file, which you can give to web designers. Could be even simpler build system. And it has the same API.

Collapse
 
gugadev profile image
Gustavo Garsaky

Awesome. Thanks for the tip!