Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold comic-book button with thick black border, flat color fill and hard offset shadow

Component anatomy

Bold comic-book button with thick black border, flat color fill and hard offset shadow

{
  "element": "button",
  "baseClasses": [
    "font-black",
    "uppercase",
    "tracking-wider",
    "border-4 border-black",
    "rounded-lg",
    "transition-all duration-150"
  ]
}

Variants and parameters

Primary

bg-[#ffdd00] text-black shadow-[4px_4px_0_#000]

Secondary

bg-[#ff69b4] text-white shadow-[4px_4px_0_#000]

Outline

bg-white text-black shadow-[4px_4px_0_#000]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[6px_6px_0_#000]",
    "hover:-translate-x-0.5 hover:-translate-y-0.5"
  ],
  "active": [
    "active:shadow-[2px_2px_0_#000]",
    "active:translate-x-0.5 active:translate-y-0.5"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe