Component recipes

Component recipe · Claude Design source

Button for Claude Design

Industrial mecha-style button with angular cuts, warning accents, and military feel

Component anatomy

Industrial mecha-style button with angular cuts, warning accents, and military feel

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-bold",
    "uppercase",
    "tracking-widest",
    "rounded-none",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#fbbf24] text-[#1a2744] border-2 border-[#1a2744] shadow-[4px_4px_0px_#1a2744]

Secondary

bg-[#4a5c3a] text-[#fbbf24] border-2 border-[#fbbf24]/50

Outline

bg-transparent text-[#ef4444] border-2 border-[#ef4444] shadow-[3px_3px_0px_#ef4444]

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe