DEV Community

loading...

Discussion on: Is CSS dying already?

easrng profile image
easrng

I don't like utility classes. If someone made something like tailwind but using css variables instead of classes, I'd jump on in an instant, if it had any benefits over vanilla. I like my content and styles seperate.

Thread Thread
hendrul profile image
Raul Contreras

With css in js everything is possible, you want separate styles? It got’s you cover, you have alternatives so you can lower the level when you need to, or use utility classes on other cases. Its definitely a matter of taste. I prefer styled components, css in jsx as properties, or tailwind

Thread Thread
easrng profile image
easrng

CSS in JS cannot style elements when JS is off, or in browsers without JS.