TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

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

The next commands to be executed after this command completes.


Optional showPreloader

showPreloader? : boolean

Inherited from IDesignEditorCommandDefinition.showPreloader

If true, displays the preloader while executing this command.


theme

theme: string | IProductThemeConfig

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