Component recipes

Component recipe · Claude Design source

Torii Divider for Claude Design

Horizontal divider styled like a torii gate silhouette

Component anatomy

Horizontal divider styled like a torii gate silhouette

{
  "element": "div",
  "baseClasses": [
    "relative",
    "w-full",
    "h-px",
    "my-6",
    "before:content-['']",
    "before:absolute",
    "before:left-1/2",
    "before:-translate-x-1/2",
    "before:-top-2",
    "before:w-12",
    "before:h-1",
    "before:rounded-full",
    "transition-all duration-300 ease-in-out"
  ]
}

Variants and parameters

Default

bg-[#1e3a5f]/30 before:bg-[#1e3a5f]/50 shadow-[0_0_6px_rgba(30,58,95,0.2)]

Golden

bg-[#c9a227]/30 before:bg-[#c9a227]/50 shadow-[0_0_6px_rgba(201,162,39,0.2)]

Neon

bg-[#38bdf8]/30 before:bg-[#38bdf8]/50 shadow-[0_0_8px_rgba(56,189,248,0.3)]

Visible

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[0_0_12px_rgba(56,189,248,0.4)]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe