Component recipes

Component recipe · Claude Design source

Button for Claude Design

Restrained academic action button with ink background, small radius, and quiet hover

Component anatomy

Restrained academic action button with ink background, small radius, and quiet hover

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-md",
    "transition-colors duration-150"
  ]
}

Variants and parameters

Primary

bg-[#1F2933] text-white

Secondary

bg-white text-[#1F2933] border border-[#E5E7EB]

Link

bg-transparent text-[#2A7AE2] underline underline-offset-4 decoration-[#2A7AE2]/40

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#111827]"
  ],
  "active": [
    "active:bg-[#0B1220]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe