diff --git a/.vitepress/config.js b/.vitepress/config.js index 09858dd..d9ef157 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -102,3 +102,4 @@ export default defineConfig({ ] } }) + diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 07970be..b600c71 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -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, +// } \ No newline at end of file diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index c23c17a..9ebec97 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -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 * -------------------------------------------------------------------------- */