Furo should switch to dark theme if @media(prefers-color-scheme: dark)
#844
-
A first time visitor of a Furo site always ends up in the light theme. Furo only queries the media type This btw. would be possibly by adding one line of JS code to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No, I don't think that's true. It sets a theme mode data attribute at load, defaulting to "auto": furo/src/furo/theme/furo/base.html Lines 84 to 86 in fd3e7b9 Media queries in the CSS take it from there. I've run into some browser/OS combinations where this kind of thing doesn't work properly, but that isn't Furo's fault. |
Beta Was this translation helpful? Give feedback.
No, I don't think that's true. It sets a theme mode data attribute at load, defaulting to "auto":
furo/src/furo/theme/furo/base.html
Lines 84 to 86 in fd3e7b9
Media queries in the CSS take it from there.
I've run into some browser/OS combinations where this kind of thing doesn't work properly, but that isn't Furo's fault.