Component recipes

Component recipe · Claude Design source

Button for Claude Design

Bold comic button with thick black outlines, bright colors and action effects

Component anatomy

Bold comic button with thick black outlines, bright colors and action effects

{
  "element": "button",
  "baseClasses": [
    "font-black",
    "uppercase",
    "tracking-wide",
    "border-4 border-[#1a1a1a]",
    "rounded-lg",
    "transition-all duration-150"
  ]
}

Variants and parameters

Primary

bg-[#ef4444] text-white shadow-[4px_4px_0px_0px_rgba(26,26,26,1)] md:shadow-[6px_6px_0px_0px_rgba(26,26,26,1)]

Secondary

bg-[#3b82f6] text-white shadow-[4px_4px_0px_0px_rgba(26,26,26,1)] md:shadow-[6px_6px_0px_0px_rgba(26,26,26,1)]

Outline

bg-[#fffef0] text-[#1a1a1a] shadow-[4px_4px_0px_0px_rgba(26,26,26,1)] md:shadow-[6px_6px_0px_0px_rgba(26,26,26,1)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[2px_2px_0px_0px_rgba(26,26,26,1)]",
    "hover:translate-x-[2px] hover:translate-y-[2px]"
  ],
  "active": [
    "active:translate-x-[4px] active:translate-y-[4px] active:shadow-none"
  ],
  "disabled": [
    "opacity-60 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe