UI Framework ReferenceIDesignEditorDefinitionSetTheme

Interface: IDesignEditorDefinitionSetTheme

Provides properties to define a product theme.

For details, you can refer to the SetTheme command.

{
  "type": "design-editor",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setTheme": {
      "primary": "{{ "#f00" }}",
      "secondary": "{{ "#0f0" }}"
    }
  }
}

Hierarchy

Index

Properties

Properties

Optional after

after? : string | string[]

Inherited from IDesignEditorCommandDefinition.after

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:32

The next commands to be executed after this command completes.


theme

theme: string | IProductThemeConfig

Defined in src/widgets/au-widget-design-editor/IAuWidgetDesignEditor.ts:115

Typically, it is a theme name as a string, but you can also pass a structure describing an "ad-hoc" theme.