Component recipes

Component recipe · Claude Design source

Input for Claude Design

Surreal input with dreamlike transitions and soft desert-toned styling

Component anatomy

Surreal input with dreamlike transitions and soft desert-toned styling

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-lg",
    "border border-[#d4a574]/40",
    "bg-[#f0ece4]",
    "text-[#1a1a3e]",
    "placeholder:text-[#c38d94]/50",
    "focus:outline-none",
    "transition-all duration-500 ease-in-out"
  ]
}

Variants and parameters

Default

Dark

bg-[#1a1a3e]/90 border-[#c38d94]/40 text-[#f0ece4] placeholder:text-[#d4a574]/50

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#c38d94]",
    "focus:shadow-[0_0_16px_rgba(195,141,148,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe