Checkout the Crossmint Playground to play with a live demo and theming options!
Customize the style of the embedded checkout by adding a uiConfig object to the CrossmintPaymentElement:
<CrossmintPaymentElement
    // other props removed for brevity
    uiConfig={{
        borderRadius: "4px",
        colors: {
            background: "#F0F4F8",
            backgroundSecondary: "#FFFFFF",
        },
        hideCardForm: false,
    }}
/>
If you are only displaying Google Pay and Apple Pay, the card form is not required. To hide it, you can set hideCardForm to true.

Themes

Explore the following templates:
uiConfig
{
  fontSizeBase: "0.91rem",
  fontWeightPrimary: "400",
  fontWeightSecondary: "500",
  spacingUnit: "0.274rem",
  borderRadius: "4px",
  colors: {
    background: "#F0F4F8",
    backgroundSecondary: "#FFFFFF",
    backgroundTertiary: "#49d7a8",
    textPrimary: "#333333",
    textSecondary: "#FFFFFF",
    border: "#B2BEC3",
    danger: "#FF6B6B",
    textLink: "#4D9078",
  }
}

Property Reference

uiConfig
object

Background Color

background
string
Sets the background color of the checkout element.
background screenshot example
backgroundSecondary
string
Sets the background color of the input fields.
backgroundSecondary screenshot example
backgroundTertiary
string
Sets the background color of the payment button.
backgroundTertiary screenshot example

Text Color

textPrimary
string
Sets the color of the text on the input labels, placeholders, and terms of service.
textPrimary screenshot example
textSecondary
string
Sets the color of the text on the payment button.
textSecondary screenshot example
border
string
Sets the color of the input field borders when active.
border screenshot example
danger
string
Sets the color of the input field borders and error messages that appear when there is an error.
danger screenshot example

Typography

fontSizeBase
string
Sets the font size for all text elements. The default value is 0.91rem.
fontSizeBase screenshot example
fontWeightPrimary
string
Sets the font weight of all the input placeholders.
fontWeightPrimary screenshot example
fontWeightSecondary
string
Sets the font weight of all input labels.
fontWeightSecondary screenshot example

Input Fields

spacingUnit
string
Sets the height of all input fields. The default value is: 0.274rem.
spacingUnit screenshot example
borderRadius
string
Sets the border radius of all input fields.
borderRadius screenshot example