-
Thank you for the amazing library. I am trying to upgrade to v5. Many things break but the first one I noticed is this one: @utility active-primary {
--n: var(--p);
--nc: var(--pc);
@apply active;
} According to docs, @utility active-primary {
--n: var(--p);
--nc: var(--pc);
@apply menu-active;
}
At the top, I have: @import "tailwindcss";
@plugin "daisyui";
@config '../tailwind.config.ts'; I assume I need to some how to import so that is visible to tailwind. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for reaching out.
But I see the challenge here. Remapping the color names and extending a modifier class name to another one shouldn't be needed to do in the first place. |
Beta Was this translation helpful? Give feedback.
Thanks for reaching out.
There are 2 challenges here:
@apply menu-active
won't work anymore, as both daisyUI 5 and Tailwind CSS 4 use native CSS nesting. they are working as a modifier, not an individual class name that Tailwind can simply extract from a nested tree and extend it into another class name.But I see the challenge here. Remapping the color names and extending a modifier class name to another one shouldn't be needed to do in the first place.
Right now you can do something like this https://play.tailwindcss.com/PUyU2Fr1OP?file=css to move on f…