Component recipes

Component recipe · Claude Design source

Card for Claude Design

Irregular card with rotation and overlap capability

Component anatomy

Irregular card with rotation and overlap capability

{
  "element": "div",
  "baseClasses": [
    "relative",
    "bg-white",
    "border-2 border-[#0f0f0f]",
    "transition-transform duration-300"
  ]
}

Variants and parameters

Default

bg-white

Dark

bg-[#0f0f0f] text-white border-white

Accent

bg-[#ff3366] text-white border-[#0f0f0f]

Padding

select · 3 options

Rotation

select · 5 options

Layer

select · 3 options

Interaction states

{
  "hover": [
    "hover:rotate-0"
  ],
  "active": [],
  "disabled": [
    "opacity-50"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe