Skip to main content

AppThemeApi

Home > @backstage/core-plugin-api > AppThemeApi

The AppThemeApi gives access to the current app theme, and allows switching to other options that have been registered as a part of the App.

Signature:

export type AppThemeApi = {
getInstalledThemes(): AppTheme[];
activeThemeId$(): Observable<string | undefined>;
getActiveThemeId(): string | undefined;
setActiveThemeId(themeId?: string): void;
};

References: AppTheme, Observable