-
|
It seems that the changes are not applied, both for version I tried with and without the @plugin "daisyui" {
themes: light --default, dark --prefersdark, cmyk;
}
@plugin "daisyui/theme" {
name: "light";
default: true;
prefersdark: false;
color-scheme: light;
--font-sans: Raleway, system-ui;
}
@plugin "daisyui/theme" {
name: "dark";
default: false;
prefersdark: true;
color-scheme: dark;
--font-sans: Raleway, system-ui;
}The only way it works is bypassing the theme mechanism and just applying :root, :host {
--font-sans: Raleway, system-ui;
font-family: var(--font-sans);
}Or by setting only the variable in the layer: @layer theme {
:root, :host {
--font-sans: Raleway, system-ui;
}
}What am I missing, what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
pdanpdan
Jan 24, 2026
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://play.tailwindcss.com/sIjCmR3KyJ?file=css