Component recipes

Component recipe · Claude Design source

Button for Claude Design

Glitch-style button with RGB channel split shadow and scan line texture

Component anatomy

Glitch-style button with RGB channel split shadow and scan line texture

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-bold",
    "uppercase",
    "tracking-widest",
    "rounded-none",
    "border border-[#00ffff]/30",
    "transition-all duration-100 ease-in-out",
    "relative overflow-hidden"
  ]
}

Variants and parameters

Primary

bg-[#00ffff] text-[#0a0a0a] shadow-[3px_0_#ff00ff,-3px_0_#ffff00]

Secondary

bg-[#0a0a0a] text-[#00ffff] border-[#00ffff]/50 shadow-[3px_0_#ff00ff,-3px_0_#ffff00]

Magenta

bg-[#ff00ff] text-white border-[#ff00ff]/30 shadow-[3px_0_#00ffff,-3px_0_#ffff00]

Outline

bg-transparent text-[#ffff00] border border-[#ffff00]/50 shadow-[2px_0_#ff00ff,-2px_0_#00ffff]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[6px_0_#ff00ff,-6px_0_#ffff00]"
  ],
  "active": [
    "active:translate-x-[1px] active:translate-y-[1px]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe