# Theme Manager

Source: https://developers.inkdrop.app/modules/theme-manager

Handles loading and activating available themes.

Available as `env.themes` on the [Environment](https://developers.inkdrop.app/modules/environment) passed to `activate(env)`.

---

## Theme Manager Updates Subscription `onDidChangeActiveThemes(callback)`

Invoke the given callback when style sheet changes associated with updating the list of active themes are completed.

### Parameters

- **callback()** (function, required)

  Function to be called after the active themes have been updated.

### Returns

Returns a [Disposable](https://developers.inkdrop.app/event-subscription/disposable) on which `.dispose()` can be called to unsubscribe.

---

## Get Loaded Theme Names `getLoadedThemeNames()`

Retrieve the names of all loaded themes.

### Returns

Returns an Array of Strings with the names of all loaded themes.

---

## Get Loaded Themes `getLoadedThemes()`

Obtain a list of all loaded themes.

### Returns

Returns an Array of all the loaded themes.

---

## Get Active Theme Names `getActiveThemeNames()`

Get the names of all active themes.

### Returns

Returns an Array of Strings with the names of all active themes.

---

## Get Active Themes `getActiveThemes()`

Retrieve all active themes.

### Returns

Returns an Array of all the active themes.

---

## Get Enabled Theme Names `getEnabledThemeNames()`

Get the names of enabled themes from the configuration.

### Returns

Returns an array of theme names in the order that they should be activated.
