Component recipes

Component recipe · Claude Design source

Button for Claude Design

RPG menu button with beveled borders, gradient background and inset shadow depth

Component anatomy

RPG menu button with beveled borders, gradient background and inset shadow depth

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "tracking-wide",
    "rounded-md",
    "border-2",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-gradient-to-b from-blue-700 to-blue-900 text-[#f0f9ff] border-blue-500 shadow-[inset_0_1px_0_rgba(255,255,255,0.2),0_2px_4px_rgba(0,0,0,0.5)]

Gold

bg-gradient-to-b from-yellow-500 to-yellow-700 text-slate-900 border-yellow-400 shadow-[inset_0_1px_0_rgba(255,255,255,0.3),0_2px_4px_rgba(0,0,0,0.5)]

Outline

bg-slate-900/80 text-blue-300 border-blue-400/60 shadow-[0_2px_4px_rgba(0,0,0,0.3)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:brightness-110",
    "hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.3),0_4px_8px_rgba(0,0,0,0.4)]"
  ],
  "active": [
    "active:shadow-[inset_0_2px_4px_rgba(0,0,0,0.4)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe