/** * The token contract — the closed set of custom properties a theme defines. * * Every built-in theme declares every token below explicitly (no hidden * defaults), and the contract test (`contract.test.ts`) enforces it together * with the WCAG contrast pairs. BYO themes may omit tokens: `tokens.css` * provides neutral defaults for all of them. */ /** The cascade-layer order every entry stylesheet declares first. */ export declare const LAYER_STATEMENT = "@layer nbc.tokens, nbc.theme, nbc.base, nbc.components, nbc.flourish;"; /** Solid colors. Must be `#hex` or `light-dark(#hex, #hex)` in built-in themes. */ export declare const COLOR_TOKENS: readonly ["--nbc-bg", "--nbc-fg", "--nbc-fg-muted", "--nbc-surface", "--nbc-surface-alt", "--nbc-border-color", "--nbc-primary", "--nbc-primary-fg", "--nbc-accent", "--nbc-accent-fg", "--nbc-info", "--nbc-info-fg", "--nbc-success", "--nbc-success-fg", "--nbc-warning", "--nbc-warning-fg", "--nbc-danger", "--nbc-danger-fg", "--nbc-focus"]; /** Background fills. May be gradients; every color stop is contrast-checked. */ export declare const FILL_TOKENS: readonly ["--nbc-primary-fill", "--nbc-danger-fill", "--nbc-surface-fill", "--nbc-texture"]; export declare const TYPOGRAPHY_TOKENS: readonly ["--nbc-font-sans", "--nbc-font-display", "--nbc-font-mono", "--nbc-weight-body", "--nbc-weight-label", "--nbc-weight-display", "--nbc-label-transform", "--nbc-label-spacing", "--nbc-display-transform", "--nbc-display-spacing"]; export declare const SHAPE_TOKENS: readonly ["--nbc-border-width", "--nbc-border-style", "--nbc-radius", "--nbc-radius-control", "--nbc-radius-button", "--nbc-radius-small"]; export declare const ELEVATION_TOKENS: readonly ["--nbc-shadow", "--nbc-shadow-lg", "--nbc-shadow-press", "--nbc-press", "--nbc-press-active", "--nbc-rotate", "--nbc-focus-width", "--nbc-focus-offset"]; export declare const MOTION_TOKENS: readonly ["--nbc-duration", "--nbc-duration-slow", "--nbc-ease"]; /** Every token a built-in theme must declare. */ export declare const REQUIRED_TOKENS: readonly ["--nbc-scheme", "--nbc-font-sans", "--nbc-font-display", "--nbc-font-mono", "--nbc-weight-body", "--nbc-weight-label", "--nbc-weight-display", "--nbc-label-transform", "--nbc-label-spacing", "--nbc-display-transform", "--nbc-display-spacing", "--nbc-bg", "--nbc-fg", "--nbc-fg-muted", "--nbc-surface", "--nbc-surface-alt", "--nbc-border-color", "--nbc-primary", "--nbc-primary-fg", "--nbc-accent", "--nbc-accent-fg", "--nbc-info", "--nbc-info-fg", "--nbc-success", "--nbc-success-fg", "--nbc-warning", "--nbc-warning-fg", "--nbc-danger", "--nbc-danger-fg", "--nbc-focus", "--nbc-primary-fill", "--nbc-danger-fill", "--nbc-surface-fill", "--nbc-texture", "--nbc-border-width", "--nbc-border-style", "--nbc-radius", "--nbc-radius-control", "--nbc-radius-button", "--nbc-radius-small", "--nbc-shadow", "--nbc-shadow-lg", "--nbc-shadow-press", "--nbc-press", "--nbc-press-active", "--nbc-rotate", "--nbc-focus-width", "--nbc-focus-offset", "--nbc-duration", "--nbc-duration-slow", "--nbc-ease"]; /** Invariant across themes. Defined once in tokens.css; themes must not override. */ export declare const INVARIANT_TOKENS: readonly ["--nbc-space-xs", "--nbc-space-sm", "--nbc-space-md", "--nbc-space-lg", "--nbc-space-xl", "--nbc-space-2xl", "--nbc-space-3xl", "--nbc-fs-xs", "--nbc-fs-sm", "--nbc-fs-md", "--nbc-fs-lg", "--nbc-fs-xl", "--nbc-fs-2xl", "--nbc-fs-3xl", "--nbc-fs-4xl", "--nbc-control-h-sm", "--nbc-control-h-md", "--nbc-control-h-lg"]; export interface ContrastPair { fg: string; bg: string; /** WCAG 2.2 minimum: 4.5 for text, 3 for non-text UI (SC 1.4.11). */ min: 3 | 4.5; why: string; } export declare const CONTRAST_PAIRS: readonly ContrastPair[];