Skip to content
Install / Usage

Install / Usage

Posted Updated
By 廿四3 min Read

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@next
bash
$ npm add -D vitepress-theme-niansi vitepress@next
bash
$ yarn add -D vitepress-theme-niansi vitepress@next
bash
$ bun add -D vitepress-theme-niansi vitepress@next

After installation, run the following commands:

bash
$ pnpm vitepress-theme-niansi init
bash
$ npx vitepress-theme-niansi init
bash
$ yarn vitepress-theme-niansi init
bash
$ bun vitepress-theme-niansi init

Important

<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:

.vitepress/config.ts
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