Update theme-appearance.md

pull/901/head
Fuqiao Xue 3 years ago committed by GitHub
parent 52f0aecd85
commit a3349b2c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
# Dark Mode # Dark Mode
By default, VitePress will add a dark-mode toggle to the navigation bar. To remove it, set `false` to the [`config.appearance`](../config/app-configs.html#appearance) option. If you would like to customize the style in dark mode only, prepend `:root.dark ` to the CSS selectors: By default, VitePress will add a dark-mode toggle to the navigation bar. To remove it, set `false` to the [`config.appearance`](../config/app-configs.html#appearance) option. If you would like to customize the style in dark mode only, prepend `.dark ` to the CSS selectors:
```css ```css
.dark .BannerPicture { .dark .BannerPicture {

Loading…
Cancel
Save