4 ms·
The tailwind developers have specifically said @apply is a codesmell and they regret adding it. If you're just going to stick the tail wind classes in a class
by ehutch79 3y ago
The tailwind developers have specifically said @apply is a codesmell and they regret adding it.
If you're just going to stick the tail wind classes in a class like this, why bother? just use css vars.
- yawnxyz 3y agoI think CSS vars are complementary (I also use them in projects). There's probably a way to do this more elegantly, but with tailwind classes in a class I can quickly re-apply certain styles across projects / microsites.
- ehutch79 3y agoYou don't need tailwind for that? that's how css works.