Skip to content

ResolvedThemeValues

ResolvedThemeValues = WidenLeaves<ThemeValues>

Defined in: src/hooks/useTheme/useTheme.types.ts:12

Same shape as ThemeValues but with each leaf widened to string.

darkThemeValues is declared as const, which makes its leaf types literal (e.g. '#007acc'). At runtime the hook reads arbitrary CSS custom-property strings from the DOM — those values are not constrained to the dark-theme literals, so the return type widens to plain strings to stay sound for light, custom, or computed values.