You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
load geist mono so the tool panels render the same everywhere #257
No monospace web font is loaded, so "JetBrains Mono" and "Cascadia Mono" only apply if they're installed locally. In practice:
Apple devices get SF Mono (via ui-monospace).
Everyone else gets Menlo, Courier New or the browser default.
The hero terminal, the Contact fleet panel, prose code/pre and the drawer's external-link arrow therefore look different across platforms, and on Windows/Linux they fall back to Courier New.
Proposal
Load Geist Mono through next/font/google, the same way app/layout.tsx already loads Geist Sans:
In app/layout.tsx, add Geist_Mono({ variable: "--font-geist-mono", subsets: ["latin"], weight: [...] }) and add its .variable to the <html> className next to geistSans.variable.
In app/globals.css, put var(--font-geist-mono) first in --font-mono and keep the current list as the fallback.
Load only the weights the panels use: 400, 500, 600 and 700 (for .fleet-summary .fleet-value).
Notes
next/font self-hosts the font files, so the CSP in public/_headers (font-src 'self') needs no change.
Cost: one more font file per weight. Check that the added bytes are worth it, or trim the weights.
Geist Mono has a different x-height and width from SF Mono. Recheck that the terminal's white-space: nowrap lines and the 140px .progress bar still fit at clamp(11px, 1.2vw, 13px), and that the fleet rows still align.
Changing --font-mono also changes Tailwind's default for bare code/pre/kbd/samp and the font-mono utility. Neither is used outside .prose today.
Done when
The terminal and fleet panels render in Geist Mono on macOS, Windows and Android.
Activity