Component recipes

Component recipe · Claude Design source

Button for Claude Design

Pigment-fill button with radial gradient simulating watercolor pooling, soft blur shadows, and organic rounded corners

Component anatomy

Pigment-fill button with radial gradient simulating watercolor pooling, soft blur shadows, and organic rounded corners

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "font-medium",
    "tracking-wide",
    "rounded-2xl",
    "transition-all duration-500 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#d4a0a0] text-[#5a3e3e] shadow-[0_4px_20px_rgba(212,160,160,0.25),inset_0_1px_0_rgba(255,255,255,0.15)]

Secondary

bg-[#7bb8d4]/70 text-[#2a4a5a] shadow-[0_4px_20px_rgba(123,184,212,0.20)]

Outline

bg-transparent text-[#d4a0a0] border border-[#d4a0a0]/25

Sage

bg-[#8cc5a8]/70 text-[#2a4a3a] shadow-[0_4px_20px_rgba(140,197,168,0.20)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:scale-[1.02]",
    "hover:shadow-[0_6px_28px_rgba(212,160,160,0.30)]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-35 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe