fix(desktop): bundle Geist font locally for offline startup

This commit is contained in:
t8y2
2026-05-29 01:57:03 +08:00
parent e2aad8a1d8
commit 06c87676a0
4 changed files with 116 additions and 2 deletions
+23 -2
View File
@@ -1,4 +1,24 @@
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap");
@font-face {
font-family: "Geist Variable";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: "Geist Variable";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@import "tailwindcss";
@source "../**/*.{vue,ts,tsx,js,jsx,html}";
@@ -10,7 +30,8 @@
@custom-variant dark (&:is(.dark *));
@theme inline {
--font-sans: "Geist Variable", sans-serif;
--font-sans:
"Geist Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
--font-heading: var(--font-sans);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);