I wonder how much of this is just pining for a simpler time when the pages and apps you were building were just… smaller https://pdx.su/blog/2023-07-26-tailwind-and-the-death-of-craftsmanship/
@hejsna um, OK. I'm not sure how anyone who actually likes CSS can appreciate Tailwind. It really does seem to be the framework for people who hate vanilla CSS. (And obviously, I would strongly disagree with their reasoning.)
See also: https://www.spicyweb.dev/tailwind-is-a-cult/ 😅
@jaredwhite I like CSS, I’m good at it, and I still enjoy the heck out of Tailwind! Vanilla CSS will inevitably devolve into an append-only hairball unless you apply Taliban-level control over who can do what with your CSS. The alternative is stuff like CSS-in-JS which, you know, ick, or scoped styles which is fine I guess but tends to discourage reuse.
For JS component heavy applications, CSS-in-JS is the best choice by far. Much more intuitive, maintainable, and effective. If your component CSS is a part of what defines the component, it should go with the component, and have an effect only on it.
If your application has so widely used and standardized styles that you can share a lot of them, CSS files are cool.
But nowadays I find myself less and less in the second escenario. And for shared features, CSS variables are being revolutionary, especially for dark/light theming, custom font sizes, etc. They are making CSS files more and more a big list of variable values, to be used by components.
@jgg @jaredwhite okay but Tailwind does make styles live with the component, and those atomic classes won’t affect anything else, so what’s the problem with it? That’s one of its big advantages, along with NEVER HAVING TO NAME INANE STUFF like “card-header__subheader” anymore, that has had a huge effect on my mental well-being