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

> Doesn't Tailwind map pretty much 1:1 to CSS?

Much of it does, but not all of it.



Do you have an example that Tailwind can do that can't be done in CSS?


I'm going off a claim from the Tailwind site :-)

The original question wasn't whether Tailwind can do something CSS can't, but whether it was a 1:1 mapping.

Can regular CSS do media queries all within the element's style attribute?

I believe Tailwind also utilizes JS to get some convenience features to work.


Oh gotcha, I must have just misunderstood the previous comment.

I want to say that tailwind also can't do inline media queries, but that's getting really nitpicky and pedantic. You can at least add a class inline that Tailwind creates a media query for in CSS, that is really handy.


Tailwind doesn't generate any JS at all. The final build is 100% CSS.




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

Search: