Component recipes

Component recipe · Claude Design source

Button for Claude Design

Soft Utility style button

Component anatomy

Soft Utility style button

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-lg",
    "border border-[#2d5b63]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#2d5b63] text-white

Secondary

bg-[#f4f8f6] text-[#2d5b63]

Outline

bg-transparent text-[#2d5b63]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-90"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe