Component recipes

Component recipe · Claude Design source

Card for Claude Design

Playful card with colorful shadows, slight rotation and vibrant hover effects

Component anatomy

Playful card with colorful shadows, slight rotation and vibrant hover effects

{
  "element": "div",
  "baseClasses": [
    "bg-white",
    "border-4 border-black",
    "rounded-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

shadow-[8px_8px_0px_0px_rgba(78,205,196,1)] rotate-[1deg]

Coral

shadow-[8px_8px_0px_0px_rgba(255,107,107,1)] rotate-[-1deg]

Sunny

bg-[#ffe66d] shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] rotate-[2deg]

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[12px_12px_0px_0px_rgba(255,107,107,1)]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe