Skip to main content
API Reference / utils/theme
useTheme(): [ThemeId, (theme) => void]
Defined in: utils/theme.ts:140 React hook to access and change theme state reactively.

Returns

[ThemeId, (theme) => void] Tuple of [currentThemeId, setThemeFunction].