3 ms·
There's another active post right now [1] where Tailwind's creator has been addressing these understandable initial reactions. TLDR: Tailwind is utility-FIRST
by chrisweekly 8y ago
There's another active post right now [1] where Tailwind's creator has been addressing these understandable initial reactions.
TLDR: Tailwind is utility-FIRST not utility-ONLY, and its `@apply` directive and approach to composition means you can exercise a lot of control without every element requiring so much "noise".
Don't get me wrong, I'm not saying there's only one good way to do things and this is obviously it; rather, it's worth overcoming one's initial revulsion to look at what's possible, bc it is in fact quite elegant.
[1] https://news.ycombinator.com/item?id=18084013 https://news.ycombinator.com/item?id=18084013
- jonahx 8y agoI'm sold on building up your UI through the composition of utility classes. I just don't want them in my html. It's really not resistance that's at work here. I just think you should name your abstractions. Note this does not imply coupling. If you're so worried about that give every element a different name for all I care, put a number at the end of the names, but at least make them meaningful. I still want to be able to read my markup. It's odd to me that functional-css seems to have gotten bound up with "inline everything." The two concepts are orthogonal. And it seems that the big benefit of having everything in line is... you only have to have one file open? I mean, I guess that's simpler than two files side by side, but it's such a tiny benefit compared with readable markup imo.