Component recipes

Component recipe · Claude Design source

Button for Claude Design

Cartoon-style button with bold outlines, bright fills and comic book energy

Component anatomy

Cartoon-style button with bold outlines, bright fills and comic book energy

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "rounded-xl",
    "border-3 border-[#1a1a2e]",
    "transition-all duration-150"
  ]
}

Variants and parameters

Primary

bg-[#e63946] text-white shadow-[3px_3px_0px_0px_#1a1a2e]

Secondary

bg-[#4ea8de] text-white shadow-[3px_3px_0px_0px_#1a1a2e]

Outline

bg-[#fafaf5] text-[#1a1a2e] shadow-[3px_3px_0px_0px_#1a1a2e]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[5px_5px_0px_0px_#1a1a2e]",
    "hover:translate-x-[-2px] hover:translate-y-[-2px]"
  ],
  "active": [
    "active:translate-x-[2px] active:translate-y-[2px] active:shadow-[1px_1px_0px_0px_#1a1a2e]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed grayscale"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe