Component recipes

Component recipe · Claude Design source

Button for Claude Design

Softer brutalist button with lighter shadows, pastel colors and reduced contrast

Component anatomy

Softer brutalist button with lighter shadows, pastel colors and reduced contrast

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "border-2 border-gray-800",
    "rounded-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-pink-400 text-white shadow-[4px_4px_0px_0px_rgba(0,0,0,0.2)] md:shadow-[6px_6px_0px_0px_rgba(0,0,0,0.2)]

Secondary

bg-gray-50 text-gray-800 shadow-[4px_4px_0px_0px_rgba(0,0,0,0.15)] md:shadow-[6px_6px_0px_0px_rgba(0,0,0,0.15)]

Outline

bg-transparent text-gray-800 shadow-[4px_4px_0px_0px_rgba(0,0,0,0.1)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-none",
    "hover:translate-x-[2px] hover:translate-y-[2px]"
  ],
  "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