Component recipes

Component recipe · Claude Design source

Button for Claude Design

Warm countryside button with soft serif text, rounded edges, and earthy tones

Component anatomy

Warm countryside button with soft serif text, rounded edges, and earthy tones

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "rounded-full",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#5a8f5a] text-white shadow-md

Secondary

bg-[#f5d75f]/20 text-[#8b7355] border border-[#8b7355]/40

Outline

bg-transparent text-[#5a8f5a] border-2 border-[#5a8f5a]/50

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-lg",
    "hover:scale-105"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe