-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
bug: using custom theme, --root-bg does not match --color-base-100 – causes weird modal overlay #3928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you @yumhum
for reporting issues. It helps daisyUI a lot 💚
|
Hey, what's the issue? |
ok i think the problem is this:
So while using data-theme with some custom theme, it causes the issue |
Reproduction URL (Required)
https://play.tailwindcss.com/NTn5EpW5FB
What version of daisyUI are you using?
v5.0.23
Which browsers are you seeing the problem on?
All browsers
Describe your issue
I am using custom daisyui theme.
Added modal in my project and noticed weird colors at overlay.
After some digging i found that --root-bg contains 2 variables. The second one was color-base-100 however the first one caused the issue.
The solution was to add into my theme css line: --root-bg: the same color set up in --color-base-100.
At first i thought it is issue with my framework (using Nuxt 3) so originally i posted about it in discussion. More details and description and screenshots are there #3926
Hope it helps somebody!
The text was updated successfully, but these errors were encountered: