Live data from Hacker News

Tailwind is a leaky abstraction

jakelazaroff.com

1–10 of 391 posts

Re: Tailwind is a leaky abstraction

#2
_All_ abstractions are leaky, but some are helpful. For me, as an unwilling and inept CSS dev working on small low-budget projects, Tailwind is helpful because it lets me put all styling information in one place.

Re: Tailwind is a leaky abstraction

#5
> You still need to know CSS.

Yes. Tailwind CSS is just CSS:

> A utility-first CSS framework

It is not a leaky abstraction, because it isn't an abstraction. It's a only a special syntax for applying predefined blocks of CSS to HTML elements.

Re: Tailwind is a leaky abstraction

#6
Tailwind has made building components in React an absolute joy for me.

I don't need to scroll up to find my css-in-js definitions, I don't need to change windows to find the CSS modules, it's all there, in one place.

Re: Tailwind is a leaky abstraction

#7
You either use a generic CSS or a generic HTML. Everybody who picks Tailwind decides to use a generic CSS and a specific HTML.

I like the old school approach of having a clean and semantically correct HTML without any styling information. And then implement the "theme(s)" in CSS.

Makes just more sense to me and goes along with the idea of CSS - separating style and content.

But the recent adoption of tailwind make me think a lot.

Re: Tailwind is a leaky abstraction

#9
This feels like the wrong way to think about tailwind.

Every other UI framework or library that I’ve used felt like leaky abstractions. You always have to learn both how the library works AND how css works.

Tailwind isn’t even an abstraction, it’s just a layer of convenience to be used where helpful and ignored where not. The thing I love about Tailwind is that it feels like CSS. In fact, I feel like I know CSS better for having used Tailwind.

Post reply on HN