Component recipes

Component recipe · Claude Design source

Input for Claude Design

Soft brutalist input with gray borders and pastel focus glow

Component anatomy

Soft brutalist input with gray borders and pastel focus glow

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "border-2 border-gray-800",
    "rounded-none",
    "bg-gray-50",
    "font-mono",
    "text-gray-800",
    "placeholder:text-gray-400",
    "focus:outline-none",
    "transition-shadow duration-200"
  ]
}

Variants and parameters

Default

Tinted

bg-pink-50

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:shadow-[4px_4px_0px_0px_rgba(56,189,248,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-gray-100"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe