Skip to main content
Access via:io.themes

Themes API.

4 Methods

getCurrent()⚓︎

() => Promise<Theme>

Retrieves the current theme.

list()⚓︎

() => Promise<Theme[]>

Retrieves a list of the available themes.

onChanged()⚓︎

(callback: (theme: Theme) => any) => UnsubscribeFunction

Notifies when the theme is changed.

Parameters (1)

Name Type Required Description
callback⚓︎ (theme: Theme) => any

Callback function for handling the event.

select()⚓︎

(name: string) => Promise<void>

Selects a new theme.

Parameters (1)

Name Type Required Description
name⚓︎ string

The name of the theme to select.