---
type: Component
title: Buttons
description: "Five variants on one ladder, from the loud primary to a bare link, in three sizes. The register supplies the accent and the type."
status: released
register: both
tags: [interface]
tokens: [--accent-solid, --accent-solid-hover, --accent-contrast-text, --accent-text-low, --accent-text-high, --accent-component, --ink, --ink-2, --bg, --line-2, --surface, --border-hairline, --radius-none, --f-mono, --f-sans]
---

```html
<button class="btn--primary" type="button">Run in Colab</button>
<button class="btn--sec" type="button">Browse the set</button>
<button class="btn" type="button">Copy url4</button>
<button class="btn ghost" type="button">Download</button>
<button class="btn--link" type="button">Disconnect</button>
```

**Variants.**

| Class | What it is | Use it for |
| --- | --- | --- |
| `.btn--primary` | `--accent-solid` fill with `--accent-contrast-text`. Hover steps to `--accent-solid-hover`. | The one loud button: the positive, forward action (connect, run, publish). |
| `.btn--sec` | The outline tier. The label matches the outline (`--accent-text-low`); hover is the accent's component tint, never a solid invert. | The second action. |
| `.btn` | Ink fill with the ground as its label. Inverts to its own outline on hover. | The neutral base. |
| `.btn.ghost` | Muted at rest: a `--line-2` outline and `--ink-2` text, never a bright frame. Brightens on hover. | Quiet actions: reset, cancel, close. |
| `.btn--link` | An underlined text control in the accent, no box. | The lightest rung: disconnect, revoke, an in-flow action. |

**Sizes.** Three, on any variant, in either register.

```html
<button class="btn--primary sm" type="button">Connect</button>
<button class="btn--primary" type="button">Connect</button>
<button class="btn--primary lg" type="button">Connect</button>
```

`.sm` matches an input's height (toolbars, table actions). The default is the working size (forms, panels, product chrome). `.lg` is the hero tier (calls to action).

**In the marketing register** the same classes flip: the accent is gold and the type is sans. Nothing is a new component.

```html
<div data-brand="marketing">
  <button class="btn--primary lg" type="button">See the board →</button>
  <button class="btn--sec" type="button">Read the method</button>
  <button class="btn ghost" type="button">Download</button>
  <button class="btn--link" type="button">Read the method</button>
</div>
```

The ghost stays the muted neutral in both registers: quiet actions don't take the accent.

**Rules.**

- Every button carries the same border width, `--border-hairline`, whatever the variant, so an outline button is never larger than a solid one. Never give a solid button `border: none`.
- There is no gold modifier. In marketing the register supplies gold; in product, gold never enters a button.
- Register and size are independent. A marketing hero opts into `.lg`.
- Labels are sentence case and name the action (*Calls to action name the action*).

*Open:* disabled, pressed and focus states for buttons are not defined in the stylesheet. How many primary buttons a group may hold is not stated beyond "the one loud button".
