Component recipes

Component recipe · Claude Design source

Input for Claude Design

Elegant input with gold accent border and parchment background

Component anatomy

Elegant input with gold accent border and parchment background

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#f5ecd7]",
    "border-2 border-[#c9a74e]/50",
    "rounded-lg",
    "font-serif",
    "text-[#1a3a5c]",
    "placeholder:text-[#1a3a5c]/30",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe