useTheme
What the @feugene/granularity/composables/useTheme subpath exports, with signatures from its type declarations.
On this page
Import
import { useTheme, GRANULARITY_THEME_STATE, granularityThemePlugin } from '@feugene/granularity/composables/useTheme'Exports
ThemeNametypetype ThemeName = 'light' | 'dark'UseThemeOptionstypetype UseThemeOptionsGRANULARITY_THEME_STATEconstconst GRANULARITY_THEME_STATE: InjectionKey<ThemeState>granularityThemePluginconstconst granularityThemePlugin:resetThemeContextWarningfunctionfunction resetThemeContextWarning(): voidinitThemeEarlyfunctionfunction initThemeEarly(options?: UseThemeOptions): voiduseThemefunctionfunction useTheme(options?: UseThemeOptions):