Component recipes

Component recipe · Claude Design source

Button for Claude Design

Retro pixel-style button with hard edges and 8-bit aesthetics

Component anatomy

Retro pixel-style button with hard edges and 8-bit aesthetics

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-bold",
    "border-2 border-black",
    "rounded-none",
    "uppercase",
    "tracking-wider",
    "transition-all duration-150"
  ]
}

Variants and parameters

Primary

bg-[#306230] text-[#8bac0f] shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]

Secondary

bg-[#0f380f] text-[#9bbc0f] shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]

Outline

bg-transparent text-black shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]

Size

select · 3 options

Full Width

boolean

Interaction states

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