⌘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
Enter a full email address
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.
| State | Class | What it does | Uses |
|---|---|---|---|
| Hover | , | One step of tone. Filled pieces mix 5% toward foreground with bg-tint-*; Primary fades to 80%. | 33 |
| Pressed | Buttons drop 1px. Toggles that stay pressed use --selected. | 1 | |
| Selected | A step stronger than hover, so hover on a selected row still reads. | 35 | |
| Focus | The only edge a state adds. Keyboard only; see Focus. | 94 | |
| Disabled | Half opacity and no pointer. Fields also take a faint fill, bg-input/50. | 42 | |
| Invalid | Red edge plus a 3px red ring at 20%, 40% in Night, and a message in destructive (Field Error). | 30 | |
| Loading | + Spinner | Only Inline Edit and Search Input have it. Button has no loading state. | 2 |
| Read-only | Input and Select: the muted fill and no edge. Focus brings the edge back with its ring. | 9 |
Do and don't
LisbonPortoFaro
LisbonPortoFaro
Rules
- 1A state changes tone, never size, position or weight, except selected, which may go to 500.
- 2Only keyboard focus and invalid draw an edge. Hover never does.
- 3Disabled is opacity 50 and no pointer. Do not grey out text by hand.
- 4Keep the label when loading. The spinner takes the icon's place, so the button keeps its width.