Component recipes

Component recipe · Claude Design source

Button for Claude Design

Pure black-and-white button with sharp edges

Component anatomy

Pure black-and-white button with sharp edges

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

Variants and parameters

Primary

bg-[#111111] text-[#fafafa] border border-[#111111]

Outline

bg-transparent text-[#111111] border border-[#111111]

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe