useTheme

  • Composables
  • exports: 7

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

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

On this page

Import

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

Exports

GR_THEME_STORAGE_KEYconst
const GR_THEME_STORAGE_KEY = "gr-theme"
UseThemeOptionstype
type UseThemeOptions
granularityThemePluginconst
const granularityThemePlugin:
resetThemeContextWarningfunction
function resetThemeContextWarning(): void
initThemeEarlyfunction
function initThemeEarly(options?: UseThemeOptions): void
UseThemeReturninterface
interface UseThemeReturn
useThemefunction
function useTheme(options?: UseThemeOptions): UseThemeReturn

Library prose

Read it in the repository: docs/modes.md