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

> Embedding every style directly into the style attribute is also readable, and as a side benefit it doesn't need a build step just to make your styles actually work.

Critical difference: media queries are unavailable to inline styles, making impossible to implement responsive designs this way. And anyway, CSS is so much more verbose than Tailwind that it really wouldn’t be very readable outside of toy examples.

Personally, I have used CSS since it was first created. I also have used Bootstrap and Foundation, but found them brittle and cumbersome. Now I just write 95% of styles with Tailwind.





> Critical difference

Yeah that's the critical difference, absolutely.

> Now I just write 95% of styles with Tailwind.

Which everyone says is only really useful if you use in a JSX Component...

So you're writing it in XML...

But then that gets converted into JavaScript....

Which then writes out some HTML and CSS?

I will absolutely not be surprised when someone declares that the XML part of JSX is too verbose and creates a library to generate the JSX code. Fuck it who am I kidding, it probably already exists doesn't it?




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

Search: