Component recipes

Component recipe · Claude Design source

Input for Claude Design

Newspaper cutout input with sharp corners, thick border, mixed-font labels across serif/sans/mono, and hard shadow focus state

Component anatomy

Newspaper cutout input with sharp corners, thick border, mixed-font labels across serif/sans/mono, and hard shadow focus state

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-none",
    "border-2 border-[#2d2d2d]",
    "bg-[#f5f0e8]",
    "text-[#2d2d2d]",
    "placeholder:text-[#2d2d2d]/30",
    "focus:outline-none",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Default

font-serif

Sans

font-sans

Mono

font-mono text-sm

Dashed

font-mono text-sm border-dashed border-[#2d2d2d]/60

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#e74c3c]",
    "focus:shadow-[3px_3px_0px_#2d2d2d]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe