useTheme
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):
Descriptions come from the library in Russian and are not shown here — translating them is a decision of its own, see ADR-0003.
Library prose
Source: @feugene/granularity 0.41.0, package.json#exports and dist/types