zlacker

[parent] [thread] 1 comments
1. johnfn+(OP)[view] [source] 2025-05-06 21:01:13
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+pA
2. andyba+pA[view] [source] 2025-05-07 03:00:57
>>johnfn+(OP)
So. We've moved rom "human compiler" to "human compression encoder"?
[go to top]