sigilUI

Architecture Diagram

Isometric architecture diagram combining exploded-view layering with cross-hatching for infrastructure layers.

@sigil-ui/componentsReact

Preview

Layered infrastructure Interactive

Import

import { ArchitectureDiagram } from "@sigil-ui/components";

Usage

<ArchitectureDiagram
    title="Production architecture"
    gap="var(--s-space-3)"
    layers={[
      { label: "Interface", children: <span className="text-sm text-[var(--s-text)]">React application</span> },
      { label: "Services", children: <span className="text-sm text-[var(--s-text)]">API + workers</span> },
      { label: "Data", children: <span className="text-sm text-[var(--s-text)]">Postgres + cache</span>, hatched: true },
    ]}
  />

Props

PropTypeDefaultDescription
layersArchitectureLayer[]—Layers from top (highest abstraction) to bottom (infrastructure).
titlestring—Title for the diagram.
gapstring1.5remGap between layers.

Token integration

CSS VariablePurpose
--s-card-radiusCard radius
--s-border-styleBorder style
--s-borderBorder
--s-surfaceSurface
--s-shadow-smShadow sm
--s-textText
--s-radius-mdRadius md
--s-duration-fastDuration fast
--s-shadow-mdShadow md
--s-border-strongBorder strong
--s-surface-elevatedSurface elevated
--s-backgroundBackground