Initial rearrangment of vuetom site source
This commit is contained in:
17
packages/docs/.vitepress/theme/custom.scss
Normal file
17
packages/docs/.vitepress/theme/custom.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
:root{
|
||||
// 重写主题色
|
||||
|
||||
// 主色
|
||||
--vp-c-brand: var(--vp-c-blue);
|
||||
--vp-c-brand-light: var(--vp-c-blue-light);
|
||||
--vp-c-brand-lighter: var(--vp-c-blue-lighter);
|
||||
--vp-c-brand-dark: var(--vp-c-blue-dark);
|
||||
--vp-c-brand-darker: var(--vp-c-blue-darker);
|
||||
|
||||
// 副色
|
||||
--vp-c-second: var(--vp-c-pink);
|
||||
--vp-c-second-light: var(--vp-c-pink-light);
|
||||
--vp-c-second-lighter: var(--vp-c-pink-lighter);
|
||||
--vp-c-second-dark: var(--vp-c-pink-dark);
|
||||
--vp-c-second-darker: var(--vp-c-pink-darker);
|
||||
}
|
24
packages/docs/.vitepress/theme/index.ts
Normal file
24
packages/docs/.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
// .vitepress/theme/index.ts
|
||||
|
||||
// theme
|
||||
import VuetomTheme from 'vitepress-theme-vuetom/docs'
|
||||
|
||||
// components
|
||||
import { globals } from '../views'
|
||||
|
||||
// rewrite css
|
||||
import './custom.scss'
|
||||
|
||||
export default {
|
||||
...VuetomTheme,
|
||||
|
||||
// NotFound,
|
||||
// Layout,
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// app.use(VuetomUI)
|
||||
|
||||
globals.forEach(([name, Comp]) => {
|
||||
app.component(name, Comp)
|
||||
})
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user