Component recipes

Component recipe · Claude Design source

Input for Claude Design

Delicate watercolor-style input with paper texture, organic corners, and soft watercolor wash focus state

Component anatomy

Delicate watercolor-style input with paper texture, organic corners, and soft watercolor wash focus state

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-2xl",
    "border border-[#d4a0a0]/20",
    "bg-[#faf6f0]",
    "text-[#5a3e3e]",
    "placeholder:text-[#d4a0a0]/35",
    "font-serif",
    "focus:outline-none",
    "transition-all duration-500 ease-in-out"
  ]
}

Variants and parameters

Default

Cerulean

border-[#7bb8d4]/20 placeholder:text-[#7bb8d4]/35

Sage

border-[#8cc5a8]/20 placeholder:text-[#8cc5a8]/35

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#d4a0a0]/35",
    "focus:shadow-[0_0_0_3px_rgba(212,160,160,0.10)]"
  ],
  "disabled": [
    "opacity-35 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe