Component recipes

Component recipe · Claude Design source

Button for Claude Design

Pill-shaped button with high-saturation gradient and colored shadow

Component anatomy

Pill-shaped button with high-saturation gradient and colored shadow

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "rounded-full",
    "transition-all duration-300",
    "hover:scale-105 hover:-translate-y-0.5",
    "active:scale-95"
  ]
}

Variants and parameters

Primary

bg-[#ff006e] text-white shadow-[0_8px_30px_rgba(255,0,110,0.4)] hover:shadow-[0_12px_40px_rgba(255,0,110,0.6)]

Gradient

bg-gradient-to-r from-[#ff006e] to-[#8338ec] text-white shadow-[0_8px_30px_rgba(131,56,236,0.4)] hover:shadow-[0_12px_40px_rgba(131,56,236,0.6)]

Blue

bg-[#3a86ff] text-white shadow-[0_8px_30px_rgba(58,134,255,0.4)] hover:shadow-[0_12px_40px_rgba(58,134,255,0.6)]

Outline

bg-transparent text-[#8338ec] border-2 border-[#8338ec]/30 hover:bg-[#8338ec]/10

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:scale-105",
    "hover:shadow-[0_12px_40px_rgba(255,0,110,0.6)]"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe