Component recipe · Claude Design source
Button for Claude Design
Hand-drawn feel button with dashed borders, pencil tones and subtle shadows
Component anatomy
Hand-drawn feel button with dashed borders, pencil tones and subtle shadows
{
"element": "button",
"baseClasses": [
"font-semibold",
"border-2 border-dashed border-[#2c2c2c]",
"rounded-sm",
"transition-opacity duration-200"
]
}Variants and parameters
Primary
bg-[#2c2c2c] text-[#f5f0e8] shadow-[2px_2px_0px_rgba(44,44,44,0.3)]
Secondary
bg-transparent text-[#2c2c2c]
Outline
bg-[#f5f0e8] text-[#2c2c2c] shadow-[1px_1px_0px_rgba(44,44,44,0.3)]
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:opacity-90"
],
"active": [
"active:opacity-80"
],
"disabled": [
"opacity-40 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe