Component recipe · Claude Design source
Button for Claude Design
Soft-raised button with dual-shadow neumorphic effect
Component anatomy
Soft-raised button with dual-shadow neumorphic effect
{
"element": "button",
"baseClasses": [
"font-semibold",
"bg-[#e0e5ec]",
"text-gray-700",
"rounded-xl",
"border-none",
"transition-all duration-200"
]
}Variants and parameters
Primary
shadow-[5px_5px_10px_#b8bec7,-5px_-5px_10px_#ffffff]
Pressed
shadow-[inset_5px_5px_10px_#b8bec7,inset_-5px_-5px_10px_#ffffff]
Accent
bg-[#6d5dfc] text-white shadow-[5px_5px_10px_#b8bec7,-5px_-5px_10px_#ffffff]
Flat
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:shadow-[3px_3px_6px_#b8bec7,-3px_-3px_6px_#ffffff]"
],
"active": [
"active:shadow-[inset_5px_5px_10px_#b8bec7,inset_-5px_-5px_10px_#ffffff]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe