Component recipes

Component recipe · Claude Design source

Input for Claude Design

Warm rounded input with tropical teal focus ring and sunny background

Component anatomy

Warm rounded input with tropical teal focus ring and sunny background

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white",
    "border-2 border-[#00897b]/20",
    "rounded-full",
    "text-[#1a1a1a]",
    "placeholder:text-[#00897b]/40",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Coral

border-[#ff6f61]/30 placeholder:text-[#ff6f61]/40

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#00897b]",
    "focus:shadow-[0_0_0_3px_rgba(0,137,123,0.2)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe