- run a command to init vitepress
- select the Custom Theme when you see the follow questions:
┌ Welcome to VitePress!
│
◇ Where should VitePress initialize the config?
│ ./docs
│
◇ Site title:
│ My Awesome Project
│
◇ Site description:
│ A VitePress Site
│
◆ Theme:
│ ○ Default Theme (Out of the box, good-looking docs)
│ ○ Default Theme + Customization
│ ● Custom Theme
└
- create a
index.ts
under the .vitepress/theme
import type { Theme } from 'vitepress'
import YevTheme from 'vitepress-theme-snow'
import 'vitepress-theme-snow/styles/index.css'
export default {
...YevTheme
} satisfies Theme