For PartnersFor Acquiring Partners
Klarna

Klarna Buttons Styling

Customize the Express Checkout buttons for the integration with flexible themes and shapes. Use the provided code snippets to implement styles quickly and easily.

Where to find the button

The Express Checkout button can be displayed on the product, cart, or checkout page, offering returning Klarna customers a one-click experience that reduces friction and captures impulse purchases by streamlining the route to purchase and boosting conversion. Express Checkout can make checkout 5x faster than usual.
Klarna payment button on a product detail page
Klarna payment button in a cart
Klarna payment button in a checkout
Klarna button in product detail pageKlarna button in cartKlarna button in checkout

Theme

The theme defines the button's color. The theme can be changed by setting the value of the theme attribute.
Apart from the default dark theme (default, which can also be set as dark), the light theme can be applied to display the button in white, or the outlined theme to render the white button with an outline.

Default theme (dark)

The button's default theme color is dark. As the theme attribute is optional, the default theme is applied both when the attribute is set to default and when it is omitted from the source code altogether. Avoid using the default theme on black or dark backgrounds. The button must be used on backgrounds that provide sufficient contrast.
The default theme is recommended because it is widely recognized by Klarna customers and looks good on light backgrounds.
An image showing the Express checkout button in the default dark theme with a black background.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ theme: "default", // Used to set the theme of the button // ...other button options }).mount('#container')
Sample code to render the default Express Checkout button.

Light theme

Use the light theme to make the button visible on dark backgrounds. To apply the light theme, set the theme attribute to light. Avoid using the light theme on white or light backgrounds. The button must be used on backgrounds that provide sufficient contrast.
An image showing the Express checkout button in the light theme with a white background.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ theme: "light", // Used to set the theme of the button to light // ...other button options }).mount('#container')
Sample code to render a white Express Checkout button.

Outlined theme

Use the outlined theme to make the button visible on all backgrounds. To apply this theme, set the theme attribute to outlined. Avoid placing the button on dark or saturated backgrounds. The button must be used on backgrounds that provide sufficient contrast.
An image showing the Express checkout button in the outlined theme with a black border and a white background.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ theme: "outlined", // Used to set the theme of the button // ...other button options }).mount('#container')
Sample code to render a white, outlined Express Checkout button.

Button shape

Customizing the shape of the button to match the site's look and feel is a key step in creating a visually cohesive and engaging user experience. To control the button's shape, change the value of the shape attribute.
There are three shapes available with the Express Checkout button: default, rectangular, and pill.

Rounded corners (default)

The default button shape is a rectangle with rounded corners. To apply the default shape, set the shape attribute of the element to default.
An image showing the Express checkout button in the default rectangular shape with rounded corners.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ shape: "default", // Used to define the shape of the button // ...other button options }).mount('#container')
Sample code to render the Express Checkout button in the default shape.

Minimum corner radius

To apply the rectangular shape with square corners, set the shape attribute of the element to rect.
An image showing the Express Checkout button in the rectangular shape with square corners.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ shape: "rect", // Used to style the button with a rectangular shape with square corners // ...other button options }).mount('#container')
Sample code to render the Express Checkout button in the rectangle shape with square corners.

Maximum corner radius

To apply the pill shape, set the shape attribute of the element to pill.
An image showing the Express checkout button in the pill shape.
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ shape: "pill", // Used to style the button in a pill shape // ...other button options }).mount('#container')
Sample code to render the Express Checkout button in the pill shape.

Button size

Width

Display the Klarna button prominently. Make the button the same width as other payment buttons in stacked button layouts.
By default the button is 335px wide and 48px high. To change its size, style the klarna-payment-button element that the Web SDK mounts in the container, for example:
CSS
1 2 3 4 5 6
/* Match the width of the other payment buttons */ #container klarna-payment-button { width: 100%; height: 48px; }
Klarna payment button with the same width as the other payment buttons in a stacked layout
When the button is narrower than 200px, the text is removed and only the Klarna wordmark is shown, on a pink background in every theme.
A narrow Klarna payment button showing only the Klarna wordmark

Height

The default recommended height of the Klarna button is 48px and the minimum height allowed is 40px. The button can't be taller than 60px. Ensure the button has the same height as other payment buttons.
Klarna payment button with the same height as the other payment buttons

Button Klarna branding

There are three ways to display the Klarna trademark on the button: badge, left icon, or centered icon. These variants are available to ensure there is a button variant aligned with the Partner's UI patterns. To control the button's alignment, change the value of the logoAlignment attribute.

Default

The default alignment shows the button text followed by the Klarna badge. To apply the default alignment, set the logoAlignment attribute of Payment.button() to default, or leave it out.
Klarna payment button with the text followed by the Klarna badge
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ logoAlignment: "default", // ...other button options }).mount('#container')

Left icon alignment

To left-align the Klarna icon in the button, set the logoAlignment attribute of Payment.button() to left.
Klarna payment button with the Klarna icon aligned to the left
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ logoAlignment: "left", // ...other button options }).mount('#container')

Centered icon alignment

To position the Klarna icon at the center with the text trailing, set the logoAlignment attribute of Payment.button() to center.
Klarna payment button with the Klarna icon centered and the text after it
JAVASCRIPT
1 2 3 4 5
klarna.Payment.button({ logoAlignment: "center", // ...other button options }).mount('#container')
Related articles
Express Checkout integration
Support
Partner support•Service Status
Cookies|Terms & Conditions|Copyright Klarna AB 2026
Jump to section...