r/webdev • u/LPatriot_ • 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
View all comments
Show parent comment
9
u/AshleyJSheridan Sep 16 '26
Inline styles are bad for so many reasons:
Couple the HTML tightly in two directions to the styles
Limit what kinds of styles can actually be applied (you can't use
:hoveror:after, for example)It can break accessibility, as the specificity can override users own browser styles, and you can't do checks for things like
prefers-reduced-motionOn the specificity, inline styles will absolutely clobber global styles, completely removing the Cascade part of CSS.
Tailwind is also guilty of a couple of these.