Component recipes

Component recipe · Claude Design source

Button for Claude Design

Colorful brutalist button with thick borders, bright colors and fun hover effects

Component anatomy

Colorful brutalist button with thick borders, bright colors and fun hover effects

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

Variants and parameters

Primary

bg-[#ff6b6b] text-white shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] rotate-[-1deg]

Secondary

bg-[#4ecdc4] text-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)] rotate-[1deg]

Outline

bg-[#ffe66d] text-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-none",
    "hover:translate-x-[3px] hover:translate-y-[3px]",
    "hover:scale-105"
  ],
  "active": [
    "active:translate-x-[6px] active:translate-y-[6px]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed rotate-0"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe