Back to Website
Show / Hide Table of Contents

Interface IThemeConfiguration

A structure containing the properties that redefine the appearance of the UI theme.

Package: @aurigma/design-editor-iframe
Examples
let product = {
   "surfaces": { designFolder: "photobook" }
};

let config = {
   "themeConfiguration": {
       "primaryColor": "#0090FF",
       "logo": "https://example.com/logo.svg"
   }
};

var editor = await CustomersCanvas.IframeApi.loadEditor(
                  document.getElementById("editorFrame"), product, config);

Properties

logo

The image of the standard preloader. You can define it through:

  • a URL, for example: https://example.com/logo.svg

  • an SVG element, for example: <svg viewBox="0 0 32 32" ... fill="#0090FF"/></svg>

  • a base64 string, for example: data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhldD0iMzIi...dmc+

Declaration
logo: string;
Property Value
Type Description
string

The image of the standard preloader. You can define it through:

  • a URL, for example: https://example.com/logo.svg

  • an SVG element, for example: <svg viewBox="0 0 32 32" ... fill="#0090FF"/></svg>

  • a base64 string, for example: data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhldD0iMzIi...dmc+

primaryColor

The primary color of the UI theme, a string in the CSS format. For example, "#78187b" or "rgb(120,24,123)".

Declaration
primaryColor: string;
Property Value
Type Description
string

The primary color of the UI theme, a string in the CSS format. For example, "#78187b" or "rgb(120,24,123)".

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