mirror of
https://github.com/hanzoai/turborepo.git
synced 2026-10-30 19:44:51 +00:00
## Summary Switches all `Geist` / `Geist_Mono` imports from `next/font/google` to the npm [`geist`](https://www.npmjs.com/package/geist) package (which self-hosts via `next/font/local`). ## Why Google Fonts serves a stripped Geist build that omits OpenType tables — most relevantly, **Stylistic Set 11 (`ss11`)**, where Geist Mono 1.7.0 (Feb 2026) moved coding ligatures (`==>`, `->`, etc.). A fix has been submitted to Google Fonts to ship the full Geist OpenType tables (including ss11); we're waiting on their release. Once it lands, this PR can be reverted and we can go back to next/font/google. | **Before** | **After** | | ------------- | ------------- | | <img width="850" alt="image" src="https://github.com/user-attachments/assets/80c4fe43-71aa-41a6-b0d1-0bd012c86b96" /> | <img width="850" alt="image" src="https://github.com/user-attachments/assets/6b47a3ec-93a1-46c9-8c00-cb166bcbcfe1" /> | ## Changes - Switched imports in: - `examples/with-nextjs-elysia/apps/web/src/app/layout.tsx` - `examples/with-tailwind/apps/{web,docs}/app/layout.tsx` - `examples/non-monorepo/app/layout.tsx` - `apps/docs/lib/geistdocs/fonts.ts` (re-exports `GeistSans`/`GeistMono` as `sans`/`mono` to keep call sites unchanged) - The npm `geist` package hardcodes `--font-geist-sans` / `--font-geist-mono`, so renamed `var(--font-mono, …)` → `var(--font-geist-mono, …)` in: - `apps/docs/components/diagram/sequence-diagram.tsx` - `apps/docs/components/diagram/flow-diagram.tsx` - Added `"geist": "^1.7.1"` to the five affected `package.json` files. --------- Co-authored-by: Hanzo Dev <[email protected]>
6 lines
153 B
TypeScript
6 lines
153 B
TypeScript
import { GeistSans } from "geist/font/sans";
|
|
import { GeistMono } from "geist/font/mono";
|
|
|
|
export const sans = GeistSans;
|
|
export const mono = GeistMono;
|