Excalidraw Diagrams
Create hand-drawn style diagrams with Excalidraw
Excalidraw Diagrams
Excalidraw is an open-source virtual whiteboard that creates hand-drawn style diagrams directly in your ArchDoc documents.
What is Excalidraw?
Excalidraw provides:
- Hand-drawn aesthetic: Diagrams look sketched, approachable
- Full-featured whiteboard: Shapes, arrows, text, images
- Real-time collaboration: Work together on diagrams
- Embedded in documents: No external tools needed
Creating an Excalidraw Diagram
Method 1: Toolbar Button
- Place your cursor where you want the diagram
- Click the Diagram button (✏️) in the toolbar
- An empty Excalidraw canvas appears
- Click Edit to open the full editor
Method 2: Keyboard
The diagram button is your quickest option in the current editor.
Using Excalidraw
The Canvas
When you click Edit, a full-screen editor opens:
- Left toolbar: Drawing tools
- Canvas: Your working area
- Top bar: Style options
- Bottom bar: Zoom and navigation
Drawing Tools
| Tool | Use |
|---|---|
| Selection | Select and move elements |
| Rectangle | Draw rectangles and squares |
| Diamond | Draw diamond shapes |
| Ellipse | Draw circles and ovals |
| Arrow | Draw arrows between elements |
| Line | Draw straight lines |
| Pencil | Freehand drawing |
| Text | Add text labels |
| Image | Insert images |
Styling Elements
Select an element to access style options:
- Stroke color: Line/border color
- Background color: Fill color
- Fill style: Solid, hatch, cross-hatch, or none
- Stroke width: Thin, bold, or extra bold
- Stroke style: Solid, dashed, or dotted
- Edge style: Sharp, round, or sketch
- Opacity: Transparency level
Creating Common Diagrams
Architecture Diagram
- Add boxes for each component (services, databases)
- Label each box with text
- Connect with arrows to show relationships
- Add notes for additional context
System Flow
- Start with an entry point (user, request)
- Add process boxes for each step
- Connect with arrows showing flow direction
- Add decision diamonds for branches
- End with outcomes
Component Diagram
- Draw boundaries with rectangles
- Place components inside boundaries
- Show connections between components
- Add labels and annotations
Example Diagrams
Microservices Architecture
┌─────────────────────────────────────────────┐
│ API Gateway │
└─────────────────────┬───────────────────────┘
│
┌─────────────┼─────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ User │ │ Order │ │ Product │
│ Service │ │ Service │ │ Service │
└────┬────┘ └────┬────┘ └────┬────┘
│ │ │
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ User DB │ │ Order DB│ │Prod. DB │
└─────────┘ └─────────┘ └─────────┘Request Flow
┌──────┐ ┌──────────┐ ┌────────┐
│Client│────▶│ Load │────▶│ Server │
└──────┘ │ Balancer │ │ 1 │
└──────────┘ └───┬────┘
│ │
│ ┌───▼────┐
└────────▶│ Server │
│ 2 │
└────────┘Saving Diagrams
Auto-save
- Diagrams save automatically when you close the editor
- Changes are persisted with the document
Explicit Save
- Click Save in the Excalidraw editor
- Click the X to close the editor
- Your diagram is now part of the document
Editing Existing Diagrams
- Click on the diagram in your document
- Click the Edit button
- Make your changes
- Save and close
Tips and Best Practices
Keep It Simple
- Don't overcrowd diagrams
- Use clear, readable labels
- Focus on one concept per diagram
Use Consistent Styling
- Stick to a color palette
- Use similar shapes for similar concepts
- Maintain consistent sizing
Add Context
- Label everything important
- Use arrows to show flow
- Add text annotations
Think About Readability
- Ensure sufficient contrast
- Don't make text too small
- Leave whitespace between elements
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Select | V |
| Rectangle | R |
| Diamond | D |
| Ellipse | O |
| Arrow | A |
| Line | L |
| Pencil | P |
| Text | T |
| Delete | Delete or Backspace |
| Copy | Ctrl/Cmd + C |
| Paste | Ctrl/Cmd + V |
| Undo | Ctrl/Cmd + Z |
| Redo | Ctrl/Cmd + Y |
| Select All | Ctrl/Cmd + A |
| Zoom In | Ctrl/Cmd + + |
| Zoom Out | Ctrl/Cmd + - |
| Fit to Screen | Ctrl/Cmd + 1 |
Troubleshooting
Diagram Not Saving
- Ensure you click Save before closing
- Check your network connection
- Try refreshing and editing again
Editor Won't Open
- Try refreshing the page
- Clear browser cache
- Ensure JavaScript is enabled
Slow Performance
- Reduce the number of elements
- Simplify complex shapes
- Close other browser tabs
Limitations
- Large diagrams may impact page load time
- Collaboration on diagrams is separate from document collaboration
- Some browser extensions may interfere