Skip to main content

Interface: ColorTokens

Defined in: types.ts:13

@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

error

error: string;

Defined in: types.ts:21


focus

focus: string;

Defined in: types.ts:25


info

info: string;

Defined in: types.ts:24


onPrimary

onPrimary: string;

Defined in: types.ts:15


onSurface

onSurface: string;

Defined in: types.ts:17


onSurfaceVariant

onSurfaceVariant: string;

Defined in: types.ts:19


outline

outline: string;

Defined in: types.ts:20


primary

primary: string;

Defined in: types.ts:14


scrim

scrim: string;

Defined in: types.ts:26


success

success: string;

Defined in: types.ts:22


surface

surface: string;

Defined in: types.ts:16


surfaceVariant

surfaceVariant: string;

Defined in: types.ts:18


warning

warning: string;

Defined in: types.ts:23