2 ms·
Doesn't that negate most of the benefits of using Tailwind in the first place?
by pier25 5y ago
Doesn't that negate most of the benefits of using Tailwind in the first place?
- JasonCannon 5y agoNot 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 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.
- Toine 5y agoUsing @apply is the ultimate last resort though.