fix(web): 离线/内网环境改用系统字体,避免构建时联网下载 Google 字体
This commit is contained in:
@@ -4,6 +4,16 @@
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
/* 系统字体回退:离线/内网环境不依赖 Google 字体 */
|
||||
:root {
|
||||
--font-sans: ui-sans-serif, system-ui, -apple-system, "PingFang SC",
|
||||
"Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial,
|
||||
sans-serif;
|
||||
--font-geist-sans: var(--font-sans);
|
||||
--font-geist-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
||||
"Liberation Mono", monospace;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
|
||||
Reference in New Issue
Block a user