Files
Clipboard/renderer/themes/fonts.css
2026-09-12 13:59:12 +08:00

30 lines
949 B
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 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;
}