Component recipes

Component recipe · Claude Design source

Button for Claude Design

Japanese woodblock print inspired button with strong outlines and flat color fills

Component anatomy

Japanese woodblock print inspired button with strong outlines and flat color fills

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "tracking-wider",
    "rounded-sm",
    "border-2",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#d4553a] text-[#f5f0e1] border-[#1a3055] shadow-[3px_3px_0px_#1a3055]

Secondary

bg-[#1a3055] text-[#f5f0e1] border-[#c9a227] shadow-[3px_3px_0px_#c9a227]

Outline

bg-transparent text-[#1a3055] border-[#1a3055] shadow-[3px_3px_0px_#1a3055]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[4px_4px_0px_#1a3055]",
    "hover:-translate-y-0.5"
  ],
  "active": [
    "active:shadow-[1px_1px_0px_#1a3055] active:translate-y-0.5"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe