DEV Community

Discussion on: If you could start over from scratch, how would CSS work?

Collapse
 
vladinator profile image
Vlady Veselinov

CSS is missing programming language support. I just do everything with Glamorous nowadays because it lets you use all the power of JavaScript, without having to predefine every style condition in CSS.

Most people cringe at the sight of styles in JS, but that's because they think of inline styles. You can easily make a component-style.js file and done, you have separation of concerns.