themer.svelte.ts

Declarations
#

10 declarations

view source

COLOR_SCHEME_STORAGE_KEY
#

load_color_scheme
#

themer.svelte.ts view source

(fallback?: ColorScheme, key?: string): ColorScheme

fallback

type ColorScheme
default 'auto'

key

type string
default COLOR_SCHEME_STORAGE_KEY

returns

ColorScheme

load_theme
#

themer.svelte.ts view source

(fallback?: Theme, key?: string): Theme

fallback

type Theme
default default_themes[0]!

key

type string
default THEME_STORAGE_KEY

returns

Theme

save_color_scheme
#

themer.svelte.ts view source

(color_scheme: ColorScheme | null, key?: string): void

color_scheme

type ColorScheme | null

key

type string
default COLOR_SCHEME_STORAGE_KEY

returns

void

save_theme
#

themer.svelte.ts view source

(theme: Theme | null, key?: string): void

theme

type Theme | null

key

type string
default THEME_STORAGE_KEY

returns

void

sync_color_scheme
#

THEME_STORAGE_KEY
#

Themer
#

themer.svelte.ts view source

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.svelte.ts view source

{ get: (error_message?: string | undefined) => Themer; get_maybe: () => Themer | undefined; set: (value: Themer) => Themer; }

ThemerJson
#

Depends on
#

Imported by
#