Component recipes

Component recipe · Claude Design source

Button for Claude Design

Fragmented angular button with muted earth tones and geometric offset shadows

Component anatomy

Fragmented angular button with muted earth tones and geometric offset shadows

{
  "element": "button",
  "baseClasses": [
    "font-bold",
    "uppercase",
    "tracking-wider",
    "rounded-none",
    "border-2",
    "skew-x-[-3deg]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Primary

bg-[#5c4033] text-[#e8dcc8] border-[#5c4033] shadow-[3px_3px_0_#8b7355]

Secondary

bg-[#e8dcc8] text-[#5c4033] border-[#5c4033] shadow-[3px_3px_0_#3d5c6e]

Slate

bg-[#3d5c6e] text-[#e8dcc8] border-[#3d5c6e] shadow-[3px_3px_0_#5c4033]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:translate-x-[1px] hover:translate-y-[1px]",
    "hover:shadow-[1px_1px_0_#8b7355]"
  ],
  "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