Skip to content

Commit

Permalink
style: 更改字体
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Oct 22, 2024
1 parent 6f6a173 commit 0206239
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,17 @@
.main {
margin-top: 8% !important;
}

@font-face {
font-family: 'LXGWWenKai-Regular';
src: url('../../public/LXGWWenKai-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'LXGWWenKaiMono-Regular';
src: url('../../public/LXGWWenKaiMono-Regular.ttf') format('truetype');
}

:root {
--vp-font-family-base: "LXGWWenKai-Regular";/* normal text font */
--vp-font-family-mono: "LXGWWenKaiMono-Regular";/* code font */
}
Binary file added docs/public/LXGWWenKai-Regular.ttf
Binary file not shown.
Binary file added docs/public/LXGWWenKaiMono-Regular.ttf
Binary file not shown.

0 comments on commit 0206239

Please sign in to comment.