Component recipes

Component recipe · Claude Design source

Button for Claude Design

Vintage button with serif font, warm tones, and wide letter-spacing

Component anatomy

Vintage button with serif font, warm tones, and wide letter-spacing

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "uppercase",
    "tracking-widest",
    "border-2 border-[#8b4513]",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Primary

bg-[#8b4513] text-[#f5e6d3]

Secondary

bg-transparent text-[#8b4513]

Outline

bg-[#f5e6d3] text-[#8b4513] border-4 border-double border-[#8b4513] tracking-[0.3em]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#5c2e0a] hover:text-[#f5e6d3]"
  ],
  "active": [
    "active:bg-[#4a2408]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe