Component recipes

Component recipe · Claude Design source

Input for Claude Design

Dark mystical input with gold focus glow and serif font

Component anatomy

Dark mystical input with gold focus glow and serif font

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#0d0b14]",
    "border border-[#4a1942]/50",
    "rounded-sm",
    "font-serif",
    "text-[#c9a74e]/90",
    "placeholder:text-[#7b68ae]/40",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Golden

border-[#c9a74e]/30 text-[#c9a74e] placeholder:text-[#c9a74e]/30

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#c9a74e]/70",
    "focus:shadow-[0_0_12px_rgba(201,167,78,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe