Component recipes

Component recipe · Claude Design source

Card for Claude Design

Geometric card with strict primary color accents and no shadows

Component anatomy

Geometric card with strict primary color accents and no shadows

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

Variants and parameters

Default

Red Accent

border-l-8 border-l-[#dd0000]

Blue Accent

border-l-8 border-l-[#0057b8]

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:opacity-90"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe