Component recipes

Component recipe · Claude Design source

Button for Claude Design

Realistic 3D button with gradient surface, inset shadows and tactile depth

Component anatomy

Realistic 3D button with gradient surface, inset shadows and tactile depth

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "rounded-lg",
    "border border-[#a89880]",
    "shadow-[0_3px_6px_rgba(0,0,0,0.16),0_3px_6px_rgba(0,0,0,0.23)]",
    "transition-all duration-200 ease-out"
  ]
}

Variants and parameters

Primary

bg-gradient-to-b from-[#b8a88a] to-[#8b7355] text-white

Secondary

bg-gradient-to-b from-[#e8dfd1] to-[#d4c4a8] text-[#3a2f22]

Outline

bg-gradient-to-b from-white to-[#f5efe6] text-[#3a2f22] border-[#c9b896]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:-translate-y-px",
    "hover:shadow-[0_6px_12px_rgba(0,0,0,0.2),0_4px_6px_rgba(0,0,0,0.18)]"
  ],
  "active": [
    "active:translate-y-px",
    "active:shadow-[inset_0_2px_4px_rgba(0,0,0,0.2)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe