DEV Community

Discussion on: What is your opinion on CSS in JS and generating Static sites from JS frameworks?

Collapse
 
kspeakman profile image
Kasey Speakman • Edited

I think the right answer depends on your organizational structure. Do you have centralized branding / designers? Use centralized styling for consistency and let people opt into it as needed. Do you have embedded designers or devs on the team who also design? Use localized styling to avoid conflicts. Are you a business dev who wants to expend minimum effort to get a decently styled app? Use a CSS framework with pre-built centralized styles for most things.

Personally, I don't use CSS-in-JS. I mainly tweak classes or have alternative rendering based on current state. But I could see it being useful for highly independent teams in a larger organization. Not as a once-and-for-all answer.