Buttons

Styled button and link variants for actions and navigation.

Variants

Apply .button to links or buttons. Add .button--accent for emphasis.

Code

<button class="button">Default</button>
<a href="#" class="button button--accent">Accent</a>

Ghost buttons

Use .button--ghost for a quiet action without a fill. Add .button--accent for accent text that looks like a link, with the same button padding and focus outline. Accent text is mixed toward the scheme foreground for contrast.

Code

<button class="button button--small button--ghost" type="button">Cancel</button>
<a class="button button--small button--ghost button--accent" href="/manual/components/inline-edit.html">Edit</a>
Edit

Keep native semantics: buttons perform actions and links navigate. Compact inline Edit progressively enhances its native form link.

Subtle buttons

Use .button--subtle for secondary actions that need an edge but no fill. The border darkens and the background fills on hover.

Code

<button class="button button--small button--subtle" type="button">Rename</button>

Icon-only buttons

Add .button--icon to a subtle or ghost button for a square button holding one Phosphor icon. Give it an aria-label. Ghost icon buttons fill on hover instead of underlining.

Code

<button class="button button--subtle button--icon" type="button" aria-label="Search">
  <svg class="icon" aria-hidden="true" focusable="false" fill="currentColor"><use href="/icons/phosphor-bold.svg#magnifying-glass"/></svg>
</button>
<button class="button button--ghost button--icon" type="button" aria-label="Delete">…</button>

Sizes

Use .button--small or .button--large to adjust scale.

Code

<a href="#" class="button button--small">Small</a>
<a href="#" class="button">Default</a>
<a href="#" class="button button--large">Large</a>

With icon

Add .with-icon and an .icon image inside the button.

Code

<a href="#" class="button with-icon">
  <img src="icon.svg" class="icon" /> Label
</a>

Button group

Wrap buttons in .button-group to join them visually.

Code

<div class="button-group">
  <a href="#" class="button">One</a>
  <a href="#" class="button">Two</a>
  <a href="#" class="button">Three</a>
</div>

Hardware loaders

Loader variants and markup work inline with the existing status text.

Keep a readable button label and announce completion in a separate status region outside busy content. Disabling is an application decision.