How is that different from:
D {
@apply A B C;
}
Or creating a new utility?https://tailwindcss.com/docs/adding-custom-styles#using-modi...
How is that different from:
D {
@apply A B C;
}
Or creating a new utility?https://tailwindcss.com/docs/adding-custom-styles#using-modi...
Please link to something that supports this claim, because it's not the first time I've seen it made on HN, but only found it on HN
I'm sure new users of the system will find that. Great job everyone.
FFS
That said, the documentation does lean heavily away from @apply:
https://tailwindcss.com/docs/reusing-styles#extracting-class...
> If you’re going to use @apply, use it for very small, highly reusable things like buttons and form controls — and even then only if you’re not using a framework like React where a component would be a better choice.
Personally I think @apply is a useful tool - and I'm not sold on it being always evil.