Vizel API / core/src / VizelThemeInitScriptOptions
Interface: VizelThemeInitScriptOptions
Defined in: packages/core/src/utils/ssr.ts:13
Options for vizelThemeInitScript.
Properties
defaultTheme?
ts
readonly optional defaultTheme?: "light" | "dark" | "system";Defined in: packages/core/src/utils/ssr.ts:19
Theme to fall back to when nothing is stored. "system" resolves to prefers-color-scheme: dark at runtime.
Default
ts
"system"storageKey?
ts
readonly optional storageKey?: string;Defined in: packages/core/src/utils/ssr.ts:24
localStorage key holding the persisted theme value.
Default
ts
"vizel-theme"