Component recipes

Component recipe · Claude Design source

Card for Claude Design

Pixel grid card with retro game-style borders

Component anatomy

Pixel grid card with retro game-style borders

{
  "element": "div",
  "baseClasses": [
    "bg-[#e0d8b0]",
    "border-4 border-black",
    "rounded-none",
    "font-mono",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]

Accent

bg-[#9bbc0f] shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]

Dark

bg-[#0f380f] text-[#9bbc0f] shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]

Padding

select · 3 options

Interactive

boolean

Interaction states

{
  "hover": [
    "hover:shadow-none",
    "hover:translate-x-[6px] hover:translate-y-[6px]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe