Component recipes

Component recipe · Claude Design source

Button for Claude Design

Dark gothic button with pastel accents, bold contrast, and moody atmosphere

Component anatomy

Dark gothic button with pastel accents, bold contrast, and moody atmosphere

{
  "element": "button",
  "baseClasses": [
    "font-semibold",
    "rounded-lg",
    "border-2",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Primary

bg-[#2d1b3d] text-[#d4a5e3] border-[#d4a5e3]/50 shadow-md shadow-[#d4a5e3]/20

Secondary

bg-[#1a1225] text-[#7ec8c8] border-[#7ec8c8]/40

Pastel

bg-[#d4a5e3]/20 text-[#d4a5e3] border-[#d4a5e3]/30

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "hover": [
    "hover:shadow-lg hover:shadow-[#d4a5e3]/30",
    "hover:scale-105",
    "hover:brightness-110"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe