Custom styling

You can customize the appearance of LoopCheckout using CSS custom properties. These can be set globally via the customStyles config, or per-widget via the customStyles prop/attribute.

Example

<LoopCryptoCheckout
    customStyles={`
        --loop-crypto-checkout-color-primary: #4A3AF8;
        --loop-crypto-checkout-radius: 12px;
        --loop-crypto-checkout-font: 1rem 'Poppins', sans-serif;
    `}
/>

Available CSS Variables

VariableCSS property/typeDescription
--loop-crypto-checkout-color-primarycolorAccent color
--loop-crypto-checkout-color-on-primarycolorText color on primary
--loop-crypto-checkout-radiusborder-radiusWidget and input border radius
--loop-crypto-checkout-color-textcolorMain text color
--loop-crypto-checkout-fontfontMain font
--loop-crypto-checkout-widget-borderborderWidget border
--loop-crypto-checkout-widget-radiusborder-radiusWidget border radius (overrides --loop-crypto-checkout-radius)
--loop-crypto-checkout-widget-paddingpaddingWidget padding
--loop-crypto-checkout-widget-shadowbox-shadowWidget shadow
--loop-crypto-checkout-widget-backgroundbackgroundWidget background
--loop-crypto-checkout-input-borderborderInput border
--loop-crypto-checkout-input-backgroundbackgroundInput background
💡

Set these variables in the customStyles string or in your global CSS for full theming control.