Skip to main content

Interface: MotionTokens

Defined in: types.ts:60

@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

durationMs

durationMs: number;

Defined in: types.ts:61


reduced

reduced: "auto" | "always" | "never";

Defined in: types.ts:63

auto follows prefers-reduced-motion.