Skip to main content

Function: themeToCssVars()

function themeToCssVars(resolved): Record<string, string>;

Defined in: css.ts:83

Emits every token of a resolved theme as --rasd-* custom properties.

Only tokens are emitted. Per-component overrides stay on ResolvedTheme.components, where the renderer reads them as data: they are an open-ended Record<string, unknown> whose values have no unit contract, so serialising them into CSS would be guesswork.

Parameters

ParameterType
resolvedResolvedTheme

Returns

Record<string, string>