Component recipes

Component recipe · Claude Design source

Button for Claude Design

Swiss-style button with strict alignment, black/white/red palette and minimal rounding

Component anatomy

Swiss-style button with strict alignment, black/white/red palette and minimal rounding

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-bold",
    "uppercase",
    "tracking-widest",
    "rounded-sm",
    "transition-all duration-150"
  ]
}

Variants and parameters

Primary

bg-black text-white

Secondary

bg-[#e30613] text-white

Outline

bg-transparent text-black border-2 border-black

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#e30613] hover:text-white"
  ],
  "active": [
    "active:opacity-80"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe