Member Junction
    Preparing search index...

    Defines a theme available in the application. Built-in themes (light/dark) have no CssUrl. Custom themes specify a BaseTheme to inherit from and a CssUrl with overrides.

    interface ThemeDefinition {
        BaseTheme: "light" | "dark";
        CssUrl?: string;
        Description?: string;
        Id: string;
        IsBuiltIn: boolean;
        Name: string;
        PreviewColors?: string[];
        Tokens?: Record<string, string>;
    }
    Index

    Properties

    BaseTheme: "light" | "dark"

    Which built-in theme this inherits from

    CssUrl?: string

    URL to the CSS file with token overrides (omit for built-in themes)

    Description?: string

    Optional description shown in theme picker

    Id: string

    Unique identifier (e.g. 'light', 'dark', 'izzy-dark')

    IsBuiltIn: boolean

    Whether this is a built-in theme (light/dark)

    Name: string

    Human-readable display name (e.g. 'Light', 'Dark', 'Izzy Dark')

    PreviewColors?: string[]

    Optional preview swatch colors for a future theme picker UI

    Tokens?: Record<string, string>

    Derived --mj-* token overrides. Populated for brand themes emitted from seeds; an alternative/companion to CssUrl for token-based application and for feeding the Theme Builder preview without a round-trip through CSS.