Component recipe · Claude Design source
Button for Claude Design
Hand-drawn button with dashed border, marker-color shadow, and slight tilt on hover
Component anatomy
Hand-drawn button with dashed border, marker-color shadow, and slight tilt on hover
{
"element": "button",
"baseClasses": [
"font-sans",
"font-semibold",
"tracking-wide",
"rounded-sm",
"border-2 border-dashed",
"transition-all duration-200 ease-in-out"
]
}Variants and parameters
Ink
bg-[#2c2c2c] text-[#fffef5] border-[#2c2c2c] shadow-[3px_3px_0px_#ff6b6b]
Red Marker
bg-[#ff6b6b] text-[#fffef5] border-[#2c2c2c] shadow-[3px_3px_0px_#4ecdc4]
Teal Marker
bg-[#4ecdc4] text-[#fffef5] border-[#2c2c2c] shadow-[3px_3px_0px_#ffd93d]
Sketch
bg-transparent text-[#2c2c2c] border-[#2c2c2c] shadow-[2px_2px_0px_#ffd93d]
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:translate-x-[1px] hover:translate-y-[1px]",
"hover:shadow-[2px_2px_0px_#ff6b6b]",
"hover:rotate-[-0.5deg]"
],
"active": [
"active:translate-x-[2px] active:translate-y-[2px] active:shadow-none"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe