-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
104 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
/* 无衬线字体 */ | ||
.font-sans { | ||
font-family: 'Inter', 'LXGW Neo XiHei', system-ui, -apple-system, sans-serif; | ||
} | ||
|
||
/* 衬线字体 */ | ||
.font-serif { | ||
font-family: 'Noto Serif SC', 'Source Han Serif SC', serif; | ||
} | ||
|
||
/* 等宽字体 */ | ||
.font-mono { | ||
font-family: 'JetBrains Mono', 'LXGW WenKai Mono', monospace; | ||
} | ||
|
||
/* 预加载字体 */ | ||
@font-face { | ||
font-family: 'LXGW Neo XiHei'; | ||
src: url('https://cdn.jsdelivr.net/gh/chawyehsu/lxgw-neo-xihei-webfont@latest/dist/LXGWNeoXiHei.woff2') format('woff2'); | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'LXGW WenKai Mono'; | ||
src: url('https://cdn.jsdelivr.net/gh/chawyehsu/lxgw-wenkai-webfont@latest/dist/LXGWWenKaiMono-Regular.woff2') format('woff2'); | ||
font-display: swap; | ||
} | ||
|
||
@layer base { | ||
body { | ||
transition: font-family 0.3s ease; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters