Component recipes

Component recipe · Claude Design source

Input for Claude Design

Realistic inset input field with textured background and depth effect

Component anatomy

Realistic inset input field with textured background and depth effect

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-lg",
    "border border-[#a89880]",
    "bg-[#f5efe6]",
    "shadow-[inset_0_2px_4px_rgba(0,0,0,0.1)]",
    "font-sans",
    "text-[#3a2f22]",
    "placeholder:text-[#8b7355]",
    "focus:outline-none",
    "transition-all duration-200 ease-out"
  ]
}

Variants and parameters

Default

Embossed

shadow-[inset_0_1px_3px_rgba(0,0,0,0.15),0_1px_0px_rgba(255,255,255,0.5)]

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:shadow-[0_3px_6px_rgba(0,0,0,0.16),0_3px_6px_rgba(0,0,0,0.23)]",
    "focus:border-[#8b7355]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-[#e8dfd1]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe