30 lines
929 B
CSS
30 lines
929 B
CSS
/**
|
||
* fonts.css — Inter + JetBrains Mono 本地字体加载
|
||
*/
|
||
|
||
@font-face {
|
||
font-family: 'Inter';
|
||
src: url('./fonts/Inter-Variable.woff2') format('woff2');
|
||
font-weight: 100 900;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
}
|
||
|
||
@font-face {
|
||
font-family: 'JetBrains Mono';
|
||
src: url('./fonts/JetBrainsMono-Regular.woff2') format('woff2');
|
||
font-weight: 400 700;
|
||
font-style: normal;
|
||
font-display: swap;
|
||
}
|
||
|
||
/* 字体变量赋值
|
||
* 西文优先:Inter 排最前拿更好的西文/数字观感;Inter 不含 CJK 字形,
|
||
* 中文会自动落到后面的 YaHei/PingFang 兜底,两段各取所长。 */
|
||
:root {
|
||
--font-ui: 'Inter', 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC',
|
||
'Hiragino Sans GB', 'Segoe UI', system-ui, -apple-system,
|
||
BlinkMacSystemFont, sans-serif;
|
||
--font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas',
|
||
'Microsoft YaHei', monospace;
|
||
} |