Component recipes

Component recipe · Claude Design source

Button for Claude Design

Elegant Art Deco button with gold accents, serif font, and wide tracking

Component anatomy

Elegant Art Deco button with gold accents, serif font, and wide tracking

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "font-semibold",
    "uppercase",
    "tracking-[0.3em]",
    "border border-[#D4AF37]",
    "transition-all duration-300"
  ]
}

Variants and parameters

Primary

bg-transparent text-[#D4AF37] border-2 border-[#D4AF37]

Secondary

bg-[#D4AF37] text-gray-900 shadow-[0_0_20px_rgba(212,175,55,0.3)]

Outline

bg-transparent text-[#D4AF37]/70 border border-[#D4AF37]/50

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#D4AF37] hover:text-gray-900",
    "hover:shadow-[0_0_30px_rgba(212,175,55,0.5)]"
  ],
  "active": [
    "active:bg-[#c9a227]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe