Default Theme Configuration
The default theme configuration is set via thethemeConfig option in your config file. These options control the appearance and behavior of the default VitePress theme.
These options only apply to the default theme. Custom themes receive this config object but may handle it differently.
Site Branding
logo
ThemeableImage
Logo file displayed in the nav bar, before the site title.
- Simple Logo
- With Alt Text
- Light/Dark Mode
logoLink
string | { link?: string; rel?: string; target?: string }
Override the link when clicking the logo.
siteTitle
string | false
Customize the site title in the nav bar. Set to
false to hide it (useful when logo contains text).Navigation
nav
Navigation menu items displayed in the header.
- Simple Links
- Nested Dropdown
- Active State
- Dynamic Links
sidebar
Sidebar
Sidebar navigation configuration. Can be a simple array or multi-sidebar object.
- Collapsible Groups
- With Base Path
Social Links
socialLinks
SocialLink[]
Social media links displayed at the end of the nav bar.
- Built-in Icons
- Custom SVG Icon
Page Layout
aside
boolean | 'left'
default:"true"
Control the aside container position. Can be overridden per page via frontmatter.
outline
Outline | number | [number, number] | 'deep' | false
default:"2"
Configure the outline (table of contents) in the aside.
- Level Range
- Deep Outline
- Custom Label
- Disable
Page Features
editLink
EditLink
Configure the “Edit this page” link.
- GitHub
- GitLab
- Dynamic Pattern
lastUpdated
LastUpdatedOptions
Configure the last updated timestamp display.
docFooter
Customize prev/next page navigation labels.
Search
search
LocalSearchOptions | AlgoliaSearchOptions
Configure local search or Algolia DocSearch.
- Local Search
- Algolia
- Multi-locale
Footer
footer
Configure the page footer.
Ads & Monetization
carbonAds
CarbonAdsOptions
Configure Carbon Ads integration.
Internationalization
i18nRouting
boolean
default:"true"
Control locale-based URL routing behavior.
Accessibility Labels
darkModeSwitchLabel
string
default:"Appearance"
Aria label for the appearance switch in mobile view.
lightModeSwitchTitle
string
default:"Switch to light theme"
Title for the light mode switch.
darkModeSwitchTitle
string
default:"Switch to dark theme"
Title for the dark mode switch.
sidebarMenuLabel
Aria label for the sidebar menu in mobile view.
returnToTopLabel
string
default:"Return to top"
Aria label for the return to top button.
langMenuLabel
Aria label for the language menu button.
skipToContentLabel
string
default:"Skip to content"
Label for the skip to content link.
404 Page
notFound
NotFoundOptions
Customize the 404 page.
External Link Icon
externalLinkIcon
boolean
default:"false"
Show external link icon in Markdown links.
Complete Example
Next Steps
Site Configuration
Configure global site settings
Extending Default Theme
Customize with CSS, components, and layout slots