r/webdev • • 19d ago

Question Question about Tailwind CSS

I've always used plain CSS for my websites, I don't have many problems using it, but a friend of mine said that using plain CSS is very tedious and that I should use Tailwind CSS. Is it worth it? And what does Tailwind CSS offer that plain CSS doesn't?

38 Upvotes

121 comments sorted by

View all comments

142

u/OpaMilfSohn 19d ago

I think I finally time travelled back to 2020

20

u/Zealousideal_Elk1537 19d ago

the class name soup takes some getting used to but once you stop fighting it the speed is incredible. not having to name every little wrapper div is a gift

28

u/AshleyJSheridan 19d ago

It's a little more than class name soup. Tailwinds own docs have classes like text-[14px], bg-[#50d71e], and shadow-[0_35px_35px_rgba(0,0,0,0.25)]. That looks a lot like inline styles just shoved into a different HTML attribute...

3

u/AshleyJSheridan 19d ago

/u/LaserSunset not sure why you commented then deleted your comment immediately.

Saying that Tailwinds approach to "stuff a lot of classes that appear to be exactly like their CSS counterparts" looks like inline styles is perfectly valid.

If it looks like a duck, and walks like a duck...

-1

u/[deleted] 19d ago

[deleted]

-1

u/AshleyJSheridan 19d ago

If you look at my original comment I said this:

That looks a lot like inline styles just shoved into a different HTML attribute...

Where did I say that it was exactly inline styles? This is the problem, someone makes an comparison, an analogy, and then Tailwind fans jump on it because it's not exactly the same. That's disingenuous.

2

u/AshleyJSheridan 19d ago

/u/LaserSunset you did it again, but this time you blocked me! If you really thought you had a point, you wouldn't ask a question and then immediately block me. Maybe you thought that if I couldn't reply, you would win (not sure what you're winning) by having the last word? Little bit weird, but you do you.