Component recipes

Component recipe · Claude Design source

Button for Claude Design

Stripe-inspired button with rounded-full, gradient, refined shadow and white text

Component anatomy

Stripe-inspired button with rounded-full, gradient, refined shadow and white text

{
  "element": "button",
  "baseClasses": [
    "font-semibold",
    "rounded-full",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-gradient-to-r from-[#635BFF] to-[#7A73FF] text-white shadow-[0_4px_14px_rgba(99,91,255,0.4)]

Secondary

bg-white text-[#635BFF] shadow-md border border-gray-200

Outline

bg-transparent text-[#635BFF] border-2 border-[#635BFF]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_6px_20px_rgba(99,91,255,0.5)]",
    "hover:brightness-110"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe