Component recipes

Component recipe · Claude Design source

Input for Claude Design

Bold input with thick black border and colored focus shadow

Component anatomy

Bold input with thick black border and colored focus shadow

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white",
    "border-4 border-black",
    "rounded-lg",
    "font-bold",
    "text-black",
    "placeholder:text-gray-400",
    "focus:outline-none",
    "transition-all duration-150"
  ]
}

Variants and parameters

Default

Pink

focus:border-[#ff69b4] focus:shadow-[4px_4px_0_#ff69b4]

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#ff69b4]",
    "focus:shadow-[4px_4px_0_#ff69b4]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-gray-100"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe