We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8cb73e commit 8f80bd0Copy full SHA for 8f80bd0
docs/config/theme-configs.md
@@ -21,9 +21,9 @@ Here it describes the settings for the VitePress default theme. If you're using
21
22
## logo
23
24
-- Type: `string`
+- Type: `ThemeableImage`
25
26
-Logo file to display in nav bar, right before the site title.
+Logo file to display in nav bar, right before the site title. Accepts a path string, or an object to set a different logo for light/dark mode.
27
28
```ts
29
export default {
@@ -33,6 +33,11 @@ export default {
33
}
34
```
35
36
+```ts
37
+type Image = string | { src: string; alt?: string }
38
+type ThemeableImage = Image | { light: Image; dark: Image }
39
+```
40
+
41
## siteTitle
42
43
- Type: `string | false`
0 commit comments