4 ms·
yes you can use @apply. DaisyUI also supports @apply directives as well both for their own and tailwind clases. However you have to use them yourself. With van
by manquer 5y ago
yes you can use @apply. DaisyUI also supports @apply directives as well both for their own and tailwind clases.
However you have to use them yourself. With vanilla Tailwind there is no out of the box @apply directives already set you can use. Think of DaisyUI as basically a whole set of @applies someone already made for you.
For users new to frameworks with utility focus it can be less steep learning curve to experiment and all the out of the box abstractions can reduce the need for having your own.