Hide the appearance switcher, but still honor the user’s preferred color scheme #3946
Closed
4 tasks done
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
I would like to hide the appearance switcher (the dark/light mode toggle); however, I would still like VitePress to respect the user’s preferred color scheme. None of the existing appearance settings appear to allow this: enabling responsive light/mark mode also enables the appearance switcher.
Apple’s human interface guidelines expressly discourage in-app appearance switchers, saying:
Describe the solution you'd like
Maybe setting
appearance: "auto"
(ideally the default) would set the dark/light mode based on the user’s preferred color scheme but without rendering the appearance switcher anywhere.Describe alternatives you've considered
I can suppress the appearance switcher with custom CSS, but it is brittle (particularly in
.VPMenu
) and likely to break in future releases of VitePress:Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: