Files
ui/pkg/appearance/tsconfig.build.json
zooqueenandHanzo Dev d30ec036c1 @hanzo/appearance — the one panel for text size, density and accent
One screen, mounted wherever a product keeps settings, because the alternative
is each surface growing its own and three near-identical panels is how "the same
product" stops looking like it. hanzo.app, hanzo.chat and the console mount THIS.

The split is deliberate: @hanzo/design owns the pure transform (vars() — three
knobs every ramp multiplies by), and this package owns only the two things a
pure function cannot, storage and the document. No React in state.ts, because a
server render, a browser extension and an embedded preview all need to apply a
preference and only one of them has hooks.

Two failure modes it is built against. Clearing an axis REMOVES the property
rather than writing a neutral value — writing `1` looks identical and silently
outranks a brand that set its own. And bootScript() applies type and density
before first paint, because a page that paints at the defaults and jumps when JS
runs reads as a bug on every load; state.test.ts checks the script and apply()
agree on the same stored value rather than trusting two implementations of one
rule.

Steps, not a slider: the knob is continuous and the API takes any number, but a
person choosing their reading size wants three answers, and a named step can be
described in support, tested and restored.

NOT on main yet — the suite cannot run until @hanzo/design 0.4.12 is on npm
(0.4.10/0.4.11 ship an unimportable barrel), and a push to main publishes.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-07 20:49:27 -07:00

14 lines
322 B
JSON

{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": false,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src"
},
"include": ["src"],
"exclude": ["node_modules", "dist", "dist-cjs", "types", "**/*.test.ts", "**/*.test.tsx"]
}