Design a checkout experience that aligns with Klarna’s brand and enhances clarity by applying recommended themes, sizes, logos, and layout options for maximum visibility and trust.
5 min read
This guideline outlines the available methods for styling the appearance of Klarna elements within the checkout. It details how to retrieve and apply Klarna branding assets, configure payment method descriptors, and integrate dynamic messaging using Klarna’s APIs. The goal is to ensure the payment interface remains consistent, localized, and compliant with Klarna’s design specifications.
Logo
Badge (default)
Merchants should dynamically retrieve the Klarna badge from the response of the create_session:
If the checkout layout requires a different format, Merchants can alternatively download the square or rectangle Klarna logos from the links below and embed them directly in the checkout experience:
Merchants should dynamically retrieve the header from the response of the create_session. Depending on the integration setup, the response can return either one descriptor or three descriptors.
In the response, this appears as payment_method_categories.identifier. The localized copy for each market (e.g., en-US, es-ES, en-BE) is returned in the same response as payment_method_categories.name:
This configuration is managed by Klarna during implementation. By default, only one header is shown.
One descriptor
Three descriptors
When using the load() call, the widget will be dynamically rendered with the appropriate message.
One descriptors
Three descriptors
If you are unable to retrieve descriptors dynamically, please refer to Klarna’s approved descriptor guidelines and add them manually to your checkout.
Font
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, a system font or a simple, readable typeface is recommended. If using a custom font, avoid italic styles or any formatting that may reduce readability, as clarity must take precedence over stylistic choices.
Payment Button
The Klarna payment button is recognizable, ensuring customers understand what happens next and feel confident in proceeding with their purchase. The button should be displayed within the payment form only after Klarna is selected as the payment method.
To correctly render the Klarna Payment button, include Klarna’s CSS and configure the button with your preferred theme, shape, and copy.
Klarna provides approved translations per market. Always use the correct localized copy for each country. To update button text and accessibility labels:
Update the aria-label for accessibility.
Update the klarna-sdk-button-copy text for the visible button label.
HTML
1
2
3
4
<button aria-label="Continue with Klarna">
<span class="klarna-sdk-button-copy">Continue with</span>
</button>
Button size
Width
Prominently display the Klarna button. Make the button the same width as other payment buttons in stacked button layouts.
Height
The default recommended height of the Klarna button is 48px and the min height allowed is 40px. Make sure the button is the same height of other payment buttons.