Skip to content

Commit 94824e1

Browse files
committed
Narrow admin font loading
1 parent 92919d1 commit 94824e1

6 files changed

Lines changed: 19 additions & 13 deletions

File tree

bun.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/design.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ Use `--panel-shadow` directly when you need a floating-panel feel; don't recompo
229229
### Typography
230230

231231
```css
232-
--font-sans: "Inter Variable", "Geist Variable", sans-serif;
233-
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
232+
--font-sans: "Inter Variable", system-ui, sans-serif;
233+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
234234
```
235235

236236
Type **sizes** are per-component and don't yet have a token scale. The patterns in actual use:

docs/reference/design-tokens.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The complete catalog of design tokens declared in `src/styles/globals.css`. Ever
1717
## Fonts
1818

1919
```css
20-
--font-sans: "Inter Variable", "Geist Variable", sans-serif;
21-
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
20+
--font-sans: "Inter Variable", system-ui, sans-serif;
21+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
2222
```
2323

2424
Type sizes are per-component and don't yet have a token scale. If a recurring size emerges across 3+ primitives, promote it to a token.

knip.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"src/ui/icons/icon-browser.html"
1919
],
2020
"ignoreDependencies": [
21-
"@fontsource-variable/geist",
2221
"@fontsource-variable/inter",
2322
"dependency-cruiser",
2423
"jscpd",

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"@codemirror/language": "^6.12.3",
5858
"@codemirror/state": "^6.6.0",
5959
"@dnd-kit/core": "^6.3.1",
60-
"@fontsource-variable/geist": "^5.2.8",
6160
"@fontsource-variable/inter": "^5.2.8",
6261
"@lezer/highlight": "^1.2.3",
6362
"@modelcontextprotocol/sdk": "^1.29.0",

src/styles/globals.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
1-
@import "@fontsource-variable/geist";
2-
@import "@fontsource-variable/inter";
1+
@font-face {
2+
font-family: "Inter Variable";
3+
font-style: normal;
4+
font-display: swap;
5+
font-weight: 100 900;
6+
src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2")
7+
format("woff2-variations");
8+
unicode-range:
9+
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
10+
U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
11+
U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
12+
}
313

414
/*
515
* Global CSS custom properties — design tokens for the editor UI.
616
* These map to SiteSettings.colorTokens for the canvas/published output.
717
* Editor chrome uses its own tokens below.
818
*/
919
:root {
10-
--font-sans: "Inter Variable", "Geist Variable", sans-serif;
11-
--font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
20+
--font-sans: "Inter Variable", system-ui, sans-serif;
21+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
22+
monospace;
1223

1324
/* ─── Editor Surface Hierarchy (Vercel/Linear pure-black) ─────────────── */
1425
--editor-bg: #000000;

0 commit comments

Comments
 (0)