---
title: "setThemeConfiguration Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.setthemeconfiguration.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# setThemeConfiguration Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- setThemeConfiguration(conf:  [IThemeConfiguration](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.ithemeconfiguration.htm.md) ) :  Promise &lt; void &gt;

- Changes a preloader image and the primary theme color.
  
 - example
     - ```
    let editor = await CustomersCanvas.IframeApi.loadEditor(iframe, product, config);
    await editor.setThemeConfiguration({ primaryColor: "rgb(120, 24, 123)" });
    ```

#### Parameters

    - ##### conf: [IThemeConfiguration](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.configuration.ithemeconfiguration.htm.md) 
  
        Defines the primary color and a new image for the standard preloader.

#### Returns Promise &lt; void &gt;
