优化前端字体显示

This commit is contained in:
2026-03-21 21:51:24 +08:00
parent 7b43cb2553
commit 7409d9aa92
2 changed files with 6 additions and 1 deletions

View File

@@ -6,6 +6,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Inter + Noto Sans SC Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap" rel="stylesheet" />
%sveltekit.head% %sveltekit.head%
</head> </head>

View File

@@ -55,7 +55,7 @@
--radius-full: 9999px; --radius-full: 9999px;
/* ========== Typography ========== */ /* ========== Typography ========== */
--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-family: 'Inter', 'Noto Sans SC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-size-xs: 0.75rem; /* 12px */ --font-size-xs: 0.75rem; /* 12px */
--font-size-sm: 0.875rem; /* 14px */ --font-size-sm: 0.875rem; /* 14px */
--font-size-base: 1rem; /* 16px */ --font-size-base: 1rem; /* 16px */