This commit is contained in:
2026-09-12 13:59:12 +08:00
commit 941ce4baab
71 changed files with 13037 additions and 0 deletions

30
renderer/themes/fonts.css Normal file
View File

@@ -0,0 +1,30 @@
/**
* 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;
}