Dark
Light
<button class="doi-button">File a request</button>
<button class="doi-button doi-button--secondary">Read more</button>
<button class="doi-button doi-button--outline">Cancel</button>
<button class="doi-button doi-button--emphasis">Report</button>
<a class="doi-button doi-button--lg" href="/archive">Open the archive</a>
Variants and states
| Default | Hover | Pressed | Focus | Disabled | |
|---|---|---|---|---|---|
| Primary | |||||
| Secondary | |||||
| Outline | |||||
| Emphasis |
Sizes
There is no small button. 44px is the minimum touch target.
Guidelines
Do
Use one Primary button for the main action in a view. Write labels as short verbs: File, Submit, Save.
Don't
Line up several Primary buttons, or use a button for navigation that should be a link.
Use Emphasis for one action a reader must not miss, like reporting an anomaly. Never more than one per page, and never next to a Primary button.