3 ms·
> Nowadays, though, it's still possible for HTML to grow in two dimensions if using tools like Tailwind, where the long predefined class names are kind of exten
by corytheboyd 4y ago
> Nowadays, though, it's still possible for HTML to grow in two dimensions if using tools like Tailwind, where the long predefined class names are kind of extended attributes to HTML elements.
It's so infuriating when people say this against Tailwind. Nothing is forcing you to leave giant lists of class names directly on the HTML tags, the documentation very clearly states you can use the provided @apply function to move things into CSS. Throwing giant lists of class names down to prototype then refactoring is incredibly efficient, but it's not like you just shit out your first idea to production in any other context.
- anderskaseorg 4y agoThe post expresses no opinion on whether placing Tailwind class names directly on the HTML tags is better or worse than placing them in CSS. It’s merely saying that the mini-language of Tailwind class names themselves (regardless of where they are placed) is a new syntactic dimension compared to unstyled HTML—in the same way that CSS is a new syntactic dimension compared to unstyled HTML.