feat: 思源黑和noto mono
This commit is contained in:
@@ -102,3 +102,4 @@ export default defineConfig({
|
||||
]
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import Theme from 'vitepress/theme'
|
||||
// import Theme from 'vitepress/theme'
|
||||
import DefaultTheme from 'vitepress/theme-without-fonts'
|
||||
import './style.css'
|
||||
|
||||
export default {
|
||||
...Theme,
|
||||
...DefaultTheme,
|
||||
Layout: () => {
|
||||
return h(Theme.Layout, null, {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
})
|
||||
},
|
||||
@@ -14,3 +15,6 @@ export default {
|
||||
// ...
|
||||
}
|
||||
}
|
||||
// export default {
|
||||
// ...DefaultTheme,
|
||||
// }
|
||||
@@ -2,7 +2,8 @@
|
||||
* Customize default theme styling by overriding CSS variables:
|
||||
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
|
||||
*/
|
||||
|
||||
@import url('https://fonts.loli.net/css2?family=Noto+Sans+SC&display=swap');
|
||||
@import url('https://fonts.loli.net/css2?family=Noto+Sans+Mono&display=swap');
|
||||
/**
|
||||
* Colors
|
||||
* -------------------------------------------------------------------------- */
|
||||
@@ -17,6 +18,11 @@
|
||||
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
|
||||
}
|
||||
|
||||
:root {
|
||||
--vp-font-family-base: 'Noto Sans SC', sans-serif;
|
||||
--vp-font-family-mono: 'Noto Sans Mono', sans-serif, monospace, consolas;
|
||||
}
|
||||
|
||||
/**
|
||||
* Component: Button
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user