Hacker News new | ask | show | jobs
by pier25 1651 days ago
Doesn't that negate most of the benefits of using Tailwind in the first place?
1 comments

Not at all. You design and iterate on the button using the individual classes, then you swap them out for a concise class once you are done. It's how tailwind is designed to be used.

https://tailwindcss.com/docs/reusing-styles

Although I realize in looking this up in the documentation to show you, it's actually @apply and not @extend you are supposed to use.

Using @apply is the ultimate last resort though.