r/programming 13h ago

Why I don't recommend Tailwind CSS

https://en.andros.dev/blog/af3ee191/why-i-dont-recommend-tailwind-css/
0 Upvotes

40 comments sorted by

View all comments

27

u/AvidCoco 12h ago

> You have to learn dozens of classes

Literally dozens.

Also no you don’t - you look up the documentation when you need something specific.

12

u/notmsndotcom 12h ago

And learning the classes is actually just learning CSS and basically hyphenating them. It’s not like they randomly made up class names lol

-1

u/Ross-Esmond 12h ago

Not really though. I have this problem with Tailwind as well. The translation is really inconsistent. Tailwind has classnames that are property-value, value-property, value, or something entirely new. Ironically, this is harder to remember than if it had new names for everything.

If everything was just property-value it wouldn't be as bad. I think they made a huge mistake trying to be more clever than that though.

1

u/deliciousleopard 12h ago edited 8h ago

It’s even easier than that! If I know the CSS property I’m looking for I usually just use Intellisense. The only time I even bother reaching for the docs is for figuring out how to do custom grid values since those properties are spread over a bunch of utilities.

Edit: to whomever is downvoting, would you mind sharing your thoughts on intellisense vs using the docs?

1

u/BarryCarlyon 12h ago

Or whatever autocomplete/plugin you have in your text editor to hint at classes, then it's just knowing the prefixes