Introduction
- About Crossmint
- Supported Chains
- Platform
Wallets
- Introduction
- Quickstarts ⚡
- Wallet Actions
- External Wallet Providers
- Advanced Topics
Minting Tools
- Introduction
- Quickstart ⚡
- Guides
- Advanced Topics
Subscriptions
Verifiable Credentials
- Introduction
- Quickstart ⚡
- Guides
- Advanced Topics
Payments
- Introduction
- No-Code Storefront
- Pay Button
- Embedded Checkout
- Headless Checkout
- Creating or Importing NFT Collections
- Advanced Topics
Authentication
- Introduction
- Quickstart ⚡
- Guides
- Advanced Topics
Customize Style
Adapt UI elements of the Embedded NFT Checkout
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
|
uiConfig
|
uiConfig
|
uiConfig
|
uiConfig
|
uiConfig
|
uiConfig
|
Property Reference
Background Color
Sets the background color of the checkout element.
Sets the background color of the input fields.
Sets the background color of the payment button.
Text Color
Sets the color of the text on the input labels, placeholders, and terms of service.
Sets the color of the text on the payment button.
Sets the color of the input field borders when active.
Sets the color of the input field borders and error messages that appear when there is an error.
Sets the color of terms of service hyperlinked text.
Typography
Sets the font size for all text elements. The default value is 0.91rem
.
Sets the font weight of all the input placeholders.
Sets the font weight of all input labels.
Input Fields
Was this page helpful?