"fuz:color-scheme" themer.svelte.ts
Declarations #
10 declarations
COLOR_SCHEME_STORAGE_KEY #
COLOR_SCHEME_STORAGE_KEY
load_color_scheme #
load_color_scheme
(fallback?: ColorScheme, key?: string): ColorScheme fallback
type
ColorScheme default
'auto'key
type
string default
COLOR_SCHEME_STORAGE_KEYreturns
ColorScheme load_theme #
load_theme
(fallback?: Theme, key?: string): Theme fallback
type
Theme default
default_themes[0]!key
type
string default
THEME_STORAGE_KEYreturns
Theme save_color_scheme #
save_color_scheme
(color_scheme: ColorScheme | null, key?: string): void color_scheme
type
ColorScheme | nullkey
type
string default
COLOR_SCHEME_STORAGE_KEYreturns
void save_theme #
save_theme
(theme: Theme | null, key?: string): void theme
type
Theme | nullkey
type
string default
THEME_STORAGE_KEYreturns
void sync_color_scheme #
sync_color_scheme
(color_scheme: ColorScheme | null): void color_scheme
type
ColorScheme | nullreturns
void THEME_STORAGE_KEY #
THEME_STORAGE_KEY
"fuz:theme" Themer #
Themer
theme
type Theme
color_scheme
type ColorScheme
constructor
type new (theme?: Theme, color_scheme?: ColorScheme): Themer
theme
type
Theme default
default_themes[0]!color_scheme
type
ColorScheme default
'auto'toJSON
type (): ThemerJson
returns ThemerJson
themer_context #
themer_context
{ get: (error_message?: string | undefined) => Themer; get_maybe: () => Themer | undefined; set: (value: Themer) => Themer; } ThemerJson #
ThemerJson
ThemerJson theme
type
Themecolor_scheme
type
ColorScheme