30 lines
949 B
CSS
30 lines
949 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)排在中文兜底之后,App 里大部分文本是中文,
|
||
* 让 YaHei/PingFang 先匹配笔画渲染,CJK 之外再走 Inter 拿更好的西文观感。 */
|
||
: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;
|
||
} |