Component recipes

Component recipe · Claude Design source

Input for Claude Design

Warm earthy input with rounded corners and subtle border

Component anatomy

Warm earthy input with rounded corners and subtle border

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#faf5ef]",
    "border border-[#d4a373]/50",
    "rounded-xl",
    "text-[#5a3425]",
    "placeholder:text-[#b5654a]/40",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#b5654a] focus:ring-2 focus:ring-[#b5654a]/20"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe