Component recipes

Component recipe · Claude Design source

Input for Claude Design

Y2K-style rounded input with metallic gradient and pink focus

Component anatomy

Y2K-style rounded input with metallic gradient and pink focus

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-gradient-to-b from-white to-gray-100",
    "rounded-full",
    "border border-gray-200",
    "text-gray-700",
    "placeholder:text-gray-400",
    "shadow-[inset_0_2px_4px_rgba(0,0,0,0.05)]",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Pink

bg-gradient-to-b from-pink-50 to-pink-100 border-pink-200

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-pink-300",
    "focus:shadow-[inset_0_2px_4px_rgba(0,0,0,0.05),0_0_0_3px_rgba(255,105,180,0.2)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe