Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold Memphis button with thick border, hard shadow, and bright colors

Component anatomy

Bold Memphis button with thick border, hard shadow, and bright colors

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

Variants and parameters

Primary

bg-yellow-400 text-black shadow-[6px_6px_0px_#000]

Secondary

bg-[#ff6b6b] text-white shadow-[6px_6px_0px_#000]

Outline

bg-white text-black shadow-[6px_6px_0px_#48dbfb]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[3px_3px_0px_#000]",
    "hover:translate-x-[3px] hover:translate-y-[3px]"
  ],
  "active": [
    "active:shadow-none active:translate-x-[6px] active:translate-y-[6px]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe