Component recipes

Component recipe · Claude Design source

Button for Claude Design

Soft pastel button with gentle shadows, rounded edges and organic feel

Component anatomy

Soft pastel button with gentle shadows, rounded edges and organic feel

{
  "element": "button",
  "baseClasses": [
    "font-light",
    "rounded-2xl",
    "shadow-[0_4px_20px_rgba(74,111,165,0.12)]",
    "transition-all duration-400 ease-out"
  ]
}

Variants and parameters

Primary

bg-[#4a6fa5]/80 text-white

Secondary

bg-[#faf8f5] text-[#4a6fa5] border border-[#4a6fa5]/30

Outline

bg-transparent text-[#4a6fa5] border border-[#4a6fa5]/20

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:scale-[1.02]",
    "hover:shadow-[0_8px_30px_rgba(74,111,165,0.2)]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe