Card
A card gives one item its own place on the page, such as a hiring project or a candidate. Use cards when people scan several items of one kind and open one of them.
What it is
A card has rounded corners and no edge. It stands out from the page by its fill alone: white on the light gray page, a lighter navy on the dark one.
When to use it
Use cards for items people browse and open one at a time, such as the hiring projects of an employer, where each item has a title and a line or two of detail.
Use a list or a board when people compare items field by field or act on many at once.
A job ad takes the job card, and one headline figure takes the stat tile. A group of settings needs no card: a heading and space group it.
Anatomy
Welders for a shipyard in Split
Croatia, 24 positions
Updated 2 hours ago
A card holds a title, an optional supporting line, optional details and at most two actions, in that order.
- Corner radius
- 16 px
- --radius-2xl
- Padding
- 16 px, or 24 px when spacious
- --space-4, --space-6
- Fill
- #ffffff in light, #191c2c in dark
- --surface-1
- Title
- 16 px, weight 500, up to two lines
- --type-body
- Supporting text
- 14 px, 4 px below the title
- --type-small
- Details
- 13 px, tabular digits
- --type-caption
- Actions
- small buttons, 16 px below the text, 8 px apart
- --space-4
- Gap between cards
- 16 px
- --space-4
- Columns
- 1, 2 from 640 px, 3 from 1024 px
Static and clickable
A static card shows information, and its actions are buttons inside it.
A clickable card opens its item. The title is the link, and the link's target covers the whole card, so a click anywhere opens it. Buttons inside the card sit above that target and keep their own action.
States
Hover appears only with a pointer that can hover: the card turns the control gray, darker than white in the light theme and lighter than navy in the dark one. On a touch screen, where there is no hover, the gray appears when the card is pressed. Nothing lifts and nothing casts a shadow.
While content loads, show skeleton cards of the final size, so the grid does not jump when the data arrives.
- Rest
- Flat, the fill alone
- --surface-1
- Hover
- The control gray
- --surface-control
- Pressed
- The same gray, held
- Focus
- 2 px ring, 2 px outside the card
- --focus-ring
- Loading
- A skeleton of the same size and radius
- --radius-2xl
Content
Write the title as the name people use for the item. It wraps to two lines, a longer title ends in an ellipsis, and a screen reader still reads it whole.
The supporting line says what people need before they open the card, such as the country and the number of positions. Long country names wrap instead of shrinking.
Accessibility
Put cards in a list, so screen readers announce how many there are. The card's link takes its name from the title and its description from the supporting line.
Tab reaches the title link first, then each button in the card. Enter opens the item. Arrow keys do not move between cards.
In forced colors, where fills disappear, the card draws an edge in the system text color.
Permitted and not permitted
Permitted
One item per card, named by its title
Cards directly on the page background
Not permitted
A card inside a card
Group its content with space and type.
A border or ring around a card
The fill already separates it.
A shadow or a lift on hover
The fill alone shows hover and press.
A link wrapped around the whole card
Its buttons stop working, and a screen reader reads the whole card as its name.