Card
A container with a white-to-#fafcff gradient, a 12px radius, a border, 24px of padding, and the card shadow. Card Header sits flush at the top with a title and optional controls.
Content sits 24px in from the edge.
Card Title Here
Body content under the header.
Card Title Here
Subtitle text here...
Body content under the header.
Playground
Card Title Here
Body content under the header.
Variants and states
| Property | Options | Notes |
|---|---|---|
| padding | 24px | Radius 12px, border, gradient, and the card shadow. Drop padding and overflow-hidden when using Card Header flush to the edges. |
| Card Header | on / off | Border fill, bottom border. Title is 14px medium. Optional action links and icons with 24px gaps. |
| subtitle | hidden / shown | Hidden by default. When shown, 12px medium muted under the title with a 3px gap. |
| action links | comma-separated labels | Link-style buttons in the header controls. |
| icons | 0–4 | Icon-only link buttons after the text links. |
Anatomy
- Card
- Gradient surface, 12px radius, border, 24px padding, card shadow.
- Card Header
- Border fill, bottom border, 14px medium title on the left. Optional 12px medium muted subtitle (hidden by default). Optional link and icon controls on the right.
Accessibility
- The card is a container. It does not add a role.
- Name the content inside the card.
- Icon-only header controls need an aria-label.