mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-28 07:09:50 +00:00
packages/create-app/.gitignore lists `template`, so every scanner that honours ignore files walks straight past nine templates that are tracked in git and shipped by @hanzo/create-docs. Four Next templates declared a face in the root layout and two react-router ones linked a hosted font CDN from `links()`, which means a freshly scaffolded docs site started life on someone else's typeface and a third-party request on every route. Same shape as the apps: `@import '@hanzo/font/css'` at the top of the template's own sheet, one :root block binding --font-zen-sans / --font-zen-mono to --font-sans / --font-mono, and @hanzo/font in the template's dependencies. The waku template named no family at all and fell through to the browser default, so it gets the same mount rather than being left the one scaffold without a face.
15 lines
693 B
CSS
15 lines
693 B
CSS
@import '@hanzo/font/css';
|
|
@import 'tailwindcss';
|
|
@import '@hanzo/docs-base-ui/css/neutral.css';
|
|
@import '@hanzo/docs-base-ui/css/preset.css';
|
|
|
|
/* Zen is the family. The import above declares the faces and publishes
|
|
--font-zen-sans / --font-zen-mono; they are spelled HERE and nowhere else,
|
|
bound to the --font-sans / --font-mono pair every rule and every font-*
|
|
utility already reads — so the next face swap is these two lines, not a sweep.
|
|
Unlayered, so it outranks Tailwind's own @layer theme defaults. */
|
|
:root {
|
|
--font-sans: var(--font-zen-sans), ui-sans-serif, system-ui, sans-serif;
|
|
--font-mono: var(--font-zen-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
}
|