Skip to main content

Function: resolveTheme()

function resolveTheme(theme, opts?): ResolvedTheme;

Defined in: resolve.ts:337

Resolves a theme document for one concrete mode.

Pipeline (docs/12 §4): merge the extends chain → apply the overlays in the fixed order dark → highContrast → density → resolve aliases → check completeness → apply reduced motion → clamp the accessibility floors → freeze.

reducedMotion is applied as a resolver rule rather than a modes overlay because the frozen theme contract carries only four overlay keys; the effect is the documented one, motion.durationMs: 0.

Parameters

ParameterType
themeRasdTheme
optsResolveOptions

Returns

ResolvedTheme