Skip to content
Config Intro

Config Intro

Posted Updated
By 廿四2 min Read

Config Concepts

VitePress mainly stores config and required files through the .vitepress/ folder in the directory.

Info

For the file structure of VitePress, see VitePress → File Structure.

In VitePress, there are three config concepts:

  • Site Config:Configuration items passed to defineConfig.
  • Theme Config:Configuration items passed to themeConfig.
  • Page Config:provided by Frontmatter at the top of the page based on YAML syntax.

Theme Usage

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress-theme-niansi'

export default defineConfig({
  // siteConfig here
  
  themeConfig: {
    // themeConfig here
  }
})

Changelog

2026-04-14 14:20
View All Changelog