Skip to main content

Primary color

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.

ItemDefault color ("#30C2FF")New color ("#ffa500")
Progress barBlue progress bar.Orange progress bar.
Popup headerBlue popup header.Orange popup header.
Control elementsBlue controls.Orange control elements.
Highlight and gripsBlue highlight and grips.Orange highlight and grips.
Design element namesBlue 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?