Files
agency/.pnpm-store/v3/files/0f/200303f1fe0601226276a0f920017cd7b20bf7597964b8aca9c2d954a301d92d612dd34727d88c4e37a04fc20053365e08cff087b39f5921fb019a4e1a07cc
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +00:00

30 lines
1.2 KiB
Plaintext

/** The palette a brand declares. Every field is optional: an undeclared key
* leaves the design system's own value standing rather than overwriting it. */
export interface BrandTheme {
surface1?: string;
surface2?: string;
surface3?: string;
neutral1?: string;
neutral2?: string;
neutral3?: string;
accent1?: string;
accent2?: string;
accent3?: string;
border?: string;
success?: string;
warning?: string;
error?: string;
}
/**
* The tokens a brand's theme sets, as `{ '--background': '#000', … }`.
*
* Only ground, ink, accent and the edges drawn on them. The radius scale, the
* type ramp, spacing, motion and z are NOT here and must not be: they are the
* system's grammar rather than a brand's voice, and a brand that redefines them
* is a fork wearing a stylesheet.
*/
export declare function themeToTokens(theme: BrandTheme): Record<string, string>;
/** Apply a brand's theme to a live document — for an app that resolves its brand
* at runtime and so cannot import a build-time stylesheet. */
export declare function applyBrandTheme(theme: BrandTheme, el: HTMLElement): void;
//# sourceMappingURL=brand.d.ts.map