Skip to main content
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:
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:

Property Reference

object

Background Color

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

Text Color

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

Typography

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

Input Fields

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