> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Diagrams

# Diagram Standards

> **Version**: 1.0.0 **Status**: Pilot — November 2026 **Maintained by**:
> Aviatrix Documentation Team

These standards apply to every architecture, topology, flow and before/after
diagram on the documentation site. They do not apply to UI screenshots (see
[Style Guide](style-guide.md#images-and-diagrams)).

Diagrams are built with the `diagram` skill (`.claude/skills/diagram/`), which
encodes these rules as code. Run `/diagram` to convert an existing diagram or to
create a new one from a description.

***

## Sources

The rules below come from three sources, in this order of precedence:

1. **Aviatrix Brand Guidelines 2026** (Marketing). Where the guide is explicit,
   it wins.
   * Location: Marketing SharePoint (Marketing2),
     [Shared Documents > Active-Projects > Presentations > Aviatrix Brand Guidelines 2026.pptx](https://aviatrix.sharepoint.com/sites/Marketing2/Shared%20Documents/Active-Projects/Presentations/Aviatrix%20Brand%20Guidelines%202026.pptx)
   * Edition used: October 2026 (read on 2026-11-10).
   * Slides used: Typography (9–10), Color Palette (11), Global Guidelines (16),
     **Rules for Diagrams (18)**, Rules for PPT Design (19, colour values for
     dark grounds only) and Rules for Web (21).
   * Brand fonts: Marketing SharePoint, `Brand Assets > Brand Fonts` (Sora,
     Epilogue).
2. **The `aviatrix-slides` skill** (v4.6.0), for choices the guide does not
   make: icon recolouring, line weights, label placement, spacing and the
   light-ground secondary tokens.
3. **Documentation-site rules**, for what only matters on the docs site: light
   and dark mode, rendered size, SVG format and how diagrams are embedded in
   MDX.

### When the brand guide changes

1. Re-read the slides listed above and update this page.
2. Bump the version (see [Versioning](#versioning)) and add a changelog entry.
3. Update the tokens in `.claude/skills/diagram/scripts/diagramkit.py`
   (`THEMES`, `ROLES`, `KINDS`) and the checks in `lint.py`.
4. Update and rebuild the affected diagrams, then run `lint.py`.

***

## Versioning

This standard has a semantic version (`MAJOR.MINOR.PATCH`, at the top of this
page). Every diagram records the version it was built for, so you can tell which
diagrams need work without opening them.

* Each source script passes `standard="x.y.z"` to `run()`: the version the
  script was last written or reviewed against. The build stamps it into both
  SVGs as `data-standard-version`.
* `lint.py --versions` lists every diagram with its version and how far behind
  it is.

The reference page
[How to Read Diagrams](../snippets/enterprise/pages/reference/general/how-to-read-diagrams.mdx)
explains this visual language to readers, with legend sheets built by the
diagram skill. Every MINOR or MAJOR change updates that page and its legend in
the same change. The legend shows exactly the parts and icons that the diagrams
use: every diagram records them, the legend is built from them, and a new part
or icon gets a legend entry. `lint.py` enforces both.

**Pilot: the version stays at 1.0.0.** While the standard is being refined in
review, rule changes are made in place without a version bump, and every diagram
is rebuilt against 1.0.0. Versioning starts when the documentation team declares
the standard ready; from then on, bump the version in the same change that edits
a rule:

| Bump | When | What happens to existing diagrams |
| - | - | - |
| **MAJOR** | A rule changes what a diagram means or how it is drawn: colour meaning, path or shape conventions, fonts, light/dark tokens, canvas size or the text floor | **Must** be updated. `lint.py` fails and `run()` refuses to build a script behind by a major version until it is reviewed and its `standard=` is raised. |
| **MINOR** | A new rule, pattern or part that existing diagrams can live without | Review and decide per diagram. `lint.py` and `run()` print a note. |
| **PATCH** | Wording, examples or clarifications; no visual change | Nothing to do. Rebuild only if convenient. |

To update a diagram to a new version: adjust its source script to the changed
rules, raise its `standard=` to the current version, rebuild, and check both
previews.

### Changelog

#### 1.0.0 (pilot)

The initial release, refined during review from 2026-11-10 to 2026-11-12. The
implementations below were made during the pilot, in order; they are all part of
1.0.0.

| Date | Implementation |
| - | - |
| 2026-11-10 | First version, based on the Aviatrix Brand Guidelines 2026 (October 2026 edition). |
| 2026-11-10 | Diagram titles move to a bold line above the `<Frame>`; diagram comments (notes, callouts, footers) move to the caption. |
| 2026-11-10 | Path clearance rule (24px from parallel box edges, 14px between parallel paths), checked at build time. Superseded images are deleted in the same change. |
| 2026-11-10 | Third-party devices, logos and FireNet: vendor device icons and logos on vendor-specific pages, logos never as devices, single-colour by default, provenance in SOURCES.md, missing artwork registered in pending.json and flagged by build and lint. |
| 2026-11-10 | Colour has two jobs: strict meanings for traffic and policy; a category palette (red, purple, teal, green) for telling network parts apart, on elements only. Colour that does a job is kept when converting. |
| 2026-11-10 | Layout and alignment: column grid, centring in containers, overlays drawn over the underlay, labels clear of paths. |
| 2026-11-10 | Clarified: things shared by a pair (VLANs, VIPs) are drawn across both members. |
| 2026-11-10 | One thing, one symbol (shared networks drawn once); no redundant subtext; repeating patterns shown as muted structure, not an ellipsis. Build warnings for the first two. |
| 2026-11-10 | Spoke and Transit Gateways are gateway groups: no Primary / HA labels. |
| 2026-11-10 | Paint order (panels below paths below nodes, enforced by the kit); paths cross the panels they pass through; container labels stay top-left and wrap. |
| 2026-11-10 | Clarified: names go on the freer side of their node and long side labels wrap onto two lines. |
| 2026-11-10 | Element sizes: gateways 68px (compact 56px, one size per diagram), fixed icon, label-icon, Controller and badge sizes. Gateways grew from 60px, so every diagram was rebuilt. |
| 2026-11-10 | Cloud identity outlines for cloud-specific containers and panels (AWS, Azure, Google Cloud, OCI, Alibaba Cloud). |
| 2026-11-10 | Round terminators for connections (tunnels, peerings); connections into one gateway attach at different points, without extra bends. |
| 2026-11-10 | Connections and traffic in one diagram: orange connections with terminators, traffic arrows beside them (green preferred, gray fallback). |
| 2026-11-10 | Symmetric traffic as one double-headed line (documentation override of the brand guide); traffic heavier than connections; solid dividers for zone boundaries. |
| 2026-11-10 | Infrastructure and configuration in separate bands (route tables below a divider, aligned with their owner); every flow of a kind shows its return when any does; path labels never place a verdict on the wrong element; before/after pairs share one geometry; things outside every container are drawn outside. |
| 2026-11-10 | Legend swatches show the line's ends: round terminators for connections, arrowheads for flows (both for symmetric traffic). |
| 2026-11-10 | Interface badges sit the same short distance from their gateway, with a short piece of line visible between them. Underlay paths end at the edges of an underlay box, whose title and text are centred in the whole box; the tunnels cross it. |
| 2026-11-10 | A path's qualifiers (optional, backup, the condition that changes its role) stay on the diagram, in a path label card when they need more than a word. |
| 2026-11-10 | Heavier container outlines: neutral 2px, cloud identity and Aviatrix-managed 2.5px, below the paths (3px and up). |
| 2026-11-10 | Path labels sit centred on their own segment, just beside the line, away from interface badges. Path label cards: one text size, naming what the path runs over. |
| 2026-11-11 | Gateway groups and instances: a Spoke or Transit gateway group is two gateways shown as one (one gateway with an outline behind it), and every connection to it is two lines, a close pair; individual gateways when the diagram is about them; other group sizes only on pages about them; a single gateway only where there is one; one choice per page. Diagrams that drew a group as separate gateways, as one connection or as a plain circle are redrawn. |
| 2026-11-11 | Official AWS (Architecture Icons, Q3 2026) and Azure (Public Service Icons V25) service icons in the device-icon library (979 icons, imported by a script); the diagram legend shows the core networking icons and every icon a diagram uses. |
| 2026-11-11 | Gateway roles: Spoke and Transit Gateways in a group are peers (control-plane roles), never Primary, HA, Backup, Standby or Leader; individual gateways are named by AZ or region; paths may be fallback or backup paths; VRRP roles are primary and secondary, and Edge Active-Standby keeps its mode name, only on pages that document them; never master/slave. |
| 2026-11-12 | Path labels name the path, not the interface: `default route`, `eBGP`, never `WAN default route` or `LAN · eBGP` (the interface badge carries the role). |
| 2026-11-12 | Build checks for an arrowhead hidden inside a node and a container edge through a badge; the Build Documentation workflow runs the diagram lint on every PR. |

***

## Colour carries meaning

Colour has two jobs in a diagram, and the rules differ per job.

**1. Traffic and policy (strict).** On paths, arrows, path labels and anything
that says what happens to traffic, colours have fixed meanings:

| Colour | Means | Never |
| - | - | - |
| Orange `#FA6B1E` | Aviatrix: the enforcement point, governed or inspected traffic, Aviatrix-managed constructs | a threat, decoration |
| Green `#47B575` | allowed or protected | |
| Red `#EF4444` | threat, blocked, or an ungoverned path | any other traffic meaning |
| White (dark mode) / black (light mode) outlines | neutral workloads | |
| Gray | customer or cloud-provider routing that Aviatrix does not govern, structure, secondary text | |

**2. Telling things apart (flexible).** To distinguish functional parts of the
network (VLANs, segments, routing domains, interface roles, regions, clouds),
use the category palette, in this order:

| Category | 1 | 2 | 3 | 4 |
| - | - | - | - | - |
| Colour | red `#EF4444` | purple `#7A5DDC` | teal `#22A9AA` | green `#47B575` |

* Red and green are fine as categories here: the context (a labelled VLAN, a
  segment) makes clear they are not a threat or an allowed path. This is a
  documentation decision that relaxes the brand guide's "red for threats only";
  keep the strict meanings for traffic.
* Category colour goes on **elements** (badges, swatches, panel outlines), never
  on paths. When a diagram also shows allowed or blocked traffic, avoid red and
  green as categories in that diagram, so the two vocabularies cannot be
  confused.
* Every category colour is paired with its label (`VLAN 100`); colour is never
  the only signal.
* Orange is never a category: it always means Aviatrix.
* More than four categories: reuse the palette with distinct labels, or group
  them.

**3. Cloud identity (outlines only).** A container or panel that is explicitly
in one cloud (a VPC or VNet on a cloud-specific page, a Direct Connect or
ExpressRoute panel) gets that cloud's colour as its outline:

| Cloud | Outline |
| - | - |
| AWS | amber `#FF9900` |
| Azure | blue `#0078D4` |
| Google Cloud | green `#34A853` |
| Oracle Cloud Infrastructure | red `#C74634` |
| Alibaba Cloud | orange `#FF6A00` |

* Outlines only: never paths, fills or text. Generic constructs ("Transit",
  "Private circuit") stay gray.
* The cloud is also named in the diagram (in the label, or by a device such as
  AWS Transit Gateway), so colour is never the only signal.
* An Aviatrix-managed container keeps its orange outline (`tone="aviatrix"`)
  even inside a cloud.
* Alibaba Cloud's orange is almost the same as Aviatrix orange. Always name
  Alibaba Cloud in the label of every Alibaba container, and never give an
  Aviatrix-managed construct inside it an orange outline without its label.

**Keep colour that does a job.** When converting a diagram, remove or neutralise
a colour only if it carries no function. If the original uses colour to tell
parts apart (VLANs, domains), keep that distinction with the category palette.

* Orange is the only accent. Use one emphasis per idea.
* No gradients, shadows, bevels or textures.
* On light backgrounds, orange **text** uses the brand secondary dark orange
  `#E24C01`, as the Aviatrix website does. It is 3.99:1 on white, below the WCAG
  AA 4.5:1 for text, so keep orange text to short labels. Orange lines and fills
  stay `#FA6B1E`.

## Paths and arrows

* **Solid orange**: Aviatrix connections (tunnels, attachments, peerings) and
  traffic that Aviatrix steers or inspects.
* **Solid green**: traffic that gets through: allowed by policy, or the
  preferred path.
* **Dashed red, ending in an arrowhead or an ✕**: blocked, threat or ungoverned
  traffic. Dashed means "does not get through or is not governed". **Never dash
  any other line**, including boundaries.
* **Solid gray**: customer or cloud-provider routing outside Aviatrix (WAN, LAN,
  management, underlay).
* **Muted gray**: a fallback path.
* **Connections end in round terminators, flows in arrowheads.** A tunnel, an
  attachment or a peering is a connection with no direction: draw it with a
  small round terminator at each end, just outside the gateway it attaches to,
  so every connection reads as its own link. Traffic flows keep arrowheads.
* **Connections and traffic together.** When a diagram shows both the overlay
  connections and the traffic that uses them (which next hop is preferred, which
  is the fallback), the connections stay orange with round terminators and the
  traffic takes the traffic colours, as arrows beside them: green for the
  allowed or preferred path, muted gray for a fallback. This keeps traffic from
  being read as a connection; it does not change what orange or green mean.
* Keep connections separate: connections into the same gateway attach at
  different points (for example tunnels on the outer side, the peering on the
  inner side), each with its own terminators. Do not add bends just to change
  the side a connection attaches to.
* **Return traffic** is its own, thinner arrow in the same colour, pointing
  back, when it takes a different path or needs to be shown separately (for
  example inspection on the way back). When both directions take the **same**
  path (symmetric routing), draw one line with arrowheads at both ends instead.
  This is a documentation decision that relaxes the brand guide's "never a
  double-headed arrow" to keep such diagrams to one traffic line per connection.
* **Line weight follows the subject**, so the subject reads first: when
  connections and traffic share a diagram, the connections are thinner and the
  traffic heavier. The weights are in the line-weight table under
  [Element sizes](#element-sizes).
* **Boundaries that are not containers** (Availability Zones that span several
  VPCs) are a solid thin divider (`d.line`) with the names above the diagram.
  Never dash them: dashes mean blocked. Never use a double-headed arrow.
* **Complete flows.** When the diagram shows the return of one flow, it shows
  the return of every flow of the same kind (east-west and egress alike). A
  return that shares a segment with another flow's return reuses that arrow; it
  is not drawn twice.
* Short labels at arrowheads use monospace caps: `ALLOW`, `DENY`.
* **Path labels name the path, not the interface.** The interface badge already
  carries the interface and its role (`eth0 · WAN`, `eth2 · MGMT`), so the path
  label says only what the path is: `DEFAULT ROUTE`, `EBGP`, `UNDERLAY BGP`;
  never `WAN DEFAULT ROUTE`, `MGMT DEFAULT ROUTE` or `LAN · EBGP`.
* **Path labels sit on their own segment.** A label that names a path
  (`DEFAULT ROUTE`, `EBGP`) is centred on the segment it names, just beside the
  line (about 12px), never crowded against an interface badge or a device: the
  badge names the interface, the label names the path between the badge and the
  next element.
* **Longer path labels go in a label card** (`path_label()`): an opaque card of
  supporting text, all one size, that names the path, what it runs over and its
  qualifiers (`Optional internet peering, backup with AS path prepend`). On a
  long line, centre the card on it. On a short line (between two neighbouring
  gateways), hang the card just below it (about 14px), so the whole line stays
  visible: a card on a short line hides the relationship it labels. The card
  belongs to the path, not to the containers around it: keep it close to the
  line, narrow enough to sit between the nodes, and in the path's colour (an
  orange outline for an Aviatrix path). It may sit across a container boundary;
  the boundary is hidden under it.
* **A label never moves the verdict.** A path label sits where the thing it
  names happens. Inspection happens at the gateway, so it is named on the
  gateway (`DCF, no SNAT`) or in the legend (`Inspected path`), never on a
  segment after it, where it would credit the next element.
* Add a legend when a diagram uses more than one path type.
* **A legend swatch is a small copy of its line**, ends included: round
  terminators for a connection, an arrowhead for a flow, arrowheads at both ends
  for symmetric traffic. Colour alone does not separate a tunnel from the
  traffic that uses it; the ends do. A line type drawn with mixed ends (customer
  routing with and without arrowheads) gets a plain swatch. `legend()` takes the
  ends from the paths already drawn, so call it last.
* **Clearance**: paths may cross box edges and other paths, but only at right
  angles. Where a path runs parallel to a box edge it keeps at least 24px from
  it; parallel paths keep at least 14px between them. An arrowhead ends at the
  edge of its node, never inside it, and a container edge never runs through a
  badge. The build prints a `layout:` warning for every violation; fix them all.

## Shapes

* **Enforcement point** (any Aviatrix gateway): an orange circle with the white
  Aviatrix icon centred. Never a plain block, a brand-library gateway icon, or
  the full wordmark.

* **Gateway groups and instances.** Spoke and Transit Gateways form gateway
  groups: gateways that share one role. **Why a group is one entity:** depending
  on the supported features, a group holds anywhere from one gateway to *n*
  (more with horizontal scaling), and the gateways in it are peers with no
  leader, so a diagram that drew a fixed pair, a specific number or a role per
  gateway would be wrong for many readers and would go out of date as features
  change. A diagram therefore draws a gateway group as **one entity, shown as
  two gateways**, and draws each connection to it as two lines that stand for a
  connection to every gateway in the group. The reference page How to Read
  Diagrams explains this to readers. Draw them by what the diagram is about:

  1. **Group (the default).** One gateway with a second outline behind it
     (`ghost=`), labelled by type only (`Transit Gateways`), with no role
     subtext (see Gateway roles). Because the group holds two gateways, every
     connection to it (a tunnel, an attachment, a peering) is **two lines**, one
     to each gateway, drawn as a close pair 14px apart that nests at corners
     (`connect_group()`). A connection between two groups is also two lines.
     Traffic arrows are not connections: a flow through a group stays one arrow.
  2. **Instances, when the diagram is about the individual gateways:** their
     interfaces, tunnels or BGP sessions per gateway (ActiveMesh), failover
     between gateways, placement per Availability Zone, load sharing across
     firewalls. Draw each gateway separately, side by side and centred in its
     container, with its own connections, and name what tells them apart: the
     Availability Zone or the region, never a role.
  3. **Other group sizes only where the page is about them**, for example a page
     about configuring gateway groups: draw that many instances.
  4. **A single gateway only where there is one**, for example a single Edge
     Spoke Gateway. Never draw a group as a plain circle to simplify it.
  5. **One choice per page.** Every diagram on a page draws the same gateways
     the same way.

  A redundant pair of Edge Spoke Gateways is drawn as two instances.

* **Gateway roles.** This is about gateway roles in the Aviatrix control plane:
  Spoke and Transit Gateways in a group are peers, and there is no leader. Never
  give them a role in a diagram, a caption or alt text: no `Primary`, `HA`,
  `Backup`, `Standby`, `Active/Standby`, `Leader`, and never master/slave. Call
  them gateways, or the gateways in the group. The build warns when a Spoke or
  Transit gateway label carries a role word.
  * **Paths may have roles**, because they describe routing, not gateways: a
    fallback path, a backup path with AS path prepend. Do not call a path
    "standby"; use "fallback".
  * **Exception: roles that a protocol or a documented product mode defines**,
    on pages that document that mode. VRRP on Edge Spoke Gateways has a
    **primary** and a **secondary** (gateways and VIP addresses alike); do not
    mix in backup or standby for VRRP, and never use master, even though the
    protocol's own state names do. The Edge Active-Active and Active-Standby
    modes keep their product names. Never master/slave.
  * **UI labels** are quoted exactly as the product shows them (an `HA Gateway`
    toggle in an older version), in procedures and screenshots, not as roles in
    diagrams.

* **Aviatrix management components** (Controller, CoPilot): an orange-outlined
  box with the orange Aviatrix icon. They are not enforcement points, so they
  are not circles.

* **Workloads**: rounded rectangles outlined in white (dark) or black (light).
  Allowed destinations get a green outline; threats are red dashed boxes.

* **Third-party devices** (routers, firewalls, CSP gateways such as AWS Transit
  Gateway): gray-outlined boxes with a brand icon, or a vendor device icon (see
  [Third-party devices, logos and FireNet](#third-party-devices-logos-and-firenet)).

* **Containers** (cloud, region, VPC or VNet, AZ, subnet, site): panels with a
  thin gray outline. Nest at most two levels. An Aviatrix-managed or "after"
  container gets an orange outline.

* Corners: 8–12px. Equal sizes for peer elements.

* **Icons**: brand-library icons (`.claude/skills/diagram/ICONS.md`): monoline
  strokes with one orange accent. Vendor device icons and vendor logos follow
  the next section.

* **Before/after**: problem on the left (or first), Aviatrix on the right (or
  second), in the same frame. Both diagrams use **one geometry**: every shared
  element keeps its position, and the space where the Aviatrix element goes is
  left empty in the "before", so the "after" only adds and recolours.

## Layout and alignment

* **Columns.** Lay elements out on a few vertical columns. Every element sits
  centred on its column, and a column runs through all the containers it crosses
  (the Controller, the internet and the internet firewall share one column; the
  transit, the circuit, the WAN router, the edge gateway and the LAN router
  share another).
* **Centre in the container.** An element alone in a container is centred in it;
  two gateways are placed symmetrically around the container's centre. Never
  push an element against a container edge.
* **Overlays ride over the underlay.** Tunnels that run over a circuit, the
  internet or a WAN router pass straight through that element rather than around
  it. Make the underlay element wide enough that the tunnels cross it near its
  edges (at least 24px inside them).
* **Underlay paths end at the underlay box.** The underlay path that connects to
  a box with text (a private circuit) stops at the box's edges instead of
  running across it, so the box's title and text are centred in the whole box,
  with the tunnels crossing it on either side. Strictly the underlay runs
  through the circuit; ending the path at its edges keeps the text readable. The
  shared internet plane is the exception: every path that uses it crosses it.
* **Paint order: panels, then paths, then nodes.** Containers, bands and panels
  are always below every path, so a path that passes through a container, a
  circuit or the internet is drawn across it, never hidden under it. Devices,
  gateways, badges and labels sit on top. `diagramkit` enforces this order
  whatever the order of the calls.
* **Labels stay clear of paths.** No path crosses a container label, a device
  name or a path label. Put labels and text in the gaps between the paths that
  cross a panel.
* **Names stay close to their node.** Put a gateway's or device's name on the
  side with the most free space (not the side its interfaces or paths use), and
  wrap a long side label onto two balanced lines (`Edge Spoke` / `Gateway`) so
  it starts right next to the node. `gateway()` wraps side labels wider than
  180px automatically.
* **Container labels stay top-left.** When a path enters a container near its
  label, wrap the label onto more lines (`label_w=`, for example `EDGE` /
  `LOCATION`) rather than moving it.
* **Infrastructure above, configuration below.** Components and the traffic
  between them form the infrastructure band. Configuration (route tables,
  policies, snippets) goes in its own band below a solid divider labelled with
  what it holds (`ROUTE TABLES`). Each panel sits in the column of the element
  it configures, and its header names that owner (`SPOKE 1 · PRIVATE SUBNET`,
  `TRANSIT GATEWAY`). Never place a configuration panel between components or on
  a traffic path: it reads as a hop. Panels with rows Aviatrix adds or changes
  keep the orange outline and orange rows.
* **Outside means outside.** Something that is not in any container (the
  internet) is drawn outside every container, with the paths crossing the
  container edge to reach it.
* **Interface badges carry the role** (`eth0 · WAN`), so the lines need fewer
  separate labels.
* **Interface badges stay at the gateway.** An interface badge sits on its line
  as close to the gateway as possible, the same distance for every interface in
  the diagram: 14px of visible line between the gateway circle and the badge, so
  the reader sees the line leave the gateway and the badge on it. When the line
  starts with a round terminator, the 14px start beyond the terminator. Never
  place an interface badge at the far end of its line, near the device it
  connects to: there it reads as that device's. Lines that leave the same side
  of a gateway (eth0 and a tunnel) are spaced so the badge stays clear of the
  other line. `interface()` places the badge and `port()` gives the point where
  the line starts; the build flags `eth` badges placed by hand.

## Third-party devices, logos and FireNet

Third-party products appear in many diagrams. Two kinds of vendor artwork are
allowed, each for its own job:

| Artwork | Shows | Use it | Library |
| - | - | - | - |
| **Device icon** | a vendor *product or service* in the network (FortiGate VM, VM-Series, AWS Transit Gateway) | on vendor- or cloud-specific pages, for the device itself | `assets/device-icons/` |
| **Vendor logo** | the *vendor* (Fortinet, Palo Alto Networks, AWS) | where the diagram refers to the vendor, not to a device: a container or panel for that cloud or vendor on a page about it | `assets/logos/` |

**Rules**

* **Cloud service icons are in the library.** The official AWS and Azure service
  icons for networking, security, compute, containers, management, AI, storage
  and databases (979 icons, for example AWS Transit Gateway, Direct Connect,
  Azure Virtual WAN, ExpressRoute, Azure Firewall) are in `assets/device-icons/`
  (names in the skill's `DEVICE-ICONS.md`), with their provenance and terms in
  `assets/logos/SOURCES.md`. Use them for that cloud's services on
  cloud-specific pages, unmodified and with the service name in text.
* **Generic pages stay generic.** Architecture overviews, design patterns and
  anything that applies to several vendors use the brand-library icon (`ngfw`,
  `router`, `nat-gateway` …) and plain text names. A vendor's artwork would
  suggest a preference or a requirement.
* **Vendor-specific pages may use vendor artwork**, for example an
  implementation guide for Palo Alto VM-Series with FireNet, or an AWS-only
  design. Readers there already use that vendor; recognising it helps.
* **A logo never stands in for a device.** Draw a FortiGate as a device with the
  FortiGate device icon (or, until that icon exists, the brand `ngfw` icon), not
  with the Fortinet logo.
* **Always keep the name as text.** Artwork sits next to the product or vendor
  name, never alone, so the diagram stays readable, searchable and accessible.
* **Colour.** Vendor logos and device icons keep their official colours: never
  recolour, crop or distort them (vendor trademark rules). Keep them small and
  away from coloured paths, so vendor colours are not read as diagram colours
  (orange for Aviatrix, red for threat). Use a vendor's dark variant in dark
  mode when it provides one.
* **Official, unmodified artwork with recorded provenance.** Logos come from the
  vendor itself (press kit, brand portal, trademark guidelines); device icons
  from the vendor's official icon set. Never use community redraws for logos,
  and never redraw, crop or distort a file. Each file is listed in
  `assets/logos/SOURCES.md` with its source, date and the vendor's brand
  guidance; the marks remain trademarks of their owners.
* **Missing artwork is registered.** Logos and device icons we still need are
  listed in `assets/logos/pending.json`. The build (`artwork pending:`) and
  `lint.py` (`ARTWORK` notes) flag every diagram and diagram page that mentions
  a pending vendor or service, so conversions pick them up. Until the artwork
  arrives, use the brand icon and the name in text.
* No vendor colours or logos inside Aviatrix shapes: the enforcement point and
  the Controller always use the Aviatrix icon.

**FireNet**

* **FireNet gateways** are enforcement points: orange circles with the white
  Aviatrix icon.
* **The FireNet VPC or VNet** is an Aviatrix-managed container: orange outline.
* **Third-party firewalls** are devices: the vendor device icon on
  vendor-specific pages, otherwise the brand `ngfw` icon, with the product named
  in text (`Palo Alto VM-Series`, `FortiGate VM`). Several instances behind a
  load balancer are drawn as a short stack.
* **Paths**: traffic Aviatrix steers to the firewall and back is solid orange
  (governed). The firewall's verdict is green (allowed) or red dashed (denied),
  with `ALLOW` / `DENY` labels. Return traffic is the usual separate, thinner
  arrow, which also shows symmetric inspection.
* Management, egress and other links are solid gray (customer or cloud-provider
  routing).

## Text

* Fonts: **Sora** for names of components, **Epilogue** for supporting text,
  **Roboto Mono** for panel labels, interfaces, routes and code. No other fonts.
* At most **three sizes** per diagram. Nothing below **8pt as rendered** on the
  page (see [Size](#size)).
* Container and panel labels: monospace caps, gray, letterspaced, with a
  middle-dot separator: `SPOKE 1 VPC · 10.1.0.0/16`, `AZ · US-EAST-1A`.
* Interface names and code keep their case: `eth0`, `10.1.0.0/16`.
* Use product names exactly as in the
  [doc style guide](../.claude/skills/doc-style-guide/SKILL.md): Spoke Gateway,
  Transit Gateway, Edge Spoke Gateway, Distributed Cloud Firewall (DCF).
* No titles, takeaway lines, notes or callout boxes inside the diagram. Text
  moves out of the image:
  * A **title** becomes a bold line directly above the `<Frame>` (for example
    `**Before: no Aviatrix, all traffic uninspected**`).
  * **Comments** (notes, callouts, footers, takeaways) become the `<Frame>`
    caption below the image. Keep their facts, rewrite them as plain sentences,
    and drop marketing or competitive claims.
  * Facts the page text already states in full can be left out of the caption.

## Content

* Show the real mechanism: the actual topology, paths and route changes, not an
  abstraction.
* **One thing, one symbol.** A network or service that exists once (the
  internet, a circuit, a transit) is drawn once, and every path that uses it
  crosses that one element. Two internet clouds for the same internet are a
  difference without a distinction. The build warns when the internet is drawn
  more than once.
* **Every word earns its place.** A secondary line adds information the name
  does not carry (`Internet firewall` / `or router` adds; `Internet` /
  `Public internet` does not). The build warns when a subtext repeats its name.
* **Repeating patterns stay readable.** To show that a pattern repeats (more
  VLANs, more spokes), repeat its structure in muted form (the labels without
  the values) rather than an ellipsis.
* Place shared things where they really live: something that spans both members
  of a pair (a VLAN, a VRRP virtual IP, a shared subnet) is drawn across both,
  never next to one of them.
* When converting an existing diagram, keep its topology and every technical
  fact. Restyle it; do not simplify it. Record anything you drop in the source
  script header.
* **A path's qualifiers stay on the diagram.** Whether a link is optional, what
  it runs over (the internet, a private circuit), that it is a backup, and the
  setting that changes its role (AS path prepend) are part of the topology, not
  commentary: label the path with them. The caption may explain more (the
  default behaviour), but never instead of the label.
* Never invent technical details. Illustrative names, CIDRs and regions are
  fine; say so in the source script header.
* Balance accuracy against simplicity: leave out detail that does not serve the
  reader's task.

## Light and dark mode

Every diagram ships as two SVG files with identical layout and meaning:

| | Light (`name.svg`) | Dark (`name-dark.svg`) |
| - | - | - |
| Background | transparent (sits on the page) | transparent (sits on the page) |
| Outer panels | off-white `#FCF9F3`, outline `#D6D3CC` | `#1A1A1A`, outline `#3A3A3A` |
| Nested panels | white, outline `#D6D3CC` | `#0E0E0E`, outline `#3A3A3A` |
| Nodes | white | `#262626` |
| Text | black; secondary `#666666` | white; secondary `#A6A6A6` |
| Workload outline | black | white |

The background is transparent in both variants so diagrams never show as a light
box on a dark page or a dark box on a light page. The dark values are the brand
guide's diagram canvas tokens; the light values are the guide's light-ground
palette.

## Element sizes

One size per element type, in every diagram (canvas px; the page shows about two
thirds of this):

| Element | Size |
| - | - |
| Gateway (enforcement point) | 68px circle (`GW_R = 34`). Where panels are tight, 56px (`GW_R_COMPACT = 28`), and then **every** gateway in that diagram uses it. The build warns when a diagram mixes gateway sizes. |
| Device or workload icon | 40px |
| Container label icon | 28px |
| Controller box | 72px high |
| Badge | 28px high |

**Line weights** keep one hierarchy, so the subject reads first and every
outline stays visible at page size:

| Line | Weight |
| - | - |
| Traffic and connections | 3px (highlighted traffic 4px, tunnels beside traffic 2px) |
| Cloud identity or Aviatrix-managed container outline | 2.5px |
| Neutral container outline (VPC, site, subnet), route table panel | 2px / 1.5px |
| Divider | 1.5px |

Never draw a container outline as heavy as a path: a coloured outline (AWS
amber) would read as a connection.

## Size

* Canvas width: **1000px** by default. Height as needed.
* Mintlify scales the SVG down to the content column (designed for 680px). At a
  1000px canvas, the smallest text is 16px, which renders at about 8pt.
* A wider canvas needs proportionally larger text; `lint.py` enforces the floor.

## Files and format

* Self-contained SVG: fonts are subset and embedded, no external references, no
  raster images, no scripts. Text stays selectable.
* Files: `images/<section>/<name>.svg` and `images/<section>/<name>-dark.svg`
  (kebab-case).
* When a converted diagram replaces an image with a different file name or
  format (for example a PNG), **delete the old image in the same change** once
  no page references it, so the git diff shows the old and the new side by side.
  Update `scripts/image-dedup-baseline.json` if the deleted file was in a
  baselined duplicate group
  (`python3 scripts/check_image_duplicates.py --write-baseline`).
* Source: every diagram has a Python source script in `diagrams/`, at the same
  path as its image, with a header that records the mode (convert or create),
  the input, the sources, and assumptions to verify, and a `standard="x.y.z"`
  argument to `run()` (see [Versioning](#versioning)). Edit the script and
  rebuild; never edit the SVG by hand.
* **Inventory.** [`diagrams/INVENTORY.md`](../diagrams/INVENTORY.md) records
  every diagram with the standard version it is built to (`legacy` until it is
  converted), its last change and its pages, and lists the diagrams no page
  uses. It is generated and checked by the diagram skill's scripts; keep it
  current with every diagram change.

## Embedding in MDX

Embed both variants inside one `<Frame>`. Mintlify shows the variant that
matches the reader's theme.

```mdx theme={null}
<Frame caption="Same-AZ next hops are preferred in both directions; the cross-AZ next hop is a fallback.">
  <img
    className="block dark:hidden"
    src="/images/concepts-architectures/architecture/connectivity/az-affinity-symmetric-routing.svg"
    alt="Spoke and transit gateway instances in two Availability Zones, each preferring the same-AZ next hop"
  />
  <img
    className="hidden dark:block"
    src="/images/concepts-architectures/architecture/connectivity/az-affinity-symmetric-routing-dark.svg"
    alt="Spoke and transit gateway instances in two Availability Zones, each preferring the same-AZ next hop"
  />
</Frame>
```

* Use the same descriptive alt text on both images: describe what the diagram
  shows, not that it is a diagram.
* Put the diagram's title, if it has one, in bold on the line directly above the
  `<Frame>`. (Mintlify's `<Frame>` does not render a `title` attribute.)
* Use the `<Frame>` `caption` for the takeaway and any comments the diagram
  carried (see [Text](#text)).
* `lint.py` checks the pair, the classes and the alt text.
* `assets/css/custom.css` hides Mintlify's decorative grid pattern in diagram
  frames (it would show through the transparent SVG background) and adds space
  between consecutive frames, such as a before/after pair. It recognises a
  diagram frame by the `dark:hidden` image class, so keep the embedding exactly
  as above.

## Checklist

* [ ] Traffic colours keep their meaning (orange Aviatrix, green allowed, red
  threat or blocked); categories use the category palette on elements, with
  labels.
* [ ] Only red paths are dashed; return traffic is a separate, thinner arrow,
  shown for every flow of a kind or for none.
* [ ] Configuration (route tables, policies) sits in its own band below the
  components, aligned with its owner.
* [ ] Path labels name what happens on that segment; verdicts sit on the element
  that makes them.
* [ ] Path labels are centred on their segment, close to the line and clear of
  badges.
* [ ] Interface badges sit at their gateway, the same short distance from it,
  with a piece of line visible.
* [ ] Every qualifier of a path in the original (optional, what it runs over,
  backup, conditional) is still on the diagram.
* [ ] Underlay boxes (a private circuit): the tunnels cross them, the underlay
  path ends at their edges, the text is centred.
* [ ] Gateways are orange circles with the white Aviatrix icon.
* [ ] No roles for Spoke or Transit Gateways (Primary, HA, Backup, Standby,
  Leader, master/slave) in the diagram, caption or alt text.
* [ ] Spoke and Transit Gateways are drawn as a group (two gateways shown as
  one, two lines to it) unless the diagram is about the individual gateways;
  the same way on every diagram of the page.
* [ ] Sora, Epilogue and Roboto Mono only; at most three sizes; nothing below
  8pt rendered.
* [ ] Light and dark variants exist, both checked on their page colour.
* [ ] Source script in `diagrams/` with a complete header and `standard=` set to
  the current version.
* [ ] Both variants embedded in one `<Frame>`, with alt text and a caption.
* [ ] New icons or parts are in the diagram legend; a rule change updated How to
  Read Diagrams.
* [ ] `lint.py` passes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.