Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold button with thick borders, sharp corners, and high contrast

Component anatomy

Bold button with thick borders, sharp corners, and high contrast

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "uppercase",
    "tracking-widest",
    "border-4 border-black",
    "rounded-none",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Primary

bg-black text-white

Secondary

bg-white text-black

Outline

bg-transparent text-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-red-500 hover:text-white hover:border-red-500"
  ],
  "active": [
    "active:bg-blue-600 active:border-blue-600 active:text-white"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe