feat: 思源黑和noto mono

This commit is contained in:
camera-2018
2023-04-14 16:27:00 +08:00
parent 15c19b9b1e
commit 59775358c7
3 changed files with 16 additions and 5 deletions

View File

@@ -102,3 +102,4 @@ export default defineConfig({
]
}
})

View File

@@ -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,
// }

View File

@@ -2,12 +2,13 @@
* 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
* -------------------------------------------------------------------------- */
:root {
:root {
--vp-c-brand: #646cff;
--vp-c-brand-light: #747bff;
--vp-c-brand-lighter: #9499ff;
@@ -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
* -------------------------------------------------------------------------- */