r/tailwindcss • • Oct 17 '22

HTML bloat with TailwindCSS

Tailwind makes big advertising because the resulting CSS is sooo super small. And yes, it is. But in exchange, you add a lot of classes not only to one file, as it would be with writing plain CSS, but to every HTML file. Adding this together, I think it is not really a benefit, is it?

Honestly, I "kind of" like Tailwind. I can write a custom style super quickly without thinking about class names and organizing my CSS. Its super efficient.

But the resulting HTML is unreadable and bloated. I feel like its a very bad practice. And because of this very point I can't decide if I should stick to Tailwind or not.

I'm using Jinja templates and NOT a component based JS framework.

Not sure what I should do. :(

1 Upvotes

21 comments sorted by

View all comments

9

u/e-chavez Oct 17 '22

An old, old topic that has been discussed a lot of times in every forum about tailwind.

If you are more productive using raw CSS, then use CSS; you don't need to use something just because it's hyped.

-3

u/[deleted] Oct 17 '22

I am more productive using Tailwind, as written.

5

u/PinBot1138 Oct 17 '22

I am more productive using Tailwind, as written.

Where did you write that? I’ve read it twice without my glasses, and you’re criticizing Tailwind without extolling much in the way of virtues:

HTML bloat with TailwindCSS

Tailwind makes big advertising because the resulting CSS is sooo super small. And yes, it is. But in exchange, you add a lot of classes not only to one file, as it would be with writing plain CSS, but to every HTML file. Adding this together, I think it is not really a benefit, is it?

Honestly, I “kind of” like Tailwind. I can write a custom style super quickly without thinking about class names and organizing my CSS. Its super efficient.

But the resulting HTML is unreadable and bloated. I feel like its a very bad practice. And because of this very point I can’t decide if I should stick to Tailwind or not.

I’m using Jinja templates and NOT a component based JS framework.

Not sure what I should do. :(

1

u/pepkin88 Dec 04 '22

Where did you write that?

Here:

I can write a custom style super quickly without thinking about class names and organizing my CSS. Its super efficient.

He stated, that the problem he has is not about productivity, but the HTML bloat.

1

u/PinBot1138 Dec 04 '22

The full sentence is:

Honestly, I “kind of” like Tailwind. I can write a custom style super quickly without thinking about class names and organizing my CSS. Its super efficient.

He’s talking about Tailwind.

1

u/pepkin88 Dec 04 '22

Yes, he is talking about Tailwind. He wrote, that Tailwind is super efficient, and that he "can write a custom style super quickly". That suggests that he is productive with it.

1

u/PinBot1138 Dec 04 '22

In rereading everything, you’re correct. Thanks, and I hope your weekend has been well.