Furo should switch to dark theme if @media(prefers-color-scheme: dark)
#844
Unanswered
jrief
asked this question in
Potential Issue
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.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A first time visitor of a Furo site always ends up in the light theme. Furo only queries the media type
prefers-color-scheme
if the user clicks on the provided button. For users having set their browser into dark mode by default, the Furo theme should start automatically in dark mode.This btw. would be possibly by adding one line of JS code to
furo.js
. Shall I create a pull request?Beta Was this translation helpful? Give feedback.
All reactions