Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold typographic button with sharp edges, no shadows, and edge-to-edge gap-0 placement

Component anatomy

Bold typographic button with sharp edges, no shadows, and edge-to-edge gap-0 placement

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-black",
    "uppercase",
    "tracking-widest",
    "rounded-none",
    "transition-all duration-100 ease-out"
  ]
}

Variants and parameters

Black

bg-[#000000] text-[#ffffff] border-2 border-[#000000]

Red

bg-[#ff0000] text-[#ffffff] border-2 border-[#ff0000]

Blue

bg-[#0057b8] text-[#ffffff] border-2 border-[#0057b8]

Yellow

bg-[#ffcc00] text-[#000000] border-2 border-[#ffcc00]

Outline

bg-transparent text-[#000000] border-2 border-[#000000]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#ff0000] hover:text-[#ffffff]",
    "hover:border-[#ff0000]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe