Skip to main content

themeToCssVariables

wemap-sdk-js


Function: themeToCssVariables()

themeToCssVariables(theme): Record<string, string>

The public CSS custom-property contract. UI packages reference these names (var(--wemap-color-primary), …); per-surface variables (e.g. --wemap-color-cluster) are defined in each package's stylesheet and fall back to these.

Parameters

theme

WemapTheme

Returns

Record<string, string>