Style your checkout to match Klarna's branding by integrating approved assets, configuring descriptors, and applying dynamic messaging for a consistent and localized payment experience.
This guideline outlines the available methods for styling Klarna elements within your checkout. A well-styled checkout creates a cohesive brand experience, builds customer trust, and improves conversion rates. By integrating Klarna's design elements consistently, you ensure customers recognize and feel confident using Klarna as a payment method.
You can retrieve and apply Klarna branding assets, configure payment method descriptors, and integrate dynamic messaging using Klarna's APIs. These styling options ensure your payment interface remains consistent, localized, and compliant with Klarna's design specifications.
Klarna provides a set of logo variations that display Klarna within your payment form. When you mount the checkout, Payment Presentation dynamically retrieves these logos, ensuring the branding remains up to date and compliant with Klarna's visual guidelines.
As outlined in the Payment Presentation overview, Klarna provides Acquiring Partners with a set of headers and customer-facing messages via the Payment Presentation. These messages are transparent, concise, and dynamically tailored to the specific customer and purchase context.
Mount each component to display the appropriate messaging:
The components don't include predefined styles. Apply custom styling by targeting individual elements using the selectors available in the rendered output. This provides full flexibility to adapt the presentation to match your checkout's visual design while maintaining the integrity of Klarna's messaging.
You can apply your site's font to Klarna elements to preserve brand consistency. However, for optimal legibility and alignment with Klarna's design standards, use a system font or a simple, readable typeface. If you use a custom font, avoid italic styles or any formatting that may reduce readability. Clarity must take precedence over stylistic choices.
Ensure sufficient font weight and size for readability across devices. Test your font choices on both desktop and mobile views.
The Payment Presentation payment button is recognizable and helps customers understand what happens next, building confidence to proceed with their purchase. The button appears in the payment form once Klarna is selected.
Customize the button's appearance to match your site's design while maintaining Klarna's brand recognition. You can adjust three key aspects: theme, shape, and size.
The button's default theme color is dark. Since the theme attribute is optional, the default theme applies when you set the attribute to default or omit it entirely.
Don't use the default theme on black or dark backgrounds. Ensure sufficient contrast between the button and background for visibility and accessibility.
Klarna recommends using the default theme - it's widely recognized by Klarna customers and looks good on light backgrounds.
JAVASCRIPT
1
2
3
4
5
Klarna.Payment.button({
theme: "default", // Used to set the theme of the button
...
}).mount('#container')
Customize the button's shape to match your site's look and feel. This creates a visually cohesive and engaging customer experience. Control the button's shape by changing the value of the shape attribute.
Three shapes are available: default, rectangular, and pill.
The default recommended height of the Klarna button is 48px and the minimum height allowed is 40px. Ensure the button is the same height as other payment buttons.