Component recipes

Component recipe · Claude Design source

Button for Claude Design

Cyberpunk-infused Chinese button with neon accents, vermilion tones and angular design

Component anatomy

Cyberpunk-infused Chinese button with neon accents, vermilion tones and angular design

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "tracking-wider",
    "rounded-none",
    "border",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#d4553a] text-white border-[#c9a227] shadow-[0_0_16px_rgba(212,85,58,0.5)]

Secondary

bg-[#0a0a0a] text-[#00d4ff] border-[#00d4ff]/50 shadow-[0_0_12px_rgba(0,212,255,0.3)]

Outline

bg-transparent text-[#d4553a] border-[#d4553a]/50 shadow-[0_0_10px_rgba(212,85,58,0.3)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_0_24px_rgba(201,162,39,0.6)]",
    "hover:border-[#c9a227]"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe