Skip to main content

Interface: ControlTokens

Defined in: types.ts:66

@rasd/themes — the public entry point (docs/17-api-reference.md §11).

A theme is data: a JSON document of design tokens that the resolver turns into one frozen ResolvedTheme per (colour scheme × contrast × density × reduced motion) combination. Nothing here touches the DOM, the network or the filesystem, so the same functions run in the React renderer, in React Native, in the CLI linter and in the builder's theme editor.

Properties​

borderWidth​

borderWidth: number;

Defined in: types.ts:70


height​

height: number;

Defined in: types.ts:69


minTouch​

minTouch: number;

Defined in: types.ts:68

Minimum touch target. The resolver clamps this up to 48 in every density (spine §10).