Component recipes

Component recipe · Claude Design source

Card for Claude Design

Clean card with geometric accent and retro cream background

Component anatomy

Clean card with geometric accent and retro cream background

{
  "element": "div",
  "baseClasses": [
    "bg-[#f5f0e1]",
    "rounded-sm",
    "shadow-sm",
    "border-l-4 border-l-[#e8572a]",
    "transition-shadow duration-200"
  ]
}

Variants and parameters

Default

Teal Accent

border-l-[#2a6e5e]

Padding

select · 3 options

Interaction states

{
  "hover": [
    "hover:shadow-md"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe