Xedoniumv1.26.2Search the docs (Ctrl K)View on GitHub
  • Getting started
  • Foundations
  • Layout
  • Typography
  • Inputs
  • Navigation
  • Feedback
  • Overlay
  • Data display
  • Charts
  • Date & time
  • Media
  • Application
  • Utilities
  • Hooks
  • Theme
  • Playground
  • Changelog
ankit.

Theme

7 pages

Light and dark theming: the provider, the hooks behind it and the favicon helpers.

buildFaviconHref

A theme-colored fan favicon as a data URL.

getThemeInitScript

Set the theme before the first paint, to avoid a flash.

Theme constants

The default storage key and favicon colors.

ThemeProvider

Light and dark theme for the whole app.

ThemeToggle

Icon button that switches the theme.

useAppTheme

The hook behind ThemeProvider, without a context.

useTheme

Read and toggle the active theme.