Back to Website
Show / Hide Table of Contents

Interface ICanvasDefinitionSetTheme

Provides properties to define a product theme. For details, you can refer to the SetTheme command.

{
  "type": "canvas",
  "name": "editor",
  "params": {
    "initial": { ... },
    "setTheme": {
      "primary": "{{ "#f00" }}",
      "secondary": "{{ "#0f0" }}"
    }
  }
}
Package: ui-framework

Properties

after

The next commands to be executed after this command completes.

Declaration
after?: string | string[]
Property Value
Type Description
string | string[]

The next commands to be executed after this command completes.

theme

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

Declaration
theme: string | CustomersCanvas.IframeApi.Configuration.IProductThemeConfig
Property Value
Type Description
string | CustomersCanvas.IframeApi.Configuration.IProductThemeConfig

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

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback