You can customize the look and feel of the iFrame editor by passing a config object in the initialization message.
const config = {
theme: {
backgroundColor: "#ffffff",
accentColor: "#2563eb"
},
layout: {
viewSelectorPosition: "bottom",
padding: "0",
paddingSelectedView: "20px",
paddingViewSelector: "30px 0",
heightSelectedView: "700px"
}
};theme Options #Control the colors of the editor.
| Parameter | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | #ffffff | Background HEX color of the main editor area. |
| accentColor | string | #2563eb | Primary accent HEX color used for loading spinners and active states. |
layout Options #Control the spacing and positioning of elements.
| Parameter | Type | Default | Description |
|---|---|---|---|
| viewSelectorPosition | string | bottom | Position of the view selector strip (`top` or `bottom`). |
| padding | string | 0 | CSS padding for the entire editor container. |
| paddingSelectedView | string | 0 | CSS padding around the main design area. |
| paddingViewSelector | string | 0 | CSS padding around the view selector strip. |
| heightSelectedView | string | 700px | Explicit height for the main design area (e.g., "800px", "100%"). If set, the design area will shrink/grow to this exact height. |