Skip to content

Home > mcu-extra > Theme

Theme type

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Signature:

typescript
export type Theme = {
    customColors: CustomColorGroup[];
    palettes: {
        error: TonalPalette;
        neutral: TonalPalette;
        neutralVariant: TonalPalette;
        primary: TonalPalette;
        secondary: TonalPalette;
        tertiary: TonalPalette;
    };
    schemes: {
        dark: Scheme;
        light: Scheme;
    };
    source: number;
};

References: Scheme