auto dark theme applied #3919
Unanswered
Kens-Jaswal
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hey. What is not working exactly? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I upgrade my svelte project with TailwindCSS and DaisyUI both, in daisy ui there is line mentioned to default set Dark theme, what it means I do not configured color variables for dark theme? only light color variables need to add and for dark mode it will convert it self, right ? which is not working...
@plugin "daisyui" {

themes: winter --default, night --prefersdark;
}
here is my app.css:
@import 'tailwindcss';
/* below line is required to activate dark-theme as a css selector */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
@config "../../tailwind.config.js";
@plugin "daisyui";
[data-theme='dark'] {
--color-secondary: oklch(79% 0.1022 225.53);
}
@plugin "daisyui/theme" {
name: 'light';
default: true; /* set as default */
}
Beta Was this translation helpful? Give feedback.
All reactions