mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
Thirteen shipped apps and every scaffold in packages/create-app pulled their face from Google at request time — Inter through next/font/google in the examples and the four Next templates, Geist and Geist_Mono in the apps, and in the seven react-router roots a bare <link> to fonts.googleapis.com. That last one never even applied what it fetched: nothing in those trees set a family, so the browser downloaded Inter, spent two preconnects on it, and rendered system-ui. So `create-app` handed a customer a new docs site whose first act was a third-party font request for a face that is not ours. The apps read the family back through --font-sans and --font-mono, which are next/font's handles rather than names of anything, so those follow the binding over to --font-zen-sans and --font-zen-mono. Eight of them had only ever bound the mono and were leaning on Tailwind's default for the text face; they now name both, or swapping the binding would have dropped the body copy to system-ui without a word. Zen and ZenMono are built faces, not constructors — subsetting, display: swap and fallback metrics are already in them — so the call and its options go away.
34 lines
954 B
JSON
34 lines
954 B
JSON
{
|
|
"name": "example-python",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "pnpm build:docs && next build",
|
|
"dev": "next dev",
|
|
"start": "next start",
|
|
"build:docs": "node ./scripts/generate-docs.mjs",
|
|
"python:generate": "pip3 install ./node_modules/@hanzo/docs-python && fumapy-generate httpx",
|
|
"types:check": "@hanzo/docs-mdx && tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@hanzo/docs-core": "workspace:*",
|
|
"@hanzo/docs-mdx": "workspace:*",
|
|
"@hanzo/docs-python": "workspace:*",
|
|
"@hanzo/docs-base-ui": "workspace:*",
|
|
"@hanzo/font": "^1.9.2",
|
|
"next": "16.1.6",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/postcss": "^4.1.18",
|
|
"@types/mdx": "^2.0.13",
|
|
"@types/node": "25.2.3",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"postcss": "^8.5.6",
|
|
"tailwindcss": "^4.1.18",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|