Skip to main content

Default Theme Configuration

The default theme configuration is set via the themeConfig 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 file displayed in the nav bar, before the site title.
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).
NavItem[]
Navigation menu items displayed in the header.
Sidebar
Sidebar navigation configuration. Can be a simple array or multi-sidebar object.
Social media links displayed at the end of the nav bar.

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.

Page Features

Configure the “Edit this page” link.

lastUpdated

LastUpdatedOptions
Configure the last updated timestamp display.

docFooter

Customize prev/next page navigation labels.

search

Configure local search or Algolia DocSearch.
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

string
default:"Menu"
Aria label for the sidebar menu in mobile view.

returnToTopLabel

string
default:"Return to top"
Aria label for the return to top button.

langMenuLabel

string
default:"Change language"
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.

externalLinkIcon

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