Component recipes

Component recipe · Claude Design source

Input for Claude Design

Dark-field input with a blue focus ring

Component anatomy

Dark-field input with a blue focus ring

{
  "element": "input",
  "baseClasses": [
    "bg-[#1C2530] border border-white/10",
    "rounded-md",
    "px-4 py-2.5",
    "text-[#F7F5F0] placeholder-[#F7F5F0]/30",
    "focus:outline-none focus:border-[#2F6FED] focus:ring-2 focus:ring-[#2F6FED]/30",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Ghost

bg-transparent border-white/15

Full Width

boolean

Interaction states

{
  "focus": []
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe