Configuration

You can customize the look and feel of the Style Upload iFrame by passing a config object in the initialization message.

Configuration Structure #

const config = {
  theme: {
    primaryColor: "#1e293b",
    accentColor: "#10b981",
    backgroundColor: "#f8fafc"
  },
  layout: {
    padding: "1.5rem",
    cardBorderRadius: "0.75rem",
    cardGap: "2rem"
  }
};

theme Options #

Control the colors of the style uploader.

ParameterTypeDefaultDescription
primaryColorstring#1e293bPrimary button color (Continue, Create Style buttons).
accentColorstring#10b981Accent color for progress indicators, success states, and checkmarks.
backgroundColorstring#f8fafcBackground color of the main container area.

layout Options #

Control the spacing and appearance of elements.

ParameterTypeDefaultDescription
paddingstring1.5remCSS padding for the entire container. Use `0` for edge-to-edge layout.
cardBorderRadiusstring0.75remBorder radius for all cards. Use `0` for sharp corners.
cardGapstring2remSpace between cards (e.g., `1rem`, `24px`).