Component recipes

Component recipe · Claude Design source

Pixel Badge for Claude Design

Small pixel-art badge/tag with hard borders

Component anatomy

Small pixel-art badge/tag with hard borders

{
  "element": "div",
  "baseClasses": [
    "inline-flex items-center justify-center",
    "font-mono",
    "font-bold",
    "uppercase",
    "tracking-wider",
    "border-2",
    "bg-[#1a1040]",
    "outline outline-1 outline-offset-1 outline-current/30"
  ]
}

Variants and parameters

Blue

text-[#4a90d9] border-[#4a90d9] shadow-[2px_2px_0px_#1a1040]

Red

text-[#ff6b6b] border-[#ff6b6b] shadow-[2px_2px_0px_#1a1040]

Yellow

text-[#ffd93d] border-[#ffd93d] shadow-[2px_2px_0px_#1a1040]

Green

text-[#50c878] border-[#50c878] shadow-[2px_2px_0px_#1a1040]

Size

select · 3 options

Interaction states

{}

Related base style

Fixed-version source · reviewed before publishingNext component recipe