Component recipes

Component recipe · Claude Design source

Card for Claude Design

Soft card with large shadow, no border, and rounded corners

Component anatomy

Soft card with large shadow, no border, and rounded corners

{
  "element": "div",
  "baseClasses": [
    "bg-white",
    "border-0",
    "rounded-3xl",
    "shadow-xl shadow-gray-200/50",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Soft Background

bg-slate-50

Tinted

bg-indigo-50 shadow-xl shadow-indigo-100/50

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-2xl hover:shadow-gray-200/60"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe