Component recipes

Component recipe · Claude Design source

Input for Claude Design

Terminal-style input with fluorescent text cursor and dark field

Component anatomy

Terminal-style input with fluorescent text cursor and dark field

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-none",
    "border-2 border-[#39ff14]/60",
    "bg-[#0a0a0a]",
    "text-[#39ff14]",
    "placeholder:text-[#39ff14]/25",
    "font-mono",
    "focus:outline-none",
    "transition-all duration-150 ease-out"
  ]
}

Variants and parameters

Default

Purple

border-[#a020f0]/60 text-[#a020f0] placeholder:text-[#a020f0]/25

Pink

border-[#ff6ec7]/60 text-[#ff6ec7] placeholder:text-[#ff6ec7]/25

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#39ff14]",
    "focus:shadow-[3px_3px_0px_#a020f0]",
    "focus:bg-[#0a0a0a]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe