Files
20067f05bc chore: Switch Geist font imports to npm geist package (#12952)
## 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]>
2026-05-26 15:01:06 -06:00

36 lines
908 B
JSON

{
"name": "docs",
"version": "1.0.0",
"type": "module",
"private": true,
"scripts": {
"dev": "next dev --port 3000",
"build": "next build",
"start": "next start",
"lint": "eslint --max-warnings 0",
"check-types": "next typegen && tsc --noEmit"
},
"dependencies": {
"@repo/ui": "workspace:*",
"geist": "^1.7.1",
"next": "16.2.0",
"react": "^19.2.0",
"react-dom": "^19.1.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^16.2.0",
"@repo/eslint-config": "workspace:*",
"@repo/tailwind-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@tailwindcss/postcss": "^4.1.5",
"@types/node": "^22.15.30",
"@types/react": "^19.1.0",
"@types/react-dom": "^19.1.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.39.1",
"postcss": "^8.5.3",
"tailwindcss": "^4.1.5",
"typescript": "5.9.2"
}
}