Function

resolveTimelineRendererThemeFromElement

Resolves shadcn/CSS custom properties into a serializable renderer theme. CSS is read on the main thread only. The returned object can be passed through postMessage to the worker without the worker touching DOM APIs.

Signature

Type Definition
resolveTimelineRendererThemeFromElement(element: Element | null | undefined, overrides: TimelineRendererThemeInput = {}): TimelineRendererTheme

Parameters

NameTypeDescription
elementElement | null | undefinedDOM element whose computed CSS variables define the theme.
overridesTimelineRendererThemeInputExplicit theme values that override defaults and resolved CSS variables.

Returns