Actions

Components that trigger operations or navigate the user. Buttons are for in-page actions; links are for navigation. Both consume Tier-3 tokens so the full action palette can be rethemed in one place.

Buttons stable

Four variants cover the full intent spectrum from primary confirmation to destructive operations. All variants share .btn as a base class and consume --btn-* Tier-3 tokens.

Full reference — Buttons

Variants

Apply .btn first, then exactly one variant modifier. Use the variant that matches the intent of the action — not its visual weight preference.

VariantClassUse
.btn-pThe single most important action on a page or in a dialog. Use once per view.
.btn-sSupporting actions alongside a primary button — cancel, back, view details.
.btn-gLow-emphasis actions in toolbars, cards, or dense layouts where ink weight matters.
.btn-dIrreversible operations: delete, remove, revoke. Pair with a confirmation dialog.

Sizes

Size modifiers adjust height and padding only. Font weight and variant colours are unaffected. Default fits most layouts; use .btn-sm for dense UIs and .btn-lg for hero CTAs.

SizeClassHeightPaddingFont size
Small.btn-sm32px0 12px12px
Default40px0 16px13px
Large.btn-lg48px0 20px14px

States

Hover, active, and focus states are driven by --btn-* token values. Focus uses the global :focus-visible outline from base.css. Disabled buttons reduce opacity via --btn-disabled-opacity and suppress pointer events.

For <a> elements acting as disabled buttons, use aria-disabled="true" and tabindex="-1" with inline opacity and pointer-events: none — the disabled attribute has no effect on anchors.

<button class="btn btn-p" disabled>Can't proceed</button>

<!-- anchor disabled state -->
<a class="btn btn-p" aria-disabled="true" tabindex="-1"
   style="opacity: var(--btn-disabled-opacity); pointer-events: none;">
  Can't proceed
</a>

Anatomy

<!-- base class + variant modifier -->
<button class="btn btn-p">Label</button>

<!-- with size modifier -->
<button class="btn btn-s btn-sm">Label</button>

<!-- with icon (flexbox gap: 6px) -->
<button class="btn btn-g">
  <i class="ti ti-download"></i>
  Download
</button>

<!-- link element acting as a button -->
<a href="/docs" class="btn btn-p">Read the docs</a>

Token reference

TokenDefaultPurpose
--btn-radiusvar(--radius-md)Border radius for all button variants
--btn-disabled-opacity0.5Opacity applied to disabled buttons
Primary
--btn-p-bgvar(--color-accent)Primary background
--btn-p-textvar(--color-accent-text)Primary text colour
--btn-p-hover-bgvar(--color-accent-hover)Primary hover background
--btn-p-active-bgvar(--color-accent-active)Primary pressed background
Secondary
--btn-s-bgvar(--color-bg-inset)Secondary background
--btn-s-textvar(--color-text)Secondary text colour
--btn-s-hover-bgvar(--color-bg-panel) / dark: var(--in3-ash)Secondary hover background
Ghost
--btn-g-bgtransparentGhost background
--btn-g-bordervar(--color-border)Ghost border colour
--btn-g-hover-bgvar(--color-bg-panel)Ghost hover background
Destructive
--btn-d-bgvar(--color-error)Destructive background
--btn-d-textvar(--color-on-error)Destructive text colour
--btn-d-hover-bgvar(--in0-void)Destructive hover background (theme-invariant)

Overriding tokens

/* Retheme the primary button for a promotional section */
.promo-section {
  --btn-p-bg:       #7C3AED;
  --btn-p-hover-bg: #6D28D9;
  --btn-p-text:     #fff;
}

/* Pill-shaped buttons in a card */
.card {
  --btn-radius: var(--radius-full);
}

Naked <a> elements inherit --link-color, --link-hover-color, and --link-visited-color from tokens/base.css. Override these tokens to retheme inline links without touching --color-accent. Any <a> also accepts .btn classes to render as a button.

Inline text link — uses --link-color and underlines on hover. Visited links use --link-visited-color.

Full reference — Links

Naked links

Base link styles are applied globally via tokens/base.css. No class needed — just use <a href="…">.

<p>See the <a href="/docs">full documentation</a> for details.</p>

Link buttons

Any <a> element accepts the .btn classes. The base styles set text-decoration: none so links render identically to <button> elements. Use <button> for in-page actions and <a> for navigation.

<a href="/docs" class="btn btn-p">Read the docs</a>
<a href="/cancel" class="btn btn-s">Cancel</a>

Token reference

TokenDefaultPurpose
--link-colorvar(--color-accent)Naked link colour
--link-hover-colorvar(--color-accent-hover)Naked link hover colour
--link-visited-colorvar(--color-accent)Naked link visited colour

Overriding tokens

/* Retheme inline links in a dark editorial section */
.editorial {
  --link-color:       var(--fo0-sage);
  --link-hover-color: var(--fo1-fern);
}

Tooltip coming soon

CSS-only tooltip via [data-tooltip] attribute and ::before / ::after pseudo-elements. --tooltip-* tokens for background, text, and max-width. Note: CSS-only tooltips do not respond to keyboard focus — a JS enhancement is needed for focus-visible support.