Available since Glue42 Enterprise 3.10

The Themes API is accessible through the glue.themes object.

See the JavaScript Themes example on GitHub.

Listing All Themes

To get a list of all available themes, use the list() method:

const allThemes = await glue.themes.list();

Current Theme

To get the currently selected theme, use the getCurrent() method:

const currentTheme = await glue.themes.getCurrent();

Selecting Themes

To select a theme, use the select() method:

const themeName = "dark";


Theme Events

To get notified when the theme changes, use the onChanged() method:

glue.themes.onChanged(newTheme => {


For a complete list of the available Themes API methods and properties, see the Themes API Reference Documentation.