Open suburbanworrier opened 1 month ago
Thank you @suburbanworrier
for reporting issues. It helps daisyUI a lot 💚
I'll be working on issues one by one. I will help with this one as soon as a I
find a solution.
In the meantime providing more details and reproduction links would be
helpful.
What version of daisyUI are you using?
v4.12.10
Which browsers are you seeing the problem on?
All browsers
Reproduction URL
https://play.tailwindcss.com/HPwAYbvcas?file=config
Describe your issue
Overriding one of the standard colors works fine by redefining the css var in tailwind.config.js
Overriding multiple colors introduces quirks with seemingly only the final var being honoured.
However in making the Tailwind Play file I noticed that it was possible to successfully override both the primary and secondary color but never all three of "primary", "secondary" and "accent".
I initially mocked this up in a Stackblitz at https://stackblitz.com/edit/daisyui-sveltekit-3ys4xm?file=tailwind.config.cjs where I've updated daisyUI to the latest version. Toggling the order of lines 17 & 18 in tailwind.config.cjs exposes the problem as I initially saw it.
Both of these showcase an issue I'm seeing in a larger SvelteKit project where I'm attempting to style button text color.