3 ms·
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. C
by BeetleB 2y ago
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.
- _heimdall 2y agoOh 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.
- yurishimo 2y agoTailwind doesn't generate any JS at all. The final build is 100% CSS.