Component recipe · Claude Design source
Button for Claude Design
Soft button with colored shadow, rounded corners, and hover lift
Component anatomy
Soft button with colored shadow, rounded corners, and hover lift
{
"element": "button",
"baseClasses": [
"font-medium",
"border-0",
"rounded-2xl",
"transition-all duration-200"
]
}Variants and parameters
Primary
bg-indigo-500 text-white shadow-lg shadow-indigo-500/30
Secondary
bg-white text-gray-700 shadow-lg shadow-gray-200/50
Outline
bg-indigo-50 text-indigo-500
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:shadow-xl hover:shadow-indigo-500/40",
"hover:-translate-y-0.5"
],
"active": [
"active:scale-[0.98]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe