Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But honest question, wouldn't those years of wrestling with the right UI framework be better spent learning the underlying CSS rules and adopting a simple pre-processor that gives you programmatic generation for repetitive bits?

Because in the end, tailwind is better than bootstrap, but it's still the wrong way and incentivises wrong patterns.

And by making it "standard" it makes everybody new to the field start with it and use it, foregoing learning the CSS. And will be supplanted at some point, and then there'll be the dance again. And again. It's just this that I don't understand.

At the point you're customising tailwind and classes you run into the same problems as with CSS without clear guidelines/organisation. So the only way to not run into that it's to use it as inline styles but with classes...



Honest answer: I already knew them.

I’d used plain CSS for years following the Zen of CSS approach which I was very fond of and I was a big fan of SASS for simplifying it too. Dealing with browser quirks got old though.

The issue is that most CSS is approached from a perspective that you’re going to reuse a specific part over and over in your HTML as a single tag.

Tailwind realizes that this happens, but simply argues that in most code it happens in templated loops instead of all over your source code. So instead it focuses on reusable parts that cover all of the browser quirks and can be easily combined.

It’s such a boost to productivity and practicality that I can’t believe it hasn’t been around forever.


Yeah, I don't feel the same pains though.


In the article, it points out that some ideas being used by Tailwind are being considered as standards: https://www.w3.org/community/design-tokens/

I think this is an important point, good standards evolve by adopting real world proven practices. If everyone only used 'the standard', then it would never improve.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: