Skip to content

Button Design Guidelines

Evan Rusackas edited this page Apr 12, 2021 · 8 revisions

Overview

Button variants:

  1. Primary
  2. Secondary
  3. Tertiary
  4. Destructive

Frame 226

Button styles: Each button variant has three styles:

  1. Text
  2. Icon+text
  3. Icon only

Frame 226 (1)

Primary buttons have a fourth style 4. dropdown.

Usage Buttons communicate actions that users can take. Do not use for navigations, instead use links.

Purpose

example description
Primary Primary - Main call to action, just 1 per page not including modals or main headers
Secondary Secondary - Secondary actions, always in conjunction with a primary
Tertiary Tertiary - For less prominent actions; tertiary buttons can be used in isolation 
or paired with a primary button when there are multiple calls to action.
Destructive Destructive - For actions that could have destructive effects on the user’s data 
(for example, delete or remove)

Format

Anatomy The button text is always centered. By default Superset uses the Label style for all button labels. If a text label is not used, an icon should be present to signify what the button does. In a button that uses an icon and text, position the icon to the left of the text.

Anatomy

Button size • The default button size is 160/32 (width/height). • The button width can get smaller if the space it needs to occupy is less than the default size. The minimum padding in this case is 8px around the text. • The text is 11px, Inter, Medium and all caps • The corners have a rounded radii of 4px • Ideally try to use the default button size for all use cases unless the parent container is less than the default button width.

Group 66

Frame 284

Button groups Group buttons that have a relationship. Too many calls to action will overwhelm and confuse users so they should be avoided. Even secondary buttons can have too much visual weight. It is recommended to use tertiary or ghost buttons in layouts with more than three calls to action.

Frame 284

Frame 269

All buttons in a button group should try to use the same style. There may be cases where a combination of styles are used in the same button group as long as all actions are clear to users.

Frame 281

Order You don’t necessarily need to use the buttons in the order that their labels imply. For example, you don’t always need to use the secondary button as the second button in your layout. The most important thing is to establish a visual hierarchy between the buttons in your UI. Keep these best practices in mind.

Spacing In a button group, buttons should be spaced 8px away from each other vertically or horizontally.

Frame 274

Content

Text labels Button labels need to be clear and predictable. Button labels should clearly indicate the action of the button. To provide enough context, use the {verb} + {noun} format except in the case of common actions like “Done”, “Close”, “Cancel”, “Add”, or “Delete”.

There are exceptions to this rule for situations in which button length could cause problems in compact UIs or negatively impact translation, but the {verb} + {noun} formula is still best practice.

Frame 267

Clone this wiki locally