Foundation UI
Button
Triggers an action. Primary is the one main action in a section, secondary supports it, accent is for marketing calls to action, outline and ghost are for lower-emphasis actions.
Examples
Variants
Sizes
With icons
States
Full width
On a dark background
Classes
| Class | Purpose |
|---|---|
.btn .btn-primary | Main action. Use once per section. |
.btn .btn-secondary | Supporting action, soft green. |
.btn .btn-accent | Marketing call to action, brass. |
.btn .btn-outline-primary | Lower emphasis, outlined. |
.btn .btn-ghost | Lowest emphasis, text only. |
.btn .btn-light / .btn-outline-light | For dark sections such as the hero or footer. |
.btn-sm / .btn-lg | 36 px and 52 px height. Default is 44 px. |
.is-loading | Shows a spinner and blocks clicks. Add aria-busy="true". |
.btn-pill | Fully rounded corners. |
Use <button> for actions (submit, open a menu) and <a> for navigation. Icon-only buttons have their own page: Icon button.