Buttons are used for most interactions in our UI.
Configurator
<oc-button-v1 variant="primary">In den Warenkorb</oc-button-v1>Usage
Anatomy
- Icon left (optional)
- Label
- Icon right (optional)
- Container
HTML
<div class="anatomy" style="width:420px">
<oc-button-v1 variant="primary" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<span class="anatomy-pin" style="left:8%;top:0%">1</span>
<span class="anatomy-pin" style="left:50%;top:0%">2</span>
<span class="anatomy-pin" style="left:92%;top:0%">3</span>
<span class="anatomy-pin" style="left:100%;top:100%">4</span>
<ol class="anatomy-key"><li data-n="1">Icon left (optional)</li><li data-n="2">Label</li><li data-n="3">Icon right (optional)</li><li data-n="4">Container</li></ol>Variants
The button come in two sizes: 50 and 100. Use button 100, the larger size, as the default. Only use button 50 in areas with limited space because it provides an suboptimal hitbox size.
The button is available in the following variants:
- Primary: Use for the most important action on a page. Use only once per view.
- Secondary: Use for less important actions.
- Secondary-over-color: Use for less important actions on frame, stacked or colored backgrounds.
- Tertiary: Has the least visual attention and functions like links but are styled as buttons.
- Success: Use to indicate a positive outcome of an action. The success button is displayed as a variant because it has its own states.
- Custom-color-soft: Use semantic design tokens with the prefix "$oc-semantic-color-background-soft-" for the background and use semantic design tokens with sufficient color contrast for the text. Please check with the design system team before doing so.
- Custom-color-strong: Use semantic design tokens with the prefix "$oc-semantic-color-background-strong-" for the background and use semantic design tokens with sufficient color contrast for the text. Please check with the design system team before doing so.
primary, secondary
secondary-over-color, on frame
tertiary
success (from primary and from secondary)
custom-color-strong, custom-color-soft
HTML
<p class="demo-label">primary, secondary</p>
<oc-button-v1 variant="primary" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="primary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<oc-button-v1 variant="secondary" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="secondary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<p class="demo-label">secondary-over-color, on frame</p>
<oc-button-v1 variant="secondary-over-color" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="secondary-over-color" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<p class="demo-label">tertiary</p>
<oc-button-v1 variant="tertiary" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="tertiary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<p class="demo-label">success (from primary and from secondary)</p>
<oc-button-v1 variant="primary" success icon-type-left="check" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="primary" size="50" success icon-type-left="check" icon-type-right="arrow-right" style="flex:none">Label</oc-button-v1></div>
<oc-button-v1 variant="secondary" success icon-type-left="check" icon-type-right="arrow-right">Label</oc-button-v1><oc-button-v1 variant="secondary" size="50" success icon-type-left="check" icon-type-right="arrow-right" style="flex:none">Label</oc-button-v1></div>
<p class="demo-label">custom-color-strong, custom-color-soft</p>
<oc-button-v1 variant="custom-color-strong" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="--background-color: var(--oc-semantic-color-background-strong-mint); --text-color: var(--oc-semantic-color-background-soft-mint)">Label</oc-button-v1><oc-button-v1 variant="custom-color-strong" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; --background-color: var(--oc-semantic-color-background-strong-mint); --text-color: var(--oc-semantic-color-background-soft-mint)">Label</oc-button-v1></div>
<oc-button-v1 variant="custom-color-soft" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="--background-color: var(--oc-semantic-color-background-soft-mint); --text-color: var(--oc-semantic-color-text-default)">Label</oc-button-v1><oc-button-v1 variant="custom-color-soft" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; --background-color: var(--oc-semantic-color-background-soft-mint); --text-color: var(--oc-semantic-color-text-default)">Label</oc-button-v1></div>
Icons are optional and can be placed on either the left or right side of the button. The decorative icon on the left reduces cognitive load by symbolizing the button’s action. The icon on the right serve as an affordance for interaction, such as an arrow pointing forward for navigation.
Loading button
Buttons can be put into a loading state. This replaces the icons and the label with a centered spinner. This feature should be used for actions expected to complete asynchronously. During loading, the button has no interactive states and is not interactive.
Size 100: before and while loading
Size 50: before and while loading
HTML
<p class="demo-label">Size 100: before and while loading</p>
<oc-button-v1 variant="primary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<oc-button-v1 variant="primary" fit-content loading icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<oc-button-v1 variant="secondary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<oc-button-v1 variant="secondary" fit-content loading icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<p class="demo-label">Size 50: before and while loading</p>
<div><oc-button-v1 variant="primary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<div><oc-button-v1 variant="primary" size="50" loading icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none">Label</oc-button-v1></div>
<div><oc-button-v1 variant="secondary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1></div>
<div><oc-button-v1 variant="secondary" size="50" loading icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none">Label</oc-button-v1></div>
Behavior
States
Enabled (hover, press and tab to it)
Disabled
HTML
<p class="demo-label">Enabled (hover, press and tab to it)</p>
<oc-button-v1 variant="primary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<oc-button-v1 variant="secondary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<div class="on-frame" style="margin:0"><oc-button-v1 variant="secondary-over-color" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1></div>
<oc-button-v1 variant="tertiary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<p class="demo-label">Disabled</p>
<oc-button-v1 variant="primary" fit-content disabled icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<oc-button-v1 variant="secondary" fit-content disabled icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<div class="on-frame" style="margin:0"><oc-button-v1 variant="secondary-over-color" fit-content disabled icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1></div>
<oc-button-v1 variant="tertiary" fit-content disabled icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
Success states
Enabled (hover, press and tab to it)
Disabled
HTML
<p class="demo-label">Enabled (hover, press and tab to it)</p>
<oc-button-v1 variant="primary" fit-content success icon-type-left="check">Label</oc-button-v1>
<p class="demo-label">Disabled</p>
<oc-button-v1 variant="primary" fit-content success disabled icon-type-left="check">Label</oc-button-v1>
Success interaction
You can start a positive action with a primary, secondary or tertiary button. Once the positive action is completed, the button changes to the success variant. Make sure the size (100, 50) and fitting of the success button match the preceding button.
Only use the success variant in combination with a check icon, as there should be redundant cues for the state.
Klick oder Tipp löst die positive Aktion aus
Der Button zeigt das positive Ergebnis
HTML
<oc-button-v1 variant="secondary" size="50" icon-type-left="plus" style="flex:none">Folgen</oc-button-v1>
<oc-icon-v1 type="arrow-long-down" style="color:#e5006b"></oc-icon-v1>
<oc-button-v1 variant="secondary" size="50" success icon-type-left="check" style="flex:none">Folge ich</oc-button-v1>
HTML
<oc-button-v1 variant="primary" fit-content icon-type-left="smiley-positive">Folgen</oc-button-v1><oc-icon-v1 type="arrow-long-right" style="color:#e5006b"></oc-icon-v1><oc-button-v1 variant="primary" fit-content success icon-type-left="check">Folge ich</oc-button-v1></div>
<oc-button-v1 variant="secondary" size="50" icon-type-left="plus" style="flex:none">Folgen</oc-button-v1><oc-icon-v1 type="arrow-long-right" style="color:#e5006b"></oc-icon-v1><oc-button-v1 variant="secondary" size="50" success icon-type-left="check" style="flex:none">Folge ich</oc-button-v1></div>
<oc-button-v1 variant="tertiary" size="50" icon-type-left="plus" style="flex:none">Folgen</oc-button-v1><oc-icon-v1 type="arrow-long-right" style="color:#e5006b"></oc-icon-v1><oc-button-v1 variant="tertiary" size="50" success icon-type-left="check" style="flex:none">Folge ich</oc-button-v1></div>
According to your needs, you can choose whether the positive action can be undone. If you do not want the positive action to be reversible, use the disabled state of the Success Button.
Reversible
Klick oder Tipp auf den Success-Button macht die Aktion rückgängig
Not reversible
Das positive Ergebnis lässt sich nicht rückgängig machen
HTML
<p class="demo-label">Reversible</p>
<oc-button-v1 variant="secondary" size="50" success icon-type-left="check" style="flex:none">Folge ich</oc-button-v1>
<oc-icon-v1 type="arrow-long-down" style="color:#e5006b"></oc-icon-v1>
<oc-button-v1 variant="secondary" size="50" icon-type-left="plus" style="flex:none">Folgen</oc-button-v1>
<p class="demo-label">Not reversible</p>
<oc-button-v1 variant="secondary" size="50" success disabled icon-type-left="check" style="flex:none">Bewertung gesendet</oc-button-v1>
Fitting
The horizontal fitting of the button can behave in two different ways: fill-parent and fit-content. The default setting is fit-content. In contrast, the fill-parent button extends across the entire parent element, with the label centered. Generally, if the label exceeds the button's width, it will be truncated, which is best avoided.
The vertical fitting of the button is fit-content.
Size 100, fit-content
Size 100, fill parent (default)
Size 50, fit-content (default)
Size 50, fill-parent
HTML
<p class="demo-label">Size 100, fit-content</p>
<oc-button-v1 variant="primary" fit-content icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<p class="demo-label">Size 100, fill parent (default)</p>
<oc-button-v1 variant="primary" icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
<p class="demo-label">Size 50, fit-content (default)</p>
<oc-button-v1 variant="primary" size="50" icon-type-left="smiley-positive" icon-type-right="arrow-right" style="flex:none; flex:none">Label</oc-button-v1>
<p class="demo-label">Size 50, fill-parent</p>
<oc-button-v1 variant="primary" size="50" fill-parent icon-type-left="smiley-positive" icon-type-right="arrow-right">Label</oc-button-v1>
Placement
When placing multiple buttons horizontal or vertical to each other, make sure there is a gap of 8px in-between. When placing buttons horizontal to each other, the primary button should be on the right. When placing buttons vertical to each other, the primary button should be on top. Always make sure that there are at least 8 pixels in between buttons.
HTML
<oc-button-v1 variant="secondary" fit-content>Abbrechen</oc-button-v1>
<oc-button-v1 variant="primary" fit-content>Speichern</oc-button-v1>
HTML
<oc-button-v1 variant="primary">Speichern</oc-button-v1>
<oc-button-v1 variant="secondary">Abbrechen</oc-button-v1>
Best practices
Sneaker „Mojo“ aus dem neuen Fashion-Drop, jetzt mit Extra-Rabatt.

Sneaker „Mojo“ aus dem neuen Fashion-Drop, jetzt mit Extra-Rabatt.

Rücksendung
Du hast 30 Tage Zeit, deine Artikel kostenlos zurückzuschicken. Melde die Rücksendung in deinem Kundenkonto an, druck das Etikett aus und gib das Paket bei Hermes ab. Sobald es bei uns ist, bekommst du dein Geld zurück.
Content guidelines
- Use simple, clear language.
- Keep the label concise, under 4 words and fewer than 20 characters, including spaces.
- Capitalize the first letter of the first word and proper nouns in the button label text.
- Use a verb that describes the action, such as "Zum Warenkorb hinzufügen".
- Contextualize the action the user is taking.
- Maintain consistent wording for the same button across different views.
- Avoid punctuation marks such as periods or exclamation points.
- Use ambiguous wording or overly creative content, as they may not be accessible.
- Include polite expressions like "please" and "thank you."
- Use non-specific phrases like "learn more" or "click here."
- Use emojis or exclamation points, as they aren’t appropriate for the functional nature of buttons.
- Write labels as nouns or adjectives, which can be unclear and disorienting.
Accessibility
When writing accessible button labels, it's crucial to ensure that it provides sufficient context about the button's behavior. If a label like "Weiter" or "Mehr anzeigen" is used, it can be confusing for screen reader users when read out of context. In such cases, it's necessary to provide an alternative text with deeper context, such as "Weiter zur Kasse" or "Mehr ähnliche Produkte anzeigen," using the aria-label attribute. This attribute helps to describe the button's function fully, considering the rest of the website content is not visible to the screen reader.
Related components
- Icon Button: Rounded Buttons consist of a single icon on a white circle
- Link: A link allows users to navigate through applications and websites.
- Skip Link
Implementation
Live demo
Mojo
Ledersneaker „Court“, weiß
Glattleder, Gummisohle in Honigbraun
89,99 €
statt 112,99 €
Lieferbar · in 2 bis 4 Werktagen bei dir
Kostenlose Rücksendung innerhalb von 30 Tagen
HTML
<div class="on-frame" style="margin:0;padding:24px">
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:16px;max-width:880px;margin:0 auto;align-items:start">
<div style="background:#fff;border-radius:16px;overflow:hidden"><img src="/previews/imagery/samples/otto-product-still/product-sneaker.webp" alt="Weißer Ledersneaker mit Gummisohle" style="display:block;margin:0;width:100%;aspect-ratio:1;object-fit:cover"></div>
<oc-block-v2><div style="display:grid;gap:16px">
<div style="display:grid;gap:4px"><p class="oc-copy-75 oc-text-color-secondary">Mojo</p><p class="oc-headline-100">Ledersneaker „Court“, weiß</p><p class="oc-copy-75 oc-text-color-secondary">Glattleder, Gummisohle in Honigbraun</p></div>
<p class="oc-headline-200 oc-text-color-sale">89,99 €</p><p class="oc-copy-75 oc-text-color-secondary">statt <s>112,99 €</s></p><oc-tag-v1 variant="sale" size="50">-20 %</oc-tag-v1></div>
<p class="oc-copy-75"><span class="oc-text-color-success" style="font-weight:700">Lieferbar</span> · in 2 bis 4 Werktagen bei dir</p>
<div style="display:grid;gap:8px"><oc-button-v1 variant="primary" icon-type-left="basket">In den Warenkorb</oc-button-v1><oc-button-v1 variant="secondary" success icon-type-left="check">Gemerkt</oc-button-v1></div>
<p class="oc-copy-75 oc-text-color-secondary">Kostenlose Rücksendung innerhalb von 30 Tagen</p>
</oc-block-v2>
