Component recipes

Component recipe · Claude Design source

Button for Claude Design

Urban spray-paint button with neon accents and bold uppercase text on dark surfaces

Component anatomy

Urban spray-paint button with neon accents and bold uppercase text on dark surfaces

{
  "element": "button",
  "baseClasses": [
    "font-black",
    "uppercase",
    "tracking-widest",
    "rounded-none",
    "border-2",
    "skew-x-[-2deg]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#ff2d55] text-white border-[#ff2d55] shadow-[4px_4px_0_#00e5ff]

Secondary

bg-[#1c1c1e] text-[#00e5ff] border-[#00e5ff] shadow-[4px_4px_0_#ffea00]

Accent

bg-[#ffea00] text-[#1c1c1e] border-[#1c1c1e] shadow-[4px_4px_0_#ff2d55]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:translate-x-[2px] hover:translate-y-[2px]",
    "hover:shadow-none"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe