DEV Community

loading...

Discussion on: Why I moved from Styled Components to (S)CSS modules

Collapse
ogranada profile image
Andres Granada

I liked your post, it is great to know that I’m not the only person concerned about the cost of css in JS. About readability and in order to avoid prefixes to isolate the components you can use a CSS architecture, like bliss github.com/gilbox/css-bliss .

Collapse
puruvj profile image
PuruVJ Author

Hmm it seems nice, but its a convention in the end, like BEM. Another thing to remember while coding. The reason I turned to Styled Components and CSS Modules is to not think about this stuff, just put some dumb selectors at place and expect nothing to break.

I don't do well with CSS based conventions. never have 😐