Components

Explore live examples and usage guidance for interface components styled with the active colour palette.

Actions

Buttons

Use one primary action per task, secondary and quiet buttons for supporting actions, and the danger variant for destructive actions.

Anatomy

  1. Button container
  2. Action label

Configuration

Variants

Use for the main action in a task.

Tone

Use the palette’s primary colour for a standard action.

Size

Use the standard size for actions in forms and dialogs.

State

The action is available.

Icon placement

A clear label is enough for most actions.

Width

Let the label determine the width for an inline action.

Design tokens used

CategoryTokenValueWhere it’s used
Colour--cc-foreground—Secondary label and hover outline, and quiet label on hover
--cc-muted-foreground—Quiet button label
--cc-surface—Secondary button background
--cc-surface-muted—Secondary and quiet button backgrounds on hover
--cc-border—Secondary button border
--cc-primary—Primary button background
--cc-primary-hover—Primary button background on hover
--cc-primary-foreground—Primary button label and icon
--cc-critical—Destructive button background
--cc-critical-hover—Destructive button background on hover
--cc-critical-foreground—Destructive button label
--cc-focus-ring—Keyboard focus ring