Component recipes

Component recipe · Claude Design source

Whisper Button for Claude Design

Hairline border button with generous padding, barely-visible hover state, and slow meditative transition. Embodies Ma restraint -- the button exists through whitespace, not weight

Component anatomy

Hairline border button with generous padding, barely-visible hover state, and slow meditative transition. Embodies Ma restraint -- the button exists through whitespace, not weight

{
  "element": "button",
  "baseClasses": [
    "font-sans",
    "font-light",
    "tracking-wide",
    "rounded-lg",
    "bg-transparent",
    "border border-[#d4d4cf]/40",
    "transition-all duration-500 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#64b5f6]/90 text-white border-[#64b5f6]/30

Secondary

bg-transparent text-[#7a8a9e] border-[#d4d4cf]/40

Mint

bg-transparent text-[#98d8c8] border-[#98d8c8]/30

Whisper

bg-transparent text-[#b0b8c4] border-[#d4d4cf]/20

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:border-[#64b5f6]/40",
    "hover:text-[#64b5f6]"
  ],
  "active": [
    "active:scale-[0.99]"
  ],
  "disabled": [
    "opacity-30 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe