Component recipes

Component recipe · Claude Design source

Button for Claude Design

Hard-edged constructivist block button with mechanical press

Component anatomy

Hard-edged constructivist block button with mechanical press

{
  "element": "button",
  "baseClasses": [
    "inline-flex items-center justify-center gap-2",
    "uppercase font-extrabold tracking-[0.12em]",
    "border-2 border-[#17130E]",
    "rounded-none",
    "transition-colors duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
  ]
}

Variants and parameters

Red

bg-[#E0231B] text-[#EFE9DC]

Ink

bg-[#17130E] text-[#EFE9DC]

Outline

bg-transparent text-[#17130E]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:bg-[#17130E]",
    "hover:text-[#EFE9DC]"
  ],
  "active": [
    "active:scale-[0.98]"
  ],
  "focus": [
    "focus:outline-none",
    "focus:shadow-[0_0_0_3px_#E0231B]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe