A well-laid-out diagram tells a visual story. The viewer should know where to start, where to look next, and what matters most.
Hierarchy Through Scale
Size communicates importance. Use consistent size categories to create visual hierarchy.Size Categories
Example: API Request Flow
Applying Scale Hierarchy
1
Identify the hero
What’s the single most important concept? Make it the largest element (300×150px).
2
Determine primary elements
What are the 3-5 main concepts? Use primary size (180×90px).
3
Size supporting details
Everything else uses secondary (120×60px) or small (60×40px or less).
4
Check contrast
Ensure at least 1.5x size difference between hierarchy levels for clear distinction.
Whitespace = Importance
The most important element has the most empty space around it.Whitespace Guidelines
Before vs After: Whitespace
Bad (equal spacing):Whitespace Techniques
Isolation
Put 200px+ of empty space around the hero element to make it dominant
Grouping
Reduce whitespace between related elements (60px) to show they belong together
Separation
Use large gaps (150px+) to separate distinct sections or phases
Balance
Distribute whitespace evenly across the canvas to avoid lopsided composition
Flow Direction
Guide the eye through the diagram with deliberate flow patterns.Primary Flow Patterns
Left → Right Flow
Use for: Sequences, transformations, pipelines- Start on the left (entry point)
- Progress rightward through steps
- End on the right (completion)
- Use arrows to reinforce direction
Top → Bottom Flow
Use for: Hierarchies, timelines, dependencies- Place the origin at the top
- Cascade downward through levels
- Use vertical arrows or lines
- Works well for tree structures
Radial Flow (Center → Out)
Use for: Fan-out, distribution, central hub- Center is the focal point (largest)
- Radiating elements evenly spaced (30°-45° apart)
- Arrows emanate from center
- Good for showing “one source, many destinations”
Circular Flow
Use for: Loops, cycles, feedback- Start at top-left (12 o’clock or 10 o’clock position)
- Progress clockwise
- Return arrow should be visually distinct (different color or dashed)
- Can add center label for cycle name
Flow Direction Guidelines
1
Choose the primary flow pattern
Based on the concept’s nature (sequence, hierarchy, distribution, etc.)
2
Establish the entry point
Where does the viewer’s eye land first? Usually top-left or center.
3
Trace the visual path
Mentally follow the eye movement. There should be a clear narrative progression.
4
Add directional cues
Use arrows, size progression, or color progression to reinforce flow.
5
Check for dead ends
Every element should connect to the flow. No isolated orphans.
Connections Required
Proximity ≠ Relationship
Bad (proximity without connection):Connection Types
Arrow Guidelines
Start and End
Every arrow must have clear start and end points. Use bindings to attach to shapes.
Routing
Arrows should route around elements, not through them. Use waypoints in the
points array.Direction
Arrow direction should match conceptual flow (cause → effect, input → output).
Labels
Label arrows when the relationship isn’t obvious (“triggers”, “validates”, “sends to”).
Line Guidelines (Non-Directional)
Use lines for:- Tree structures (trunk and branches)
- Timelines (vertical or horizontal spine)
- Section dividers
- Grouping boundaries
- Causal relationships (use arrows)
- Sequential flows (use arrows)
- Transformations (use arrows)
Alignment and Grid
Grid Snapping
- Consistent spacing
- Visual cleanliness
- Easier maintenance
Alignment Principles
1
Horizontal alignment
Elements in the same conceptual row should align horizontally (same
y coordinate).2
Vertical alignment
Elements in the same conceptual column should align vertically (same
x coordinate).3
Center alignment
Related elements can center-align if they’re in a parent-child or hub-spoke relationship.
4
Even spacing
Gaps between similar elements should be consistent (e.g., all 80px apart).
Example: Aligned vs Misaligned
Bad (misaligned):Balanced Composition
Visual Weight Distribution
A diagram should feel balanced across the canvas.Symmetrical Balance
Equal visual weight on left and right. Use for comparisons and side-by-side layouts.
Asymmetrical Balance
Unequal but balanced weight. Use when one side is more important but composition needs balance.
Checking Balance
- Draw an imaginary vertical line down the middle of the canvas
- Estimate visual weight on each side (size × number of elements)
- Adjust positioning if one side feels too heavy
Canvas Dimensions
Recommended Canvas Sizes
Multi-Zoom Architecture
Comprehensive diagrams operate at multiple zoom levels simultaneously.Level 1: Summary Flow
A simplified overview showing the full pipeline or process at a glance. Often placed at the top or bottom. Example:Level 2: Section Boundaries
Labeled regions that group related components. These create visual “rooms”. Example:Level 3: Detail Inside Sections
Evidence artifacts, code snippets, and concrete examples within each section. Example:For comprehensive diagrams, aim to include all three levels. The summary gives context, the sections organize, and the details teach.
Layout Checklist
Hierarchy
Hierarchy
- Hero element is 2-3x larger than primary elements
- Size differences between levels are at least 1.5x
- Most important element is visually dominant
Whitespace
Whitespace
- Hero element has 200px+ whitespace on all sides
- Primary elements have 100-150px spacing
- Related elements grouped with reduced spacing (60px)
- Large gaps (150px+) separate distinct sections
Flow
Flow
- Clear entry point (where eye lands first)
- Obvious visual path through the diagram
- Flow pattern matches concept (sequence, hierarchy, radial, circular)
- Arrows reinforce directional flow
Connections
Connections
- Every relationship has an explicit arrow or line
- Arrows route around elements, not through them
- Arrow direction matches conceptual flow
- No ambiguous proximity relationships
Alignment
Alignment
- Elements snap to 20px grid
- Horizontal rows align vertically (same y)
- Vertical columns align horizontally (same x)
- Even spacing between similar elements
Balance
Balance
- Visual weight distributed across canvas
- No large empty voids
- No overcrowded regions
- Composition feels stable