getThemeInfo

Updated:

Returns the active theme name and aesthetic.

Description

Retrieves the active theme name and aesthetic from the platform.

Signature

tecton.sources.getThemeInfo(): Promise<ThemeInfo>;
export interface ThemeInfo {
    themeName: string;
    aesthetic: string|null;
}

Usage

Get theme info from Tecton sources

const themeInfo = await tecton.sources.getThemeInfo?.();
console.log(themeInfo?.themeName, themeInfo?.aesthetic);

Platform Support

UUX

Changelog

The changelog provides a detailed history of new features, improvements, and bug fixes going back to Tecton 1.30.0. If the button is disabled, it indicates there have been no detectable changes since then.

Show changelog (1)