Component recipes

Component recipe · Claude Design source

Card for Claude Design

Layered paper cutout card with random rotation, colored hard offset shadow, washi tape decoration pseudo-element, and torn-edge clip-path option

Component anatomy

Layered paper cutout card with random rotation, colored hard offset shadow, washi tape decoration pseudo-element, and torn-edge clip-path option

{
  "element": "div",
  "baseClasses": [
    "bg-[#f5f0e8]",
    "rounded-none",
    "border-2 border-[#2d2d2d]",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Default

shadow-[5px_5px_0px_#2d2d2d]

Red

border-[#e74c3c] shadow-[5px_5px_0px_#e74c3c]

Blue

border-[#3498db] shadow-[5px_5px_0px_#3498db]

Yellow

border-[#f39c12] shadow-[5px_5px_0px_#f39c12]

Purple

border-[#9b59b6] shadow-[5px_5px_0px_#9b59b6]

Padding

select · 3 options

Interactive

boolean

Rotation

select · 4 options

Interaction states

{
  "hover": [
    "hover:-translate-y-1",
    "hover:shadow-[7px_7px_0px_#2d2d2d]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe