Button
Trigger actions with filled, outlined, and text button variants. Includes the SubmitButton React component for forms.
Buttons let users take action. Their appearance helps communicate the importance of those actions and guides users towards the next step in a task.
This page explains how to choose variants, colours, and sizes, and how to place, group, and label Buttons. For classes, attributes, and the React API, see Specification.
Show code
<div class="flex flex-wrap gap-16 items-center"> <button type="button" class="button-filled" data-color="accent"> Filled Accent </button> <button type="button" class="button-filled">Filled Neutral</button> <button type="button" class="button-filled" data-color="subtle"> Filled Subtle </button> <button type="button" class="button-outlined">Outlined</button> <button type="button" class="button-text">Text</button></div>Choosing the right Buttons helps keep the interface easy to read and quick to use. Too many Buttons at the same hierarchy level can make it feel cluttered and slow.
Price incl VAT
689 000 kr
Vehicle tax
The amount depends on the vehicle and market.
Delivery
May 2027
Use Filled Accent for the primary action that moves a flow forward.
EX60
For Life in Balance
From 9 927 kr/mån
Use Filled Neutral for the primary action in a view, with a text link for the secondary action.
Price incl VAT
689 000 kr
Vehicle tax
The amount depends on the vehicle and market.
Delivery
May 2027
Don’t give multiple actions the highest priority.
Meet the refreshed Volvo XC60. For Life.
Electric for everyday journeys, hybrid for longer adventures. The XC60 plug-in hybrid is the car that takes you further.
Don’t use button size to build visual hierarchy.
Visual hierarchy
Section titled “Visual hierarchy”Buttons are available in several visual styles with different levels of prominence.
To build easy-to-read, fast-to-use interfaces, choose Button sizes and appearances that reflect the hierarchy of actions in your application. The stronger the styling, the more attention a button draws.
Button styles from the most prominent, Filled Accent, to the least prominent, Outlined.
The intended hierarchy depends on context. Background, placement, surrounding content, and repetition can change how prominent a button appears.
Choose the level of emphasis
Section titled “Choose the level of emphasis”Start by considering the importance of the action within its current context. Choose the lowest level of emphasis that keeps the action easy to find and understand. Consider the hierarchy of all elements on the screen, including headings, imagery, links and other controls.
Give each decision point one visually dominant action. Other filled buttons may appear in separate regions or repeated components, provided they do not compete with that action.
Reserve Filled Accent for an action that needs exceptional emphasis within the experience. Use Filled Accent consistently for the action that advances an accent-led journey. For example, if Filled Accent starts a booking or purchase flow, retain that treatment for the principal forward action throughout the flow. See Colour Brand Guidelines.
Do not use accent merely to make a screen more visually engaging.
| Variant | Emphasis | Typical use |
|---|---|---|
| Filled Accent | Highest | An action that needs exceptional emphasis across the current experience or flow, such as Order or Book a test drive. |
| Filled Neutral (Black/White) | High | Use Filled Neutral as the default primary action in standard product interfaces, or for a high-emphasis supporting action when Filled Accent is already used. Avoid using multiple Filled Neutral buttons when one action should clearly lead. Compare, Save. |
| Filled Subtle | Medium | Use for supporting or repeatable actions that need a visible container without dominating the interface. It may be paired with a higher-emphasis action or repeated across items in a grid. Add, Remove. |
| Outline | Low | Used for rare cases where you need an action with even less emphasis in a group that already uses filled action buttons. An Outline button can also soften the look on some images when a filled button would create too stark a contrast. |
| Text | Lowest | Use for optional or supporting actions that should remain available without adding significant visual weight. Do not use for form submit or other actions users must find immediately. |
Choose colour intent
Section titled “Choose colour intent”There are three semantic meanings in the available colours: accent, destructive, and neutral. These colours carry meaning, so use them deliberately.
- Accent: use for an action that needs exceptional attention within the current decision or for the principal forward action in an accent-led journey. Always place on a neutral background.
- Destructive:for actions that that have severe consequences or difficult-to-reverse outcome. Do not use destructive styling for a standard Cancel or Back action. Always pair with a confirmation step.
- Neutral: for all other actions.
When a destructive action is grouped with its alternative, give the two buttons different colours so the safe choice never looks the same as the destructive one.
Text Buttons
Section titled “Text Buttons”Text Buttons don’t have a container, so they blend into the surrounding content. Use Text buttons to keep supporting or optional actions available within cards, dialogs and other contained elements without adding significant visual weight.
To work well, they need careful placement and spacing so it’s clear what content they relate to. Follow the principle of grouping by proximity. Also, separate text buttons from the main content to clearly signal that they’re actions and not part of the text itself.
Accessibility
Section titled “Accessibility”On top of media, make sure buttons have enough contrast against the background to meet our accessibility guidelines. See colour modes.
Choosing a size
Section titled “Choosing a size”Choosing a size isn’t about visual hierarchy; it’s about selecting the right size based on available screen real estate and the size of surrounding elements.
Buttons don’t scale between breakpoints. You choose the size for the context.
- Default/Large: the standard for page-level actions.
- Medium and Small: for dense areas such as compact cards, toolbars, and table rows.
By default, a button hugs its label. Use a fixed or full width when the button should align with a form field, a grid column, or a container edge—for example, a full-width primary action on small viewports.
Grouping
Section titled “Grouping”Group buttons when multiple actions apply to the same context or decision. Use different levels of visual emphasis to communicate the relative importance of actions within a group.
It’s recommended to combine one dominant action with one or more lower-emphasis actions.
Examples:
- Filled Accent + Filled Neutral
- Filled Neutral + Filled Subtle
- Filled Neutral + Text
- Filled Subtle + Text
- Text + Text
Align the level of importance with the level of visual emphasis.
Use text buttons when several actions have the same level of importance.
Don’t use different button sizes in the same group.
Don’t use filled buttons for several actions of equal importance.
Buttons in a group sit on one row when space allows and stack when they don’t. Keep them horizontal whenever possible.
In a left-aligned group, place the primary button on the far left.
In a right-aligned group, place the primary button on the far right.
In a stacked group, place the primary button on top.
The primary action leads: on the left in a left- or centre-aligned group, on the right in a right-aligned group. When the same group stacks, the primary button moves to the top.
Placement
Section titled “Placement”Place the Button directly under or within the content it affects, so it’s grouped by proximity. Match the overall alignment: left-aligned copy gets a left-aligned button; centered copy gets a centered button.
In step-by-step flows, place the button that moves the user forward on the right on desktop and tablet. On mobile, let it span the full width between the margins.
For right-to-left layouts, mirror placement so the “forward” button remains on the trailing side.
Labels
Section titled “Labels”Write the action, not the context. Start with a verb and keep the label as concise as the action allows. Prefer one to four words, but prioritise clarity over a fixed character limit. Use specific labels: Book test drive, Add to cart, Delete account.
Avoid vague labels such as Submit, Click here, or OK where a more specific verb exists.
Use Continue or Next only when the destination or next step is already clear from the surrounding context.
All buttons support icons before or after the label. Icons can improve recognition and speed up the interface. It’s recommended to use only well-understood symbols for buttons. Avoid using icons for mere decoration or icons that require explanation.
Leading icons - “What this action does”
Use a leading icon when it helps users recognise the action faster. The icon should represent the action the button will carry out. + Add vehicle
Trailing icons - “What happens next”
Use a trailing icon when you want to communicate the outcome or destination—for example, when moving the user forward or revealing more content. Learn more →
Place an icon before the label to show what the action does.
Place an icon after the label to show where the button takes the user.
Disabled
Section titled “Disabled”Use the disabled state when an action is currently unavailable because the required state, selection or destination does not exist, and the reason is apparent from the surrounding interface.
Examples
Section titled “Examples”- “Delete” is unavailable because no item is selected.
- “Export” is unavailable because there is no data.
- “Undo” is unavailable because there is nothing to undo.
- Previous or next button is disabled because there’s no next/previous item in a slide show.
Its recommended to explain what’s missing over disabling the button. A disabled button gives the user no route forward and is easy to miss, especially in forms.
Loading
Section titled “Loading”Use loading only for actions the system is actively processing, and keep the label in place so the button doesn’t resize.