Component recipes

Component recipe · Claude Design source

Button for Claude Design

Restrained dark button with subtle hover

Component anatomy

Restrained dark button with subtle hover

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "transition-colors duration-200",
    "text-sm"
  ]
}

Variants and parameters

Primary

bg-[#3a3a3c] text-white/90 hover:bg-[#48484a]

Accent

bg-[#0a84ff] text-white hover:bg-[#0a84ff]/85

Outline

bg-transparent text-white/70 border border-white/12 hover:bg-white/5 hover:text-white/90

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#48484a]"
  ],
  "active": [
    "active:opacity-80"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe