How to change the backgound color of the dark theme without affecting other sytles? #3731
Replies: 1 comment 1 reply
-
You should be posting such trouble either inside the daisyUI discord or the "Issues" page inside the daisyUI GitHub repository (the page you currently inspect => "Issues" tab). Please also format your code properly as GitHub and Discord offer great markdown support allowing you to make
Back to your problem. I am not much familiar anymore with v4 syntax because v5 recently came out. You are overwriting the dark theme by extending it and having three fallback colors, but specifiyng that you use side-wide the "light" theme. You should change the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to use the following code to change the background color of the page:
daisyui: {
themes: [
"light",
{
dark: {
...import("daisyui/src/theming/themes")["dark"],
"--fallback-b1": "#1e1e1e",
"--fallback-nc": "#a6adbb",
"--fallback-bc": "#a6adbb",
},
},
],
}
It made it, but it changed other elements' appearance, for example, scrollbar.
How to fix it? Thank you! I am using daisyUI 4.7.2
Beta Was this translation helpful? Give feedback.
All reactions