top | item 46145085

(no title)

hexage1814 | 2 months ago

>let me be clear: there is nothing wrong with Tailwind

But there is.

discuss

order

mattstir|2 months ago

I'm curious about this. I'm not a frontend engineer but enjoy tinkering on simple frontend UIs for my hobby projects, and I've found Tailwind nice for creating encapsulated components more easily. It's funny that it skips the entire cascading part of Cascading Style Sheets though. Are there major downsides besides that?

seanwilson|2 months ago

> It's funny that it skips the entire cascading part of Cascading Style Sheets though. Are there major downsides besides that?

I think cascading is a bad default. It's useful, but only sometimes, and often causes headaches like unintended coupling and confusion about why rules are being overridden. The utility class approach (like Tailwind) makes a lot of issues like this go away. I don't see a good reason why the traditional approach is worth the extra pain or discipline.

Klonoar|2 months ago

Yes.

The cascade model is a bad design.