mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

[Feature request] Add a theme option like "auto" to reset the theme to auto dark mode

Open myuki opened this issue 3 years ago • 2 comments

If change the theme manually, it can't be reset to auto dark mode that request the dark version of the site via the prefers-color-scheme CSS media query.

The desktop browser can reset the theme by manually delete the local storage which is really troublesome. Also, many mobile browsers can't just delete a specific website data. It should add a theme option like "auto" to reset the theme to auto dark mode.

myuki avatar Apr 17 '21 02:04 myuki

Any progress on this?

vrslev avatar Nov 18 '22 19:11 vrslev

When set to auto, I would really like if I didn't have to reload the page for it to apply either. It should just change instantly when I change between light/dark mode on my system :)

bragefuglseth avatar Feb 11 '23 21:02 bragefuglseth