Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold button with hard-edge shadow and hover displacement

Component anatomy

Bold button with hard-edge shadow and hover displacement

{
  "element": "button",
  "baseClasses": [
    "font-black",
    "border-2 md:border-4 border-black",
    "rounded-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#ff006e] text-white shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]

Secondary

bg-black text-white shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]

Accent

bg-[#ccff00] text-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)] md:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]

Outline

bg-transparent text-black

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-none",
    "hover:translate-x-[2px] hover:translate-y-[2px]",
    "md:hover:translate-x-1 md:hover:translate-y-1"
  ],
  "active": [
    "active:translate-x-[4px] active:translate-y-[4px]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe