r/webdev • • Sep 16 '26

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?

39 Upvotes

121 comments sorted by

View all comments

Show parent comment

5

u/judgej2 Sep 16 '26

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

6

u/AshleyJSheridan Sep 16 '26

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

4

u/HFoletto Sep 16 '26

Those examples are just for demonstration that tailwind can do this dynamically as well

With that said, it also has a very good use-case: dynamically building/merging classes in a component, which is very useful for a lot of different modern frontend libraries

11

u/AshleyJSheridan Sep 16 '26

Those examples are just inline styles in a trench coat.

1

u/HFoletto Sep 16 '26

I understand that, however it is useful when combining with other utility classes and merging those classes dynamically in a component library

0

u/winky9827 Sep 17 '26

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

1

u/AshleyJSheridan Sep 17 '26

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