Component recipes

Component recipe · Claude Design source

Holographic Button for Claude Design

Cockpit control button with vertical scan line texture overlay, multi-layer neon glow, and HUD-style border

Component anatomy

Cockpit control button with vertical scan line texture overlay, multi-layer neon glow, and HUD-style border

{
  "element": "button",
  "baseClasses": [
    "relative overflow-hidden",
    "font-sans",
    "font-bold",
    "uppercase",
    "tracking-widest",
    "border",
    "border-[#06d6a0]/50",
    "transition-all duration-300 ease-out"
  ]
}

Variants and parameters

Primary

bg-[#7c3aed] text-white shadow-[0_0_10px_rgba(124,58,237,0.3),0_0_20px_rgba(124,58,237,0.15)]

Secondary

bg-transparent text-[#06d6a0] border-[#06d6a0] shadow-[0_0_10px_rgba(6,214,160,0.3),0_0_20px_rgba(6,214,160,0.15)]

Accent

bg-[#ff006e] text-white border-[#ff006e]/60 shadow-[0_0_10px_rgba(255,0,110,0.3),0_0_20px_rgba(255,0,110,0.15)]

Holographic

bg-gradient-to-r from-[#7c3aed]/80 via-[#38bdf8]/80 to-[#06d6a0]/80 text-white border-[#06d6a0]/40 shadow-[0_0_15px_rgba(124,58,237,0.3),0_0_30px_rgba(6,214,160,0.1)]

Size

select · 3 options

Full Width

boolean

Scan Lines

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_0_20px_rgba(124,58,237,0.5),0_0_40px_rgba(124,58,237,0.2)]",
    "hover:border-[#06d6a0]"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe