zlacker

[parent] [thread] 3 comments
1. byeart+(OP)[view] [source] 2025-05-06 20:36:55
Sadly. Tailwind is so oof in my opinion. Lets import megabytes just so we don't have to write 5 whole CSS classes. I mean just copy paste the code.

Don't get me stared on how ugly the HTML becomes when most tags have 20 f*cking classes which could have been two.

replies(2): >>johnfn+j3 >>martin+mN
2. johnfn+j3[view] [source] 2025-05-06 21:01:13
>>byeart+(OP)
In most reasonably-sized websites, Tailwind will decrease overall bundle size when compared to other ways of writing CSS. Which is less code, 100 instances of "margin-left: 8px" or 100 instances of "ml-2" (and a single definition for ml-2)? Tailwind will dead-code eliminate all rules you're not using.

In typical production environments tailwind is only around 10kb[1].

[1]: https://v3.tailwindcss.com/docs/optimizing-for-production

replies(1): >>andyba+ID
◧◩
3. andyba+ID[view] [source] [discussion] 2025-05-07 03:00:57
>>johnfn+j3
So. We've moved rom "human compiler" to "human compression encoder"?
4. martin+mN[view] [source] 2025-05-07 05:07:05
>>byeart+(OP)
You're doing it wrong. Tailwind is endlessly customizable and after compilation is only kilobytes. But yes lets complain because we don't understand the tooling....
[go to top]