Skip to content

themeStyle

themeStyle(theme): Record<string, string>

Defined in: theme.ts:36

Theme tokens as a style object, ready for React’s style prop or Object.assign(el.style, …).

Values are passed through as authored. Sanitising here would mean parsing CSS colour syntax in the client, which is both a losing game and the wrong layer — the server owns what a valid resolved colour is.

ResolvedTheme | null

Record<string, string>