I have written a different article about Tailwind vs semantic CSS, which compares the amount of code needed to implement the same thing and how the resulting site is order of magnitude smaller with the semantic approach:
I have written a different article about Tailwind vs semantic CSS, which compares the amount of code needed to implement the same thing and how the resulting site is order of magnitude smaller with the semantic approach:
Either way, all these classes/css end up in a Button component for my site.
Have you ever used vanilla CSS? Please try to replicate that black button! You'd be surprised how much less it requires. No &>[data-slot=icon]]:-mx-0.5 or anything like that needed
https://nuejs.org/blog/tailwind-vs-semantic-css/
The bloat takes several forms
1. The amount of source HTML/CSS needed
2. The code complexity (class & DIV/SPAN "soup")
3. The weight of CSS & JS on the resulting website
Happy to write a comparison to Calypso, which is on a whole new level. Betting 10-20x bloat differences to semantic CSS.
I do think it would be great to make a follow-up post on Calypso, even if only on the button. Looking forward to it.
---
I read your other article and it still feels superficial and missing details. You compare a demo of a commercially available (effectively "closed source") template against a page you built, but don't provide the source for the page you built. Apologies if it's in the article, but I couldn't find it. I did find the simple blog template on the Nue site, but it had considerably less functionality than the Tailwind demo.
It's still not an apples to apples comparison, because you're comparing a site built with Nextjs to whatever you built. Of course static HTML without JavaScript is going to load faster than an SSG site.
I think the ending quote in the second article is completely unrelated to Tailwind and I'm not sure why it was your conclusion.
> The fact is that Tailwind's popularity will eventually fade. CSS-in-JS is trending now, but standards are forever.
Tailwind isn't CSS-in-JS. You don't need a build step to write it. You need a build step for important features like tree shaking and dynamic properties, but it's not CSS-in-JS.
Including that hurts your position because it sounds like you don't understand what you're arguing against.
Lastly, why so much hate against Tailwind? Positioning your framework as "Nue and semantic CSS vs Tailwind" doesn't make me want to try your framework. Show me why your framework is good and let me bring my own solutions to it.