Skip to content

Commit

Permalink
🔥 更新字体样式
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Aug 30, 2024
1 parent d410bcc commit 70d1c95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/.vitepress/config/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ console.log(generateSidebarConfig())

export const common = defineConfig({
head: [
[
'link', {rel: 'icon', type: 'image/svg+xml', href: '/mbcp-logo.svg'}
]
['link', {rel: 'icon', type: 'image/svg+xml', href: '/mbcp-logo.svg'}],
['link', {rel: 'stylesheet', href: 'https://fonts.font.im/css?family=Cousine:400,400i,700,700i|Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'}],
],
markdown: {
math: true
Expand Down
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
:root {
--vp-font-family-base: 'Poppins', sans-serif;
--vp-font-family-mono: 'Cousine', monospace;
}
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import DefaultTheme from 'vitepress/theme-without-fonts'
import './fonts.css'

export default DefaultTheme

0 comments on commit 70d1c95

Please sign in to comment.