Skip to content

Commit

Permalink
fix(theme): use default font (#419)
Browse files Browse the repository at this point in the history
Co-authored-by: Lee <[email protected]>
  • Loading branch information
Cryolitia and Leetfs authored Sep 17, 2024
1 parent 3ad864b commit e9ce481
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/vitepress-theme-project-trans/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ export default defineBuildConfig({
builder: 'mkdist',
input: './src',
outDir: './dist',
pattern: ['**/*.ts'],
pattern: ['**/*.ts', '**/*.css'],
format: 'esm',
loaders: ['js'],
},
{
builder: 'mkdist',
input: './src',
outDir: './dist',
pattern: ['**/*.ts'],
pattern: ['**/*.ts', '**/*.css'],
format: 'cjs',
loaders: ['js'],
},
Expand Down
4 changes: 4 additions & 0 deletions packages/vitepress-theme-project-trans/src/custom-font.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:root {
--vp-font-family-base: sans-serif;
--vp-font-family-mono: monospace;
}
3 changes: 2 additions & 1 deletion packages/vitepress-theme-project-trans/src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// https://vitepress.dev/guide/custom-theme
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import DefaultTheme from 'vitepress/theme-without-fonts'
import { h } from 'vue'
import './custom-font.css'

import {
NolebaseEnhancedReadabilitiesMenu,
Expand Down

0 comments on commit e9ce481

Please sign in to comment.