Component recipes

Component recipe · Claude Design source

Button for Claude Design

Vintage botanical button with ornate borders, serif font, and earthy green tones

Component anatomy

Vintage botanical button with ornate borders, serif font, and earthy green tones

{
  "element": "button",
  "baseClasses": [
    "font-serif",
    "font-medium",
    "tracking-wide",
    "rounded-sm",
    "border-2",
    "transition-all duration-300"
  ]
}

Variants and parameters

Primary

bg-[#2d4a2d] text-[#faf5ef] border-[#2d4a2d]

Secondary

bg-transparent text-[#2d4a2d] border-[#2d4a2d]

Gold

bg-[#8b6914] text-[#faf5ef] border-[#8b6914]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#8b6914] hover:text-[#faf5ef]",
    "hover:border-[#8b6914]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe