Component recipes

Component recipe · Claude Design source

Input for Claude Design

Angular input with earth-toned borders and geometric offset focus state

Component anatomy

Angular input with earth-toned borders and geometric offset focus state

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#e8dcc8]",
    "border-2 border-[#5c4033]/40",
    "rounded-none",
    "font-bold",
    "text-[#5c4033]",
    "placeholder:text-[#5c4033]/40 placeholder:uppercase",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Slate

border-[#3d5c6e]/40 text-[#3d5c6e]

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#5c4033]",
    "focus:shadow-[3px_3px_0_#8b7355]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe