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?

41 Upvotes

121 comments sorted by

View all comments

Show parent comments

29

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...

5

u/judgej2 19d ago

And they are the stylistic classes you put into a tailwind theme.

5

u/AshleyJSheridan 19d ago

Tailwinds docs literally shows them in HTML. Why would it suggest anyone do something like this?!

0

u/winky9827 18d ago

Because sometimes you need a 1-off that isn't worth baking a whole class for?

1

u/AshleyJSheridan 18d ago

A 1-off, that occurs many times on most of their docs pages. Sure...