Component recipes

Component recipe · Claude Design source

Input for Claude Design

Warm cottagecore input with soft borders and earthy placeholder tones

Component anatomy

Warm cottagecore input with soft borders and earthy placeholder tones

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-xl",
    "border border-[#8b7355]/30",
    "bg-[#faf6f0]",
    "text-[#8b7355]",
    "placeholder:text-[#8b7355]/40",
    "font-serif",
    "focus:outline-none",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Default

Floral

border-[#d4a0a0]/40 placeholder:text-[#d4a0a0]/50

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#5a8f5a]/60",
    "focus:shadow-[0_0_12px_rgba(90,143,90,0.2)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe