5 ms·
I think the argument about Tailwind is overblown because half the people using it should just be using a component library. Component libraries suck when you n
by BoorishBears 3y ago
I think the argument about Tailwind is overblown because half the people using it should just be using a component library.
Component libraries suck when you need to massage a design system into them. But at least half the arguments over Tailwind vs CSS are devs mostly doing their own thing and touting how easy it is to change X Y and Z. Similarly those same devs hate component libraries because you can't just change X without changing X everywhere.
_
A little secret they don't realize is, X changed everywhere so that your site wouldn't look like a pile of slop.
That's why even the darling of the "anti-component-library pro-ctrl+c-ctrl+v establishment" shadcn/ui had to go back and add theming and a component.json.
If not using a component library is easier for you, that's a red flag: the alternative should be your team rolled out their own design system, and that's just a different kind of difficult with a different set of trade offs.
If you're using a design system, I don't think CSS vs Tailwind is as much of a mortal conflict because the design system provides a map. Usually that map gets translated into something like variables, or even Tailwind Variants, and suddenly the biggest issue with Tailwind (scattering consistent properties across the codebase) is not as terrible as it seemed.
- marcosdumay 3y ago> that map gets translated into something like variables, or even Tailwind Variants Sure. You can punch tailwind until it behaves like the formatting templates people used on PHP before CSS generalized them. This will indeed fix the problem. The only thing I got to say is "blegh". You are adding code to get the "90's-dynamic" behavior into a framework that added code to remove the cascading behavior from the framework that came with code to emulate the "90's-dynamic" behavior with a few extra bonuses. But yeah, it works. I have no idea why one would choose to go that way, but if one is constrained into it, that's a sound direction.
- BoorishBears 3y agoTo be clear these that's variables as in CSS variables, and the map is a design system, neither of those are outdated concepts.