Component recipe · Claude Design source
Input for Claude Design
Cartoon-outlined input with bold border, bright focus and cel-shaded style
Component anatomy
Cartoon-outlined input with bold border, bright focus and cel-shaded style
{
"element": "input",
"baseClasses": [
"w-full",
"bg-[#fafaf5]",
"border-3 border-[#1a1a2e]",
"rounded-xl",
"text-[#1a1a2e]",
"font-medium",
"placeholder:text-[#1a1a2e]/40",
"focus:outline-none",
"transition-all duration-150"
]
}Variants and parameters
Default
shadow-[2px_2px_0px_0px_#1a1a2e]
Red
border-[#e63946] shadow-[2px_2px_0px_0px_#e63946]
Size
select · 3 options
Interaction states
{
"focus": [
"focus:shadow-[3px_3px_0px_0px_#4ea8de]",
"focus:border-[#4ea8de]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe