Component recipes

Component recipe · Claude Design source

Button for Claude Design

Soft pill-shaped button with pink tones, colored glow shadow, and scale hover

Component anatomy

Soft pill-shaped button with pink tones, colored glow shadow, and scale hover

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-medium",
    "rounded-full",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Sakura

bg-[#ffb7c5] text-white shadow-[0_4px_15px_#ffb7c560]

Lavender

bg-[#c4b5fd] text-white shadow-[0_4px_15px_#c4b5fd60]

Gold

bg-[#fde68a] text-[#4a5568] shadow-[0_4px_15px_#fde68a60]

Rose

bg-[#fecdd3] text-[#4a5568] shadow-[0_2px_10px_#fecdd320]

Outline

bg-transparent text-[#ffb7c5] border-2 border-[#ffb7c5]/40

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:scale-105",
    "hover:shadow-[0_6px_20px_#ffb7c580]"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe