Component recipes

Component recipe · Claude Design source

Input for Claude Design

Comic-style input with thick borders and bold typography

Component anatomy

Comic-style input with thick borders and bold typography

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "border-4 border-[#1a1a1a]",
    "rounded-lg",
    "bg-[#fffef0]",
    "font-bold",
    "text-[#1a1a1a]",
    "placeholder:text-[#4a4a4a]",
    "focus:outline-none",
    "transition-all duration-150"
  ]
}

Variants and parameters

Default

Colored

bg-[#facc15]/20

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:shadow-[4px_4px_0px_0px_rgba(26,26,26,1)]"
  ],
  "disabled": [
    "opacity-60 cursor-not-allowed bg-gray-200"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe