Component recipes

Component recipe · Claude Design source

Button for Claude Design

Calligraphic button with ink-black tones and wide tracking

Component anatomy

Calligraphic button with ink-black tones and wide tracking

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-light",
    "tracking-[0.2em]",
    "rounded-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#2c2c2c] text-[#f8f5f0] border border-[#2c2c2c]

Ghost

bg-transparent text-[#2c2c2c] border-b border-[#2c2c2c]/30

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#1a1a1a]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe