Component recipes

Component recipe · Claude Design source

Button for Claude Design

Candy-colored 3D clay button with inset highlight and outer shadow

Component anatomy

Candy-colored 3D clay button with inset highlight and outer shadow

{
  "element": "button",
  "baseClasses": [
    "font-semibold",
    "rounded-2xl",
    "border-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#f8b4d9] text-gray-800 shadow-[0_8px_16px_rgba(0,0,0,0.1),inset_0_-4px_8px_rgba(0,0,0,0.1)]

Secondary

bg-[#a7f3d0] text-gray-800 shadow-[0_8px_16px_rgba(0,0,0,0.1),inset_0_-4px_8px_rgba(0,0,0,0.1)]

Accent

bg-[#c4b5fd] text-gray-800 shadow-[0_8px_16px_rgba(0,0,0,0.1),inset_0_-4px_8px_rgba(0,0,0,0.1)]

Warm

bg-[#fcd34d] text-gray-800 shadow-[0_8px_16px_rgba(0,0,0,0.1),inset_0_-4px_8px_rgba(0,0,0,0.1)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_12px_20px_rgba(0,0,0,0.15),inset_0_-4px_8px_rgba(0,0,0,0.1)]",
    "hover:-translate-y-0.5"
  ],
  "active": [
    "active:shadow-[0_4px_8px_rgba(0,0,0,0.1),inset_0_4px_8px_rgba(0,0,0,0.15)]",
    "active:translate-y-0.5"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe