Skip to main content
⌘K

Search

Search pages, pieces and blocks.

States

Tone shifts only: hover is one step, selected is two. No edges or rings, except keyboard focus and an invalid field.

Hover
one tone step
Selected
--selected
Disabled
50%

Buttons

Every variant, every state. Hover a column to compare it down the page.

Rest
Hover
Pressed
Focus, keyboard
Disabled
Loading
Primary
Secondary
Outline
Ghost
Destructive

Fields

Fields add the two states buttons do not have: invalid and read-only.

Rest
Focus
Invalid
Disabled
Read-only
Input
Select
Message

Shown under the field

No message on focus

Hint stays muted

No edge, still selectable

Tabs, links, rows and switches

Rest
Hover
Selected
Focus, keyboard
Disabled
Tab
Link
House rules
House rules
House rules
House rules
House rules
Row
Lisbon
Lisbon
Lisbon
Lisbon
Lisbon
Switch

How each state is made

Uses count the variant in src. Click to copy.

StateClassWhat it doesUses
Hover,One step of tone. Filled pieces mix 5% toward foreground with bg-tint-*; Primary fades to 80%.33
PressedButtons drop 1px. Toggles that stay pressed use --selected.1
SelectedA step stronger than hover, so hover on a selected row still reads.35
FocusThe only edge a state adds. Keyboard only; see Focus.94
DisabledHalf opacity and no pointer. Fields also take a faint fill, bg-input/50.42
InvalidRed edge plus a 3px red ring at 20%, 40% in Night, and a message in destructive (Field Error).30
Loading+ SpinnerOnly Inline Edit and Search Input have it. Button has no loading state.2
Read-onlyInput and Select: the muted fill and no edge. Focus brings the edge back with its ring.9

Do and don't

LisbonPortoFaro
DoSelected is a tone and a weight, hover one step lighter. The row never moves.
LisbonPortoFaro
Don'tA solid fill for selected and a 1px edge for hover. Both shout, and the edge looks like focus.

Rules

  1. 1A state changes tone, never size, position or weight, except selected, which may go to 500.
  2. 2Only keyboard focus and invalid draw an edge. Hover never does.
  3. 3Disabled is opacity 50 and no pointer. Do not grey out text by hand.
  4. 4Keep the label when loading. The spinner takes the icon's place, so the button keeps its width.