charton API / @chart-on/core / index / themeFromCss
Function: themeFromCss()
themeFromCss(
source,fallback?):ChartTheme
Defined in: packages/core/src/theme.ts:457
Build a theme from the chart tokens (chartThemeTokens) on an element, read through its computed style, or from any getPropertyValue reader. A token that is missing or not a usable value keeps the fallback theme's value.
Parameters
source
Element | CssPropertyReader
fallback?
ChartTheme = darkTheme