# microsoft/cascadia-code architecture

> Architecture diagram of the GitHub repository microsoft/cascadia-code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/microsoft/cascadia-code
- Repository: https://github.com/microsoft/cascadia-code

## Overview

Cascadia Code is a coding-font family, with ligatures, stylistic sets, italic/cursive forms, and Code/Mono variants with optional Powerline or Nerd Font symbols. The principal workflow is source font design and feature data, followed by font generation and exported fonts that users install. The repository also contains a Nerd Font glyph-normalization utility. Build orchestration and the full connection between that utility and the family build are not fully visible in the excerpts, so uncertain links are omitted.

Main entry points: [`build.py`](https://github.com/microsoft/cascadia-code/blob/main/build.py) (Font build), [`sources/nerdfonts/full/process.py`](https://github.com/microsoft/cascadia-code/blob/main/sources/nerdfonts/full/process.py) (Glyph scaling), [`sources/nerdfonts/full/processed`](https://github.com/microsoft/cascadia-code/tree/main/sources/nerdfonts/full/processed) (Processed symbols)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Font Design"]
  node_glyphs["Typeface glyphs"]
  node_features["OpenType features"]
end

subgraph group_build["Font Generation"]
  node_font_build["Font build<br/>[build.py]"]
  node_variable_fonts["Variable fonts"]
  node_static_fonts["Static fonts"]
  node_web_fonts["WOFF2 fonts"]
end

subgraph group_symbols["Symbol Fonts"]
  node_nerd_sources["Nerd symbol sources"]
  node_nerd_processor["Glyph scaling<br/>[process.py]"]
  node_nerd_processed["Processed symbols"]
end

subgraph group_use["Font Use"]
  node_installed_fonts["Installed fonts"]
end

node_users(("Font users"))

node_nerd_processor -->|"saves glyphs"| node_nerd_processed
node_font_build -->|"generates"| node_variable_fonts
node_font_build -->|"generates"| node_static_fonts
node_font_build -->|"compresses to"| node_web_fonts
node_users -->|"install"| node_installed_fonts
node_variable_fonts -->|"provides"| node_installed_fonts
node_static_fonts -->|"provides"| node_installed_fonts
node_web_fonts -->|"provides"| node_installed_fonts

click node_glyphs "https://github.com/microsoft/cascadia-code/tree/main/sources/CascadiaCode-Regular.ufo"
click node_features "https://github.com/microsoft/cascadia-code/tree/main/sources/features"
click node_nerd_sources "https://github.com/microsoft/cascadia-code/tree/main/sources/nerdfonts/full/original"
click node_nerd_processor "https://github.com/microsoft/cascadia-code/blob/main/sources/nerdfonts/full/process.py"
click node_nerd_processed "https://github.com/microsoft/cascadia-code/tree/main/sources/nerdfonts/full/processed"
click node_font_build "https://github.com/microsoft/cascadia-code/blob/main/build.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_glyphs,node_features,node_users toneBlue
class node_font_build,node_variable_fonts,node_static_fonts,node_web_fonts toneAmber
class node_nerd_sources,node_nerd_processor,node_nerd_processed toneMint
class node_installed_fonts toneRose
```

## Components

### Font Design

- [Typeface glyphs](https://github.com/microsoft/cascadia-code/tree/main/sources/CascadiaCode-Regular.ufo): `sources/CascadiaCode-Regular.ufo`
- [OpenType features](https://github.com/microsoft/cascadia-code/tree/main/sources/features): `sources/features`

### Font Generation

- [Font build](https://github.com/microsoft/cascadia-code/blob/main/build.py): `build.py`
- **Variable fonts**
- **Static fonts**
- **WOFF2 fonts**

### Symbol Fonts

- [Nerd symbol sources](https://github.com/microsoft/cascadia-code/tree/main/sources/nerdfonts/full/original): `sources/nerdfonts/full/original`
- [Glyph scaling](https://github.com/microsoft/cascadia-code/blob/main/sources/nerdfonts/full/process.py): `sources/nerdfonts/full/process.py`
- [Processed symbols](https://github.com/microsoft/cascadia-code/tree/main/sources/nerdfonts/full/processed): `sources/nerdfonts/full/processed`

### Font Use

- **Installed fonts**

### Other components

- **Font users**

## Connections

- Glyph scaling → Processed symbols: saves glyphs (evidence: `sources/nerdfonts/full/process.py`)
- Font build → Variable fonts: generates (evidence: `build.py`)
- Font build → Static fonts: generates (evidence: `build.py`)
- Font build → WOFF2 fonts: compresses to (evidence: `build.py`)
- Font users → Installed fonts: install (evidence: `README.md`)
- Variable fonts → Installed fonts: provides (evidence: `README.md`)
- Static fonts → Installed fonts: provides (evidence: `README.md`)
- WOFF2 fonts → Installed fonts: provides (evidence: `README.md`)
