Component recipes

Component recipe · Claude Design source

Button for Claude Design

Peaceful button with muted green tones and subtle borders

Component anatomy

Peaceful button with muted green tones and subtle borders

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "tracking-wide",
    "rounded-sm",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#4a5548] text-[#f5f3ee] border border-[#4a5548]

Ghost

bg-transparent text-[#4a5548] border border-[#c4bba8]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#3a4438]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe