主题
介绍
传递 theme
选项至 sveltepress 来使用一个主题
阅读 Vite 插件选项参考 来获得更多信息
默认主题
安装
NPM
YARN
PNPM
npm install --save @sveltepress/theme-default
sh
在 vite.config.(js|ts) 中配置
vite.config.(js|ts)
+
-
+
+
+
import { defaultTheme } from '@sveltepress/theme-default'
import { sveltepress } from '@sveltepress/vite'
import { defineConfig } from 'vite'
const config = defineConfig ({
plugins : [
sveltepress (),
sveltepress ({
theme : defaultTheme (/** theme options */)
})
],
})
export default config
ts
阅读 默认主题参考 来获得更多信息