accepts children
import ThemeRoot from '@fuzdev/fuz_ui/ThemeRoot.svelte'; sync_color_scheme?
type
(color_scheme: ColorScheme | null) => voidoptional default
default_sync_color_schemeload_color_scheme?
type
(fallback?: ColorScheme, key?: string) => ColorSchemeoptional default
default_load_color_schemesave_color_scheme?
type
(color_scheme: ColorScheme | null, key?: string) => voidoptional default
default_save_color_schemeload_theme?
type
(fallback?: Theme, key?: string) => Themeoptional default
default_load_themesave_theme?
type
(theme: Theme | null, key?: string) => voidoptional default
default_save_themetheme_fallback?
type
Themeoptional
theme_state?
A reactive class containing the selected theme and color scheme. Defaults to the first default theme.
type ThemeState
optional default
new ThemeState({
theme: load_theme(theme_fallback),
color_scheme: load_color_scheme(),
})children
type
Snippet<[theme_state: ThemeState, style: string | null, theme_style_html: string | null]>snippet parameters
theme_state ThemeStatestyle string | nulltheme_style_html string | null