interface ThemeApi {
    getGeneratedPalettes(): Promise<GeneratedPalettes>;
    getSelectedScheme(): Promise<ColorSchemeOptionType>;
    getThemes(): Promise<CustomThemes>;
    setSelectedScheme(newScheme: ColorSchemeOptionType): Promise<void>;
}

Methods

  • Get the generated palettes from the platform provider.

    Returns Promise<GeneratedPalettes>

    the generated palettes.

  • Returns Promise<CustomThemes>

    the legacy themes or null if the platform provider is using the new theme system.

    This method is deprecated. It is recommended to use getGeneratedPalettes instead. Get the legacy themes from the platform provider.

  • Set the selected scheme for the platform provider.

    Parameters

    Returns Promise<void>