useTheme

Import

import { useTheme, GRANULARITY_THEME_STATE, granularityThemePlugin } from '@feugene/granularity/composables/useTheme'

Exports

ThemeNametype
type ThemeName = 'light' | 'dark'
UseThemeOptionstype
type UseThemeOptions
GRANULARITY_THEME_STATEconst
const GRANULARITY_THEME_STATE: InjectionKey<ThemeState>
granularityThemePluginconst
const granularityThemePlugin:
resetThemeContextWarningfunction
function resetThemeContextWarning(): void
initThemeEarlyfunction
function initThemeEarly(options?: UseThemeOptions): void
useThemefunction
function 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

Read it in the repository: docs/theming.md

Source: @feugene/granularity 0.41.0, package.json#exports and dist/types