Component recipes

Component recipe · Claude Design source

Button for Claude Design

Clean, warm button with natural tones, rounded corners and hygge comfort

Component anatomy

Clean, warm button with natural tones, rounded corners and hygge comfort

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-medium",
    "rounded-lg",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#5a7a6b] text-white

Secondary

bg-[#f5f0eb] text-[#3d3d3d] border border-[#d4ccc4]

Outline

bg-transparent text-[#5a7a6b] border border-[#5a7a6b]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-90",
    "hover:shadow-sm"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe