Component recipes

Component recipe · Claude Design source

Button for Claude Design

Acrylic-style button with subtle shadows, rounded corners and smooth transitions

Component anatomy

Acrylic-style button with subtle shadows, rounded corners and smooth transitions

{
  "element": "button",
  "baseClasses": [
    "font-semibold",
    "rounded-md",
    "shadow-[0_1.6px_3.6px_rgba(0,0,0,0.13),0_0.3px_0.9px_rgba(0,0,0,0.1)]",
    "transition-all duration-150 ease-out"
  ]
}

Variants and parameters

Primary

bg-[#0078d4] text-white

Secondary

bg-white text-[#323130] border border-[#8a8886]

Outline

bg-transparent text-[#0078d4] border border-[#0078d4]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_3.2px_7.2px_rgba(0,0,0,0.13),0_0.6px_1.8px_rgba(0,0,0,0.1)]",
    "hover:scale-[1.01]"
  ],
  "active": [
    "active:scale-[0.99]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe