Component recipes

Component recipe · Claude Design source

Card for Claude Design

Flat card with thin border and no shadow

Component anatomy

Flat card with thin border and no shadow

{
  "element": "div",
  "baseClasses": [
    "bg-white",
    "border-2 border-black",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Default

Inverted

bg-black text-white border-black

Accent

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

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:bg-black hover:text-white"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe