Sophira
a day ago
I haven't used Tailwind, but as someone who regularly has to deal with CSS created by Tailwind, I have to wonder why they're even using CSS at all. It feels like going back to HTML 3.2 attributes. How is 'class="bg-white"' any better than 'bgcolor="white"'?
There is one thing that Tailwind is good for, and that's for making sure people can't override your CSS easily. Anybody who's ever used Stylus to override Tailwind-created CSS will know this pain.
(That said, I think this site is rather... abrasive. That doesn't help anybody.)
[edit: Also, in case it's not obvious, I'm not actually advocating for making sure people can't override your CSS. Please, please let me override your CSS.]
gitaarik
16 hours ago
For most styles there are no HTML attributes, and you need to use CSS, and you start to see the difference when you have multiple styles:
style="display: flex; width: 32px; height: 24px; background: green;"
In Tailwind:
class="flex w-4 h-3 bg-green"