useTheme

  • Composables
  • exports: 7

What the @feugene/granularity/composables/useTheme subpath exports, with signatures from its type declarations.

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

On this page

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):

Library prose

Read it in the repository: docs/theming.md