DEV Community

Discussion on: Why start using TailwindCss in 2021

Collapse
 
liamedwards profile image
Liam Edwards

You're creating all those style rules in CSS anyway. What's the difference? If you're adding multiple buttons with the same style, create a class and apply all those styles to it, or just add it to the base button styles.

Collapse
 
moopet profile image
Ben Sinclair

That's not how people use it; people do it the Bad Way in the example. Yes, you can use these to make up base rules, and that's fine to be fair, but it's the same as using something like Sass or Less with mixins, which people were doing for a decade before Tailwind appeared.

Thread Thread
 
liamedwards profile image
Liam Edwards

Personally I think Tailwind is great for smaller websites and SPAs in particular. I've only started using it recently in building my personal website and I'm a fan of it.
For my work, we have large stylesheets that become messy and cluttered and as much as I would love them to be clean, I know that's not easily achievable. While I haven't had to do it yet, I think maintaining Tailwind would be a lot simpler than a bunch of CSS styles that possibly overlap.

Collapse
 
stokry profile image
Stokry

I like my HTML clean as much as possible.