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.