Component recipes

Component recipe · Claude Design source

Card for Claude Design

Cartoon panel card with thick outlines, flat colors and cel-shaded depth

Component anatomy

Cartoon panel card with thick outlines, flat colors and cel-shaded depth

{
  "element": "div",
  "baseClasses": [
    "bg-[#fafaf5]",
    "border-3 border-[#1a1a2e]",
    "rounded-xl",
    "overflow-hidden",
    "transition-all duration-150"
  ]
}

Variants and parameters

Default

shadow-[4px_4px_0px_0px_#1a1a2e]

Red

bg-[#e63946]/10 shadow-[4px_4px_0px_0px_#e63946]

Blue

bg-[#4ea8de]/10 shadow-[4px_4px_0px_0px_#4ea8de]

Padding

select · 3 options

Interaction states

{
  "hover": [
    "hover:shadow-[6px_6px_0px_0px_#1a1a2e]",
    "hover:translate-x-[-2px] hover:translate-y-[-2px]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe