Component recipes

Component recipe · Claude Design source

Card for Claude Design

Cream-colored card with soft shadow for dashboard data display

Component anatomy

Cream-colored card with soft shadow for dashboard data display

{
  "element": "div",
  "baseClasses": [
    "bg-[#faf8f5]",
    "rounded-2xl md:rounded-3xl",
    "shadow-xl shadow-black/8",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Statistic

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-2xl",
    "hover:-translate-y-1"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe