DEV Community

loading...

Discussion on: Why start using TailwindCss in 2021

Collapse
moopet profile image
Ben Sinclair • Edited

Why bother learning this new way of writing CSS?

It's an old way of writing everything! Nothing in Tailwind is new, and nothing was even new at the point when Tailwind came out.

Imagine no longer having to create separate files for component markups and its styles

But the content and the appearance are two separate things! Let's say you want a different makeover during certain times of year for holidays and so on. Or you want to give people a "reader mode", or you support people who want to print the page out.

Imagine no longer having to think of names for “Wrapper” or “WrapperOfWrapperOfWrapper

You're replacing your own homebrew "div soup" with someone else's. You don't need all those wrappers, in the same way you don't need all those million-and-one classes. 99% of websites could look exactly the same if every div was removed.

Collapse
cblte profile image
cblte

Hello. I tried tailwind in the past but gave up because, as like @moopet pointed out, you need sometimes a makeover. And instead of replacing all css classes, you replace the css file. Done.

Collapse
easaaa profile image
Leonardo Tononi Author

But the content and the appearance are two separate things! Let's say you want a different makeover during certain times of year for holidays and so on. Or you want to give people a "reader mode", or you support people who want to print the page out.

I agree with your point. Tailwind is for sure far from perfection. But I feel it's giving a lot of benefits at my daily coding work. It's fun and easy to master. Obviously this is just my humble opinion and impression.

You're replacing your own homebrew "div soup" with someone else's.

Again you are totally right. But forn now, I'm liking a lot this "div soup". 😄

Anyway thanks a lot for your comment, really appreciate.

Forem Open with the Forem app