Component recipe · Claude Design source
Input for Claude Design
Soft pill-shaped input with pink focus glow on pearl background
Component anatomy
Soft pill-shaped input with pink focus glow on pearl background
{
"element": "input",
"baseClasses": [
"w-full",
"rounded-full",
"border border-[#ffb7c5]/25",
"bg-[#fff5f7]",
"text-[#4a5568]",
"placeholder:text-[#ffb7c5]/40",
"font-sans",
"focus:outline-none",
"transition-all duration-300 ease-in-out"
]
}Variants and parameters
Default
Lavender
border-[#c4b5fd]/25 placeholder:text-[#c4b5fd]/40
White
bg-white border-[#ffb7c5]/30
Size
select · 3 options
Interaction states
{
"focus": [
"focus:border-[#ffb7c5]",
"focus:shadow-[0_0_12px_#ffb7c540]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe