Component recipes

Component recipe · Claude Design source

Dialogue Box for Claude Design

RPG-style dialogue box with pixel border

Component anatomy

RPG-style dialogue box with pixel border

{
  "element": "div",
  "baseClasses": [
    "relative",
    "bg-[#1a1040]",
    "border-2 border-[#4a90d9]",
    "p-4",
    "pb-6",
    "font-mono",
    "text-sm",
    "text-[#e0e0ff]",
    "after:content-['']",
    "after:absolute",
    "after:bottom-[-8px]",
    "after:left-4",
    "after:w-0",
    "after:h-0",
    "after:border-l-[8px] after:border-l-transparent",
    "after:border-r-[8px] after:border-r-transparent",
    "after:border-t-[8px] after:border-t-[#4a90d9]"
  ]
}

Variants and parameters

Default

NPC

border-[#50c878]

System

border-[#ffd93d] text-[#ffd93d]

Visible

boolean

Interaction states

{}

Related base style

Fixed-version source · reviewed before publishingNext component recipe