Component recipes

Component recipe · Claude Design source

Button for Claude Design

Neon gradient button with glow effect and thick border

Component anatomy

Neon gradient button with glow effect and thick border

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "rounded-xl",
    "transition-all duration-300"
  ]
}

Variants and parameters

Primary

bg-gradient-to-r from-cyan-400 to-pink-500 text-white border-2 border-white/20 shadow-[0_0_20px_rgba(236,72,153,0.5)]

Secondary

bg-transparent text-white border-2 border-cyan-400

Gradient

bg-gradient-to-r from-cyan-400 via-green-400 to-yellow-400 text-black border-2 border-pink-400 shadow-[0_0_20px_rgba(34,211,238,0.4)]

Icon

w-12 h-12 bg-gradient-to-br from-purple-500 to-pink-500 border-2 border-yellow-400 shadow-[0_0_15px_rgba(250,204,21,0.4)] flex items-center justify-center

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_0_30px_rgba(236,72,153,0.7)]",
    "hover:scale-105"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe