Component recipes

Component recipe · Claude Design source

Button for Claude Design

Print-inspired button with bold flat colors and slight texture feel

Component anatomy

Print-inspired button with bold flat colors and slight texture feel

{
  "element": "button",
  "baseClasses": [
    "font-mono",
    "font-bold",
    "uppercase",
    "tracking-wider",
    "rounded-sm",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#ff6b9d] text-white shadow-[3px_3px_0px_#2563eb]

Secondary

bg-[#2563eb] text-white shadow-[3px_3px_0px_#ff6b9d]

Outline

bg-transparent text-[#ff6b9d] border-2 border-[#ff6b9d] shadow-[2px_2px_0px_#2563eb]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:translate-x-[2px] hover:translate-y-[2px]",
    "hover:shadow-[1px_1px_0px_#2563eb]"
  ],
  "active": [
    "active:translate-x-[3px] active:translate-y-[3px] active:shadow-none"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe