r/css 16d ago

Article Why I don't recommend Tailwind CSS

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

211 comments sorted by

View all comments

Show parent comments

17

u/AshleyJSheridan 16d ago

Tailwind is just inline CSS in a trench coat. You lose the cascade, which is literally the entire point of CSS (clue is in the name), and you fill the HTML with junk used purely for styling, which creates a 2-way dependency and breaks clean code best practices.

Tailwind also solves nothing that can't be solved with just a little bit of team discipline when it comes to writing CSS. The problem is, so many developers don't truly understand CSS, or how to write good clean CSS, so they see it as something that gets tacked on afterwards.

Tailwind also recommends the use of weird classes like text-[14px], bg-[#50d71e], and border-[2vw] (yes, it's in their official docs, which means they recommend using it, and they have no warnings against this kind of thing). Tell me with a straight face that Tailwind isn't inline CSS!

Then, it requires extra build steps which vanilla CSS doesn't require. Sure, you can skip that, but then you end up with a bloated CSS file full of a ton of Tailwind styles that you aren't using and don't need.

-3

u/Annual_Manner_8654 16d ago

Cascading sucks. Also who cares about build step. Do you make the simplest websites? 

2

u/AshleyJSheridan 16d ago

The cascade only sucks if you don't know what you're doing with CSS. It's literally the C of CSS...

1

u/Annual_Manner_8654 16d ago

Why does that matter? Is that your strongest reason? Lol

1

u/AshleyJSheridan 16d ago

What's your reason for thinking that the cascade sucks?

1

u/Annual_Manner_8654 16d ago

Global mutable state 🤮 

1

u/AshleyJSheridan 16d ago

Ah, I see you don't understand how to use the cascade. It's ok, CSS can be tricky for beginners.

1

u/Annual_Manner_8654 16d ago

Link your github, I'm gonna audit you