Component recipes

Component recipe · Claude Design source

Card for Claude Design

Boxed constructivist card with a thick top color rule

Component anatomy

Boxed constructivist card with a thick top color rule

{
  "element": "div",
  "baseClasses": [
    "relative bg-[#EFE9DC]",
    "border-2 border-[#17130E]",
    "rounded-none"
  ]
}

Variants and parameters

Red rule

border-t-[6px] border-t-[#E0231B]

Blue rule

border-t-[6px] border-t-[#1C4A87]

Yellow rule

border-t-[6px] border-t-[#F4B301]

Padding

select · 3 options

Interaction states

{
  "hover": [
    "hover:-translate-y-0.5"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe