Component recipes

Component recipe · Claude Design source

Input for Claude Design

Parchment-style input with botanical green border and vintage serif placeholder

Component anatomy

Parchment-style input with botanical green border and vintage serif placeholder

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#faf5ef]",
    "border-2 border-[#2d4a2d]/30",
    "rounded-sm",
    "font-serif",
    "text-[#2d4a2d]",
    "placeholder:text-[#2d4a2d]/40 placeholder:italic",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Ornate

border-double border-4 border-[#8b6914]/40

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#8b6914]",
    "focus:shadow-[0_0_0_1px_#8b6914]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe