Back to Website
Show / Hide Table of Contents

Primary color

  • Less than a minute to read

This topic dwells on how you can change the primary color of the user interface of the Design Editor. This color is used for the following elements:

  • Progress bars
  • Popup headers
  • Control elements
  • Highlight of design elements
  • Design element names

To change the primary color, you can pass themeConfiguration with a primaryColor property into the editor.

let editorConfig = {
    themeConfiguration: {
        primaryColor: "#ffa500"
    }
};

To specify a color, pass a string in the CSS format, for example, "#ffa500", "rgba(255,165,0,0.8)", or "orange".

Let's look at how this color will change the user interface.

Item Default color ("#30C2FF") New color ("#ffa500")
Progress bar Blue progress bar. Orange progress bar.
Popup header Blue popup header. Orange popup header.
Control elements Blue controls. Orange control elements.
Highlight and grips Blue highlight and grips. Orange highlight and grips.
Design element names Blue element names. Orange element names.

You can also change the color at runtime as follows:

await editor.setThemeConfiguration({
    primaryColor: "rgb(255,165,0)"
});
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