Component recipes

Component recipe · Claude Design source

Button for Claude Design

Violet accent CTA and frosted-glass secondary

Component anatomy

Violet accent CTA and frosted-glass secondary

{
  "element": "button",
  "baseClasses": [
    "inline-flex items-center gap-2",
    "rounded-xl font-medium",
    "transition-all duration-300 ease-out",
    "active:scale-[0.98]"
  ]
}

Variants and parameters

Accent

bg-[#7C5CFF] text-white shadow-[0_8px_30px_rgba(124,92,255,0.35)] hover:bg-[#8f72ff]

Glass

bg-white/8 backdrop-blur-xl border border-white/12 text-white hover:bg-white/12 hover:border-white/20

Ghost

bg-transparent text-white/70 hover:text-white

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": []
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe