Component recipes

Component recipe · Claude Design source

Card for Claude Design

Bold card with thick border, sharp corners, and offset shadow

Component anatomy

Bold card with thick border, sharp corners, and offset shadow

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

Variants and parameters

Default

shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]

Accent

shadow-[4px_4px_0px_0px_rgba(255,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(255,0,0,1)]

Inverted

bg-black text-white border-white shadow-[4px_4px_0px_0px_rgba(255,255,255,1)] md:shadow-[8px_8px_0px_0px_rgba(255,255,255,1)]

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[6px_6px_0px_0px_rgba(0,0,255,1)]",
    "md:hover:shadow-[10px_10px_0px_0px_rgba(0,0,255,1)]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe