Component recipes

Component recipe · Claude Design source

Button for Claude Design

Mono uppercase label button with sharp corners; hover flips to international orange

Component anatomy

Mono uppercase label button with sharp corners; hover flips to international orange

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "uppercase",
    "tracking-widest",
    "rounded-none",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Primary

bg-[#0A0A0A] text-[#FAFAF8] border border-[#0A0A0A]

Outline

bg-transparent text-[#0A0A0A] border border-[#0A0A0A]

Accent

bg-[#FF4D00] text-[#FAFAF8] border border-[#FF4D00]

Ghost

bg-transparent text-[#0A0A0A] border border-transparent underline underline-offset-8 decoration-2

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#FF4D00]",
    "hover:border-[#FF4D00]",
    "hover:text-[#FAFAF8]"
  ],
  "active": [
    "active:bg-[#E64500]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe