Buttons
Buttons are the most common used component. They allow users to complete multiple actions.
Types
Text text button types only have text. Text icon these include the icon on the left side of the text. Icon only no text is in these buttons.
Sizes
There are large, medium and small sizes of buttons. The tables below have the states and the button sizes.
Text buttons
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Secondary outline :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Quiet :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
CTA :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton |
Text buttons variations
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Secondary outline :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Quiet :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
CTA :flare |
|||
:horizon | |||
:gravity | |||
:aurora | |||
:nebula | |||
:galaxy |
Text icon buttons
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Secondary outline :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Quiet :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
CTA :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton |
Text icon buttons variations
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Secondary outline :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Quiet :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
CTA :flare |
|||
:horizon | |||
:gravity | |||
:aurora | |||
:nebula | |||
:galaxy |
Icon only buttons
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Secondary outline :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
Quiet :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton | |||
CTA :passive |
|||
:hover | |||
:active | |||
:focus | |||
:disabled | |||
:skeleton |
Icon only buttons variations
States | Large Height: 48px Padding: 14px 17px |
Medium Height: 40px Padding: 10px 13px |
Small Height: 32px Padding: 7px 10px |
---|---|---|---|
Primary solid :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Secondary outline :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
:light | |||
Quiet :success |
|||
:alert | |||
:warning | |||
:option-1 | |||
:option-2 | |||
:option-3 | |||
:attention | |||
CTA :flare |
|||
:horizon | |||
:gravity | |||
:aurora | |||
:nebula | |||
:galaxy |
Usage
Buttons are clickable elements that trigger actions. They are used for calls to action to the user and allow users to interact with pages. The labels of the buttons express what action will happen when the user clicks on it.
When to use
Use buttons to communicate actions users can take and to allow users to interact with the page. There should be one primary button, and any remaining calls to action should be represented as secondary or other variant buttons.
When not to use
Do not use buttons as navigational elements. Instead, use links when you want to take the user to a new page.
Type | Use |
---|---|
Primary | Used for main call to action. Where you want to emphasise the action and have the user click on it to complete the next step. |
Secondary | Used for secondary actions, often next to primary button. |
Quiet | These are also known as btn--text , where a button does not need much attention from the user but is there for possible steps. |
CTA | Call to action buttons are used when you want to catch the user’s eye and accomplish the next step that will lead to success. |
Success | Buttons that represents any successful action. |
Alert | Alerts the user of the possible outcome of their action upon clicking on the button, but non-desctructive outcomes. |
Warning | Actions that could have destructive effects or outcomes. Such as deleting or removing. |