Live data from Hacker News

Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

frontendeng.dev

11–20 of 38 posts

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#12

Earlier quoted context omitted.

Sometimes I wonder, when did HN went so wrong and is full of comments that do not further the discussion but purely result into flamewar and ridiculous homilies.

I've only been here since 2015 so I'm not bringing much more than an early middle-aged viewpoint, in HN years. But I noticed a big uptick of this starting to happen when cryptocurrency people began proselytizing aggressively around 2016, 2017, so much so that I actually made an account to push back on it in some small way (my handle was originally blockchainoffools, but the hn handle limits knocked my block off) havi…

I did not know Crypto bros are that old. Interesting observation though.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#13

If you find yourself at a point in your life where you're selecting between Tailwind and Bootstrap, you need to stop and think hard when did things go so wrong.

just use plain css. easiest solution ever.

That requires me to remember all the little corner cases.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#15

If you find yourself at a point in your life where you're selecting between Tailwind and Bootstrap, you need to stop and think hard when did things go so wrong.

Under Reason 2: "For Tailwind you will often end up writing something like following" -

I think they meant "For bootstrap.."?

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#16

If you find yourself at a point in your life where you're selecting between Tailwind and Bootstrap, you need to stop and think hard when did things go so wrong.

Under Reason 2: "For Tailwind you will often end up writing something like following" - I think they meant "For bootstrap.."?

No. Tailwind does not give you any button specific css, you are supposed to write it yourself. Where as bootstrap comes with .btn classes. So I think the article is correct.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#17

If you find yourself at a point in your life where you're selecting between Tailwind and Bootstrap, you need to stop and think hard when did things go so wrong.

Sometimes I wonder, when did HN went so wrong and is full of comments that do not further the discussion but purely result into flamewar and ridiculous homilies.

Most of my comments are serious.

But asking me to take Tailwind seriously as a CSS framework is like asking me to take Flat Earth Society seriously in a science forum. Everything has a threshold where you cross from the plausible to the absurd. To me there's a non-zero chance Tailwind is (or at least started as) a parody of bad software design.

We just had a submission the other day that "the JavaScript ecosystem has a talent problem". It's a real problem.

CSS's very goal is to separate styles into reusable, readable rules, and here comes Tailwind, inlining them into an endless combination of increasingly obscure and indecipherable abbreviations. Are you not entertained? It seems deliberate.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#18
I think I like how the article tells you that this comparison is basically like comparing Legos with IKEA furniture. But in reality I think more apt comparison is getting wood and tools from HomeDepot vs buying make your furniture kit from IKEA. Writing plain old CSS would be like go to forest and cut down your own tree.

People who are dissing on TailwindCSS come across as more emotional than sensible. Tailwind is a far better fit for any large application that needs to be unique in its design which is basically any major website today. An e-commerce site today does not need 10 different types of buttons but it rather needs 5 buttons and one button that completely stands out.

Tailwind has gotten the complexity out of writing CSS to do all the common things yourself but it has not created and opinionated design philosophy either. It is not meant for your weekend project, but I do think nearly every large site will eventually move to a more Tailwind like framework.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#19
post #13

Earlier quoted context omitted.

just use plain css. easiest solution ever.

That requires me to remember all the little corner cases.

CSS used to have many little corners. It doesn't these days.

What it has is an excess of features, that may be hard to recall. But large language models are surprisingly good at bridging this gap when you need a hand in writing a snippet for a given layout.

I suspect people waste more time learning Tailwind than they would write plain CSS. And by "plain CSS" I do not exclude tools like SCSS/SASS/LESS, whose utility is confirmed by the fact CSS itself is adopting some of their features and syntax (variables, nesting).

Imagine CSS adopting some of Tailwind's syntax, though... Wow. Sorry for the disturbing mental image.

Re: Ways in which Tailwind CSS is a better choice than Twitter Bootstrap

#20

If you're going to use Tailwind why not just use the style attribute and just give up on CSS classes?

To me the biggest reason is selector specificity, especially when it comes to authoring component libraries. Inline styles written with the style attribute are impossible to override without using !important, which only exacerbates the specificity problem.
Post reply on HN