DesignCard

Container card component with surface-200 background, 18px border radius, 6px padding, and elevation-100 shadow

Card with Header Components

Use DesignCardHeader, DesignCardTitle, and DesignCardDescription for structured card layouts

Card with Title

Card with header and title

Props:
{}
Card Title

This is the card content area with proper spacing and structure.

Card with Title & Description

Complete card header with description

Props:
{}
Analytics Overview
View your performance metrics and insights
Total Views1,234
Engagement5.6%

Card with Footer

Card with footer actions

Props:
{}
Complete Task
Review and confirm your action

Are you sure you want to proceed with this action?

Full Card Structure

All components combined

Props:
{}
Project Settings
Manage your project configuration
Project Name
My Awesome Project
Status
Active

Basic Card Usage

Basic Card

Default card with surface-200 background

Props:
{}

Card Content

This is the inner content area without additional background

Card with Multiple Items

Stack multiple items with gap

Props:
{ className: "space-y-2" }
Item 1
Item 2
Item 3

Card as Button Container

Wrap buttons in a card layout

Props:
{}

Card with Custom Padding

Override padding with className

Props:
{ className: "p-4" }
Larger padding (16px) for more spacious content

Important Design Guideline

Content containers inside DesignCard should NOT have background colors.

The card itself provides the visual container with surface-200 background. Adding additional background colors to inner content creates visual noise and breaks the design hierarchy.

Correct:
<DesignCard> <div className="p-4">{/* No bg-* class */} Content here </div> </DesignCard>
Incorrect:
<DesignCard> <div className="p-4 bg-gray-100">{/* Don't add bg */} Content here </div> </DesignCard>

Design Specifications

DesignCard
  • • Border radius: 18px
  • • Background: surface-200
  • • Shadow: elevation-100
  • • No default padding
DesignCardHeader
  • • Layout: flex flex-col
  • • Gap: 12px (gap-3)
  • • Padding: 24px 24px 16px 24px
DesignCardTitle
  • • Typography: text-h5
  • • Color: font-primary
DesignCardDescription
  • • Typography: text-body
  • • Color: font-secondary
DesignCardContent
  • • Padding: 0 24px 24px 24px
  • • Main content area
DesignCardFooter
  • • Layout: flex items-center
  • • Gap: 8px (gap-2)
  • • Padding: 16px 24px 24px 24px
  • • Use Separator for divider line
Usage Guidelines
  • • Container for grouped content
  • • Structured layouts with headers
  • • Forms and settings panels
  • • Confirmation dialogs
Content Guidelines
  • • NO background on inner containers
  • • Use components for structure
  • • Override padding via className
  • • Transparent content areas only