Component recipes

Component recipe · Claude Design source

Button for Claude Design

Geometric button with primary colors, sharp edges and sans-serif typography

Component anatomy

Geometric button with primary colors, sharp edges and sans-serif typography

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

Variants and parameters

Primary

bg-[#dd0000] text-white

Secondary

bg-black text-white

Outline

bg-transparent text-black

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-80"
  ],
  "active": [
    "active:opacity-70"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe