Component recipes

Component recipe · Claude Design source

Button for Claude Design

Hard signal button that channel-splits on hover

Component anatomy

Hard signal button that channel-splits on hover

{
  "element": "button",
  "baseClasses": [
    "inline-flex items-center justify-center gap-2",
    "rounded-none border-2",
    "font-mono font-bold uppercase tracking-[0.15em]",
    "transition-transform duration-100",
    "active:translate-y-0.5"
  ]
}

Variants and parameters

Red

bg-[#FF2E4C] text-[#0B0B0E] border-[#EDEDED]

Cyan

bg-[#00E5D8] text-[#0B0B0E] border-[#EDEDED]

Yellow

bg-[#F5E000] text-[#0B0B0E] border-[#EDEDED]

Signal

bg-transparent text-[#EDEDED] border-[#EDEDED]/40

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:[text-shadow:2px_0_#00E5D8,-2px_0_#F5E000]"
  ],
  "active": [
    "active:translate-y-0.5"
  ],
  "focus": [
    "focus:outline-none",
    "focus:border-[#00E5D8]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe