Component recipes

Component recipe · Claude Design source

Brushstroke Badge for Claude Design

Badge with brushstroke-shaped background

Component anatomy

Badge with brushstroke-shaped background

{
  "element": "div",
  "baseClasses": [
    "inline-flex items-center justify-center",
    "rounded-[60%_40%_50%_50%/40%_60%_50%_50%]",
    "font-serif font-bold",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Warm

bg-[#e8a87c] text-[#2c3e50] shadow-[0_2px_0_#c0392b,0_4px_10px_rgba(232,168,124,0.25)]

Cool

bg-[#1abc9c] text-[#f5f0e1] shadow-[0_2px_0_#2c3e50,0_4px_10px_rgba(26,188,156,0.25)]

Earth

bg-[#2c3e50] text-[#f5f0e1] shadow-[0_2px_0_#c0392b,0_4px_10px_rgba(44,62,80,0.25)]

Size

select · 3 options

Interaction states

{
  "hover": [
    "hover:brightness-110",
    "hover:scale-105"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe