Component recipes

Component recipe · Claude Design source

Button for Claude Design

Earthy terracotta action button with warm shadow, rounded-lg, and a clay-like hover deepen

Component anatomy

Earthy terracotta action button with warm shadow, rounded-lg, and a clay-like hover deepen

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#C86A4A] text-white shadow-[0_2px_12px_-3px_rgba(200,106,74,0.3)]

Secondary

bg-transparent text-[#2D2A24] border border-[#D4BFA5]

Ghost

bg-transparent text-[#2D2A24]/65 hover:bg-[#E8DED1]/60

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#B55A3A]",
    "hover:translate-y-[-1px]"
  ],
  "active": [
    "active:bg-[#A04A2A]",
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe