by adyus · 5y ago · 0 comments
Just write your CSS selector to target whatever you'd like, then use `@apply tailwind-classes md:other-tailwind-classes` inside the brackets.
This way, it's just a set of shorthand tags that replace the long-form CSS props, but it's still useful for quick design work.
I never understood this argument, at this point you are just writing CSS with extra steps and unnecessary abstractions.
With Tailwind: defer decisions about assigning classes until you've built enough to see what the proper abstractions are, then just refactor out the repeated utility classes. There's even plugins that will consistently sort your Tailwind classes so that refactoring can be automated by simple search and replace.