使用主题

安装主题

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

启用主题

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

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

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

主题配置

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

主题 Yun 配置

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

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

贡献者