Skip to content

grafit-charts


Function: resolveTheme()

resolveTheme(theme?): ThemeContext

Resolves a theme name or a theme object into the token set the renderers read. A theme object is layered over its base with deepMerge: unset tokens fall through, nested blocks merge field by field, and colour lists replace wholesale.

Parameters

theme?

ThemeName | ThemeOptions

Returns

ThemeContext