Component recipes

Component recipe · Claude Design source

Button for Claude Design

Squared-off gallery button with uppercase tracked lettering, no radius and no shadow

Component anatomy

Squared-off gallery button with uppercase tracked lettering, no radius and no shadow

{
  "element": "button",
  "baseClasses": [
    "rounded-none",
    "font-light",
    "uppercase",
    "tracking-[0.2em]",
    "transition-colors duration-300"
  ]
}

Variants and parameters

Primary

bg-[#1A1A1A] text-[#FCFCFA]

Outline

bg-transparent text-[#1A1A1A] border border-[#1A1A1A]

Ghost

bg-transparent text-[#1A1A1A] underline underline-offset-8 decoration-[#A85A3A] decoration-1

Terracotta

bg-[#A85A3A] text-[#FCFCFA]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:opacity-80"
  ],
  "active": [
    "active:opacity-60"
  ],
  "focus": [
    "focus:outline-none focus-visible:ring-1 focus-visible:ring-[#1A1A1A] focus-visible:ring-offset-2"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe