Documentation / @ripl/charts / resolveTheme
Function: resolveTheme() ​
resolveTheme(
theme?):Theme
Defined in: charts/src/core/theme.ts:141
Resolves a theme input into a concrete Theme.
A Theme object is returned as-is; a registered name is looked up; 'auto' follows the OS prefers-color-scheme; and an unknown name or undefined falls back to the current getDefaultTheme.
Parameters ​
| Parameter | Type | Description |
|---|---|---|
theme? | string | Theme | A theme name, 'auto', a Theme, or undefined. |
Returns ​
The resolved theme.