Component recipes

Component recipe · Claude Design source

Button for Claude Design

Dark Victorian button with lace-inspired borders, ornate serif text and elegant hover effects

Component anatomy

Dark Victorian button with lace-inspired borders, ornate serif text and elegant hover effects

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

Variants and parameters

Primary

bg-[#4a1a4a] text-[#e5e5e5] border-[#8b1a2a]/60 shadow-[0_2px_8px_rgba(75,26,75,0.5)]

Secondary

bg-[#0a0a0a] text-[#e5e5e5] border-[#4a1a4a]/60 shadow-[0_2px_8px_rgba(10,10,10,0.5)]

Outline

bg-transparent text-[#8b1a2a] border-[#8b1a2a]/50 shadow-[0_1px_4px_rgba(139,26,42,0.3)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_4px_16px_rgba(139,26,42,0.5)]",
    "hover:border-[#8b1a2a]"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe