News for hackers. Stuff that matters.
Re:Tailwind CSS v3.0 by nightpool on Thursday December 09, 2021 @04:02PM (#29502893)
In this scenario, "@apply" is just "a css class", so i don't think it's appropriate to list that as a benefit tailwind has over inline styles. In both cases you'd be defining the styles somewhere else.

Media queries are a good call out, they're definitely a benefit tailwind's approach has to the built-in browser support for inline styles. Another benefit is hover and focus states, which are very difficult to apply with inline styles.

There are no comments on this comment yet.