Use Theme

安装主题

Install Theme

bash
npm i valaxy-theme-yun
# pnpm add valaxy-theme-yun

启用主题

Enable Theme

配置 theme 字段为主题名称,如 yun

Configure the theme field as the theme name, such as yun.

ts
// valaxy.config.ts
import { defineConfig } from 'valaxy'

export default defineConfig({
  theme: 'yun'
})

主题配置

Theme Config

参见对应主题文档,配置 themeConfig

Refer to the corresponding theme documentation, configure themeConfig.

ts
// valaxy.config.ts
import { defineConfig } from 'valaxy'

export default defineConfig({
  theme: 'yun',
  themeConfig: {
    // ...
  }
})

Contributors