Component recipes

Component recipe · Claude Design source

Input for Claude Design

Print-style input with bold borders and monospace typography

Component anatomy

Print-style input with bold borders and monospace typography

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-sm",
    "border-2 border-[#1a1a1a]",
    "bg-[#fffbf0]",
    "text-[#1a1a1a]",
    "placeholder:text-[#1a1a1a]/40",
    "font-mono",
    "focus:outline-none",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Default

Pink

border-[#ff6b9d] placeholder:text-[#ff6b9d]/40

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#2563eb]",
    "focus:shadow-[2px_2px_0px_#ff6b9d]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe