Skip to content

Cards

Cards are flexible containers that group related information and actions. They are the primary building block for lists, grids, and dashboards.

A card consists of:

  1. Container — rounded rectangle with border or shadow
  2. Media area (optional) — image, illustration, or icon at top
  3. Content area — title, description, metadata
  4. Actions (optional) — buttons or links at bottom
TypeShadowBorder
Defaultshadow-sm1px (gray-200)
Elevatedshadow-mdNone
FlatNone1px (gray-200)
Interactiveshadow-smmdHover lifts & border changes
ElementPadding
Card padding--space-4 (16px) or --space-5 (20px)
Content gap--space-3 (12px)
Actions margin-top--space-4 (16px)
  • Cards should contain one idea or one logical group of content
  • Keep the card’s content hierarchy shallow: title → description → action
  • Use consistent padding within a set of cards
  • Interactive cards should have a clear hover state
  • Avoid nesting cards inside cards