Component recipes

Component recipe · Claude Design source

Button for Claude Design

Technical blueprint button with white outlines on blue background

Component anatomy

Technical blueprint button with white outlines on blue background

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-medium",
    "uppercase",
    "tracking-wider",
    "rounded-none",
    "border",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#1e3a5f] text-white border-white/80 shadow-[0_0_0_1px_rgba(255,255,255,0.2)]

Secondary

bg-transparent text-white border-white/40 border-dashed

Accent

bg-[#4a90d9] text-white border-[#4a90d9] shadow-[0_0_8px_rgba(74,144,217,0.3)]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:border-white",
    "hover:shadow-[0_0_12px_rgba(255,255,255,0.2)]"
  ],
  "active": [
    "active:scale-[0.97]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe