Component recipes

Component recipe · Claude Design source

Button for Claude Design

Paper cutout button with random rotation transform, hard offset shadow, thick border, and mixed-font uppercase text for zine aesthetic

Component anatomy

Paper cutout button with random rotation transform, hard offset shadow, thick border, and mixed-font uppercase text for zine aesthetic

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "uppercase",
    "tracking-wider",
    "rounded-sm",
    "border-2 border-[#2d2d2d]",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Red Cut

bg-[#e74c3c] text-white shadow-[4px_4px_0px_#2d2d2d]

Blue Cut

bg-[#3498db] text-white shadow-[4px_4px_0px_#2d2d2d]

Yellow Cut

bg-[#f39c12] text-[#2d2d2d] shadow-[4px_4px_0px_#9b59b6]

Dashed

bg-[#f5f0e8] text-[#2d2d2d] border-dashed

Size

select · 3 options

Full Width

boolean

Rotation

select · 3 options

Interaction states

{
  "hover": [
    "hover:rotate-0",
    "hover:translate-x-[1px] hover:translate-y-[1px]",
    "hover:shadow-[2px_2px_0px_#2d2d2d]"
  ],
  "active": [
    "active:translate-x-[3px] active:translate-y-[3px] active:shadow-none"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe