Skip to main content

Interface: TypographyTokens

Defined in: types.ts:29

@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

baseSize

baseSize: number;

Defined in: types.ts:32


fontFamily

fontFamily: string;

Defined in: types.ts:30


fontFamilyRtl

fontFamilyRtl: string;

Defined in: types.ts:31


lineHeight

lineHeight: number;

Defined in: types.ts:34


lineHeightRtl

lineHeightRtl: number;

Defined in: types.ts:35


maxFontScale

maxFontScale: number;

Defined in: types.ts:38

Cap on OS font scaling; 2.0 per docs/12 §11.


scale

scale: number;

Defined in: types.ts:33


weights

weights: object;

Defined in: types.ts:36

bold

bold: number;

medium

medium: number;

regular

regular: number;