Component recipe · Claude Design source
Pixel Input for Claude Design
Pixel-art game input with 2px stepped border, monospace font, pixel-aligned focus shadow, and blinking gold caret
Component anatomy
Pixel-art game input with 2px stepped border, monospace font, pixel-aligned focus shadow, and blinking gold caret
{
"element": "input",
"baseClasses": [
"w-full",
"bg-[#1a1040]",
"border-2 border-[#4a90d9]",
"text-[#e0e0ff]",
"placeholder:text-[#e0e0ff]/40",
"placeholder:uppercase",
"font-mono",
"caret-[#ffd93d]",
"focus:outline-none",
"transition-all duration-150 ease-linear"
]
}Variants and parameters
Default
Gold
border-[#ffd93d] placeholder:text-[#ffd93d]/40
Red
border-[#ff6b6b] placeholder:text-[#ff6b6b]/40
Size
select · 3 options
Interaction states
{
"focus": [
"focus:border-[#ffd93d]",
"focus:shadow-[2px_2px_0px_#4a90d9]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe