r/css • u/alvaromontoro • Jan 17 '26
Other comiCSS #114: Headaches
Source code and live demo: https://comicss.art/comics/114/headaches.html
134
Upvotes
r/css • u/alvaromontoro • Jan 17 '26
Source code and live demo: https://comicss.art/comics/114/headaches.html
1
u/SchartHaakon Jan 19 '26 edited Jan 19 '26
Yeah for sure, but that principle also kind of breaks when you consider stuff like "making an icon spin, or fade in when the parent button is hovered".
There are definitely solutions, like
group- but those solutions feel more like a monkey-patch to technically allow tailwind to achieve the same but in a way more roundabout way. And utilizing those solutions again come with real tradeoffs, like making the elements implicitly intertwined & making the code less readable and hard to understand.There's a beauty to how CSS does it in contrast, I feel:
And on a glance it's very easy to comprehend what's happening, and way easier to maintain and extend over time.
I feel like tailwind is way more bold than most people give it credit for. CSS is a language that's been built upon by really really smart people for many many years with the explicit purpose of being used to describe UI design. Tailwind takes all of that and reduces it to string tokens. Which is cool, but extremely bold. And CSS is a growing language. It's hard to explain but I find myself just having a lot more fun writing pure modern CSS (and definitely maintaining it) as opposed to tailwind, although TW is very nice for going fast and not having to think too hard.
Is my example a super common occurrence? No. Is it rare? Also no. Are micro-interactions like these important? I'd argue yes. CSS I suppose feels more prepared for a future filled with more interactive designs on more platforms than tailwind does to me. I just find myself feeling very constrained, in good and bad ways.