Install / Usage
Requirement
- Env: LTS Versions of Node.js (^20+)
- Package Manager: npm >= 8, pnpm >= 7
Install
Create a new vitepress-theme-niansi project in <dir> folder:
bash
$ pnpm add -D vitepress-theme-niansi vitepress@nextbash
$ npm add -D vitepress-theme-niansi vitepress@nextbash
$ yarn add -D vitepress-theme-niansi vitepress@nextbash
$ bun add -D vitepress-theme-niansi vitepress@nextAfter installation, run the following commands:
bash
$ pnpm vitepress-theme-niansi initbash
$ npx vitepress-theme-niansi initbash
$ yarn vitepress-theme-niansi initbash
$ bun vitepress-theme-niansi initImportant
<dir> is a parameter here, replace it with real folder names, such as blog or other name you like.
Usage and Configuration
Please import and use the vitepress-theme-niansi theme in your configuration file:
ts
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
// Other Configuration Items...
themeConfig: {
// Other Theme Configuration Items...
}
})You can refer to this documentation's configuration as a configuration reference.
Changelog
2026-04-14 14:20
View All Changelog