Component recipes

Component recipe · Claude Design source

Button for Claude Design

Parchment-styled button with serif fonts, gold accents, and ornate border treatment

Component anatomy

Parchment-styled button with serif fonts, gold accents, and ornate border treatment

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "font-semibold",
    "rounded-sm",
    "border-2",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#8b1a1a] text-[#f0e6d0] border-[#c9a74e] shadow-md shadow-[#8b1a1a]/30

Secondary

bg-[#f0e6d0] text-[#8b1a1a] border-[#8b1a1a]/40

Gold

bg-[#c9a74e] text-[#8b1a1a] border-[#8b1a1a] shadow-md shadow-[#c9a74e]/30

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-lg",
    "hover:scale-105",
    "hover:brightness-110"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe