# adobe-fonts/source-serif architecture

> Architecture diagram of the GitHub repository adobe-fonts/source-serif, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adobe-fonts/source-serif
- Repository: https://github.com/adobe-fonts/source-serif

## Overview

1. This repository is a **font distribution package**, not a typical application. Its purpose is to publish the **Source Serif** typeface in multiple delivery formats for desktop and web use.

2. The main artifact layer is the **OpenType font set** under `OTF/`. These files are the core released fonts and are organized by **optical size family** and **style/weight**: `Text`, `SmText`, `Subhead`, `Caption`, `Display`, plus a `Variable` family. Each family includes regular, italic, light, semibold, bold, black, and extra-light cuts where applicable.

3. `VAR/` contains the **variable font** binaries: one Roman and one Italic file. These represent the compact, axis-based form of the family and are the source for browsers or apps that support variable fonts.

4. `WOFF/` and `WOFF2/` are the **webfont packaging layers**. Their nested `OTF/`, `TTF/`, and `VAR/` subfolders indicate conversion targets from the different upstream font formats into browser-friendly compressed assets. This is the repo’s main “distribution fan-out” for web consumption.

5. `TTF/` is present as a separate delivery family for **TrueType desktop fonts**. Even though the tree excerpt doesn’t list its contents, its existence shows the project publishes more than one desktop format, likely to support broader installation compatibility.

6. The `source-serif-*.css` files are the **integration boundary for web usage**. Each stylesheet corresponds to one family (`caption`, `display`, `smtext`, `subhead`, `text`, `variable`) and would declare the `@font-face` mappings that connect CSS font-family names to the packaged font files.

7. `demo/index.html` and `demo/style.css` form a small **consumer-facing validation site**. This is likely used to visually inspect rendering, compare weights/optical sizes, and demonstrate how the CSS/font assets are meant to be loaded.

8. `package.json` suggests the repo is also a **publishable package** in the Node/npm sense, even though there is no application runtime. It likely exists to support packaging, release metadata, and tooling around the font assets.

9. The repository boundaries are important: the README points to the **source files and build instructions in the `main` branch** of the upstream project, so this tree is primarily a **released artifact mirror** rather than the design/build source itself.

10. The external dependency model is simple: the fonts are consumed by **desktop OS font managers**, **browser CSS loading**, and the **demo page**. There is no backend service, database, or application server in this repo.

11. For an architecture diagram, the cleanest flow is: **font sources in upstream project → generated desktop/web font binaries (`OTF`, `TTF`, `VAR`, `WOFF`, `WOFF2`) → CSS family entry points → demo/consumers**. The key boundaries are between source-derived binaries, web packaging, and presentation/demo assets.

Main entry points: [`WOFF/OTF`](https://github.com/adobe-fonts/source-serif/tree/release/WOFF/OTF) (WOFF OTF), [`demo/index.html`](https://github.com/adobe-fonts/source-serif/blob/release/demo/index.html) (Demo page), [`README.md`](https://github.com/adobe-fonts/source-serif/blob/release/README.md) (README), [`OTF/SourceSerif4-Regular.otf`](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4-Regular.otf) (OTF Text)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sources["Font binaries"]
  node_otf_text[("OTF Text<br/>font family")]
  node_otf_smtext[("OTF SmText<br/>font family")]
  node_otf_subhead[("OTF Subhead<br/>font family")]
  node_otf_caption[("OTF Caption<br/>font family")]
  node_otf_display[("OTF Display<br/>font family")]
  node_ttf[("TTF<br/>desktop font set")]
  node_var_roman[("Var Roman<br/>variable font")]
  node_var_italic[("Var Italic<br/>variable font")]
end

subgraph group_web["Web packaging"]
  node_woff_otf[("WOFF OTF<br/>webfont pack")]
  node_woff_ttf[("WOFF TTF<br/>webfont pack")]
  node_woff_var[("WOFF VAR<br/>webfont pack")]
  node_woff2_otf[("WOFF2 OTF<br/>webfont pack")]
  node_woff2_ttf[("WOFF2 TTF<br/>webfont pack")]
  node_woff2_var[("WOFF2 VAR<br/>webfont pack")]
  node_css_text["CSS Text<br/>font-face css"]
  node_css_smtext["CSS SmText<br/>font-face css"]
  node_css_subhead["CSS Subhead<br/>font-face css"]
  node_css_caption["CSS Caption<br/>font-face css"]
  node_css_display["CSS Display<br/>font-face css"]
  node_css_variable["CSS Variable<br/>font-face css"]
end

subgraph group_demo["Demo"]
  node_demo_html["Demo page<br/>preview html<br/>[index.html]"]
  node_demo_css["Demo styles<br/>preview css<br/>[style.css]"]
end

subgraph group_meta["Metadata"]
  node_readme["README<br/>docs<br/>[README.md]"]
  node_pkg["Package<br/>npm manifest<br/>[package.json]"]
end

node_readme -->|"documents"| node_pkg
node_readme -->|"describes"| node_otf_text
node_readme -->|"links usage"| node_css_text
node_otf_text -->|"packages to"| node_woff_otf
node_otf_smtext -->|"packages to"| node_woff_otf
node_otf_subhead -->|"packages to"| node_woff_otf
node_otf_caption -->|"packages to"| node_woff_otf
node_otf_display -->|"packages to"| node_woff_otf
node_ttf -->|"packages to"| node_woff_ttf
node_var_roman -->|"packages to"| node_woff_var
node_var_italic -->|"packages to"| node_woff_var
node_otf_text -->|"packages to"| node_woff2_otf
node_ttf -->|"packages to"| node_woff2_ttf
node_var_roman -->|"packages to"| node_woff2_var
node_var_italic -->|"packages to"| node_woff2_var
node_woff_otf -->|"referenced by"| node_css_text
node_woff_otf -->|"referenced by"| node_css_smtext
node_woff_otf -->|"referenced by"| node_css_subhead
node_woff_otf -->|"referenced by"| node_css_caption
node_woff_otf -->|"referenced by"| node_css_display
node_woff_var -->|"referenced by"| node_css_variable
node_css_text -->|"consumed by"| node_demo_html
node_css_smtext -->|"consumed by"| node_demo_html
node_css_subhead -->|"consumed by"| node_demo_html
node_css_caption -->|"consumed by"| node_demo_html
node_css_display -->|"consumed by"| node_demo_html
node_css_variable -->|"consumed by"| node_demo_html
node_demo_css -->|"styles"| node_demo_html

click node_readme "https://github.com/adobe-fonts/source-serif/blob/release/README.md"
click node_pkg "https://github.com/adobe-fonts/source-serif/blob/release/package.json"
click node_otf_text "https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4-Regular.otf"
click node_otf_smtext "https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4SmText-Regular.otf"
click node_otf_subhead "https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Subhead-Regular.otf"
click node_otf_caption "https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Caption-Regular.otf"
click node_otf_display "https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Display-Regular.otf"
click node_ttf "https://github.com/adobe-fonts/source-serif/tree/release/TTF"
click node_var_roman "https://github.com/adobe-fonts/source-serif/blob/release/VAR/SourceSerif4Variable-Roman.otf"
click node_var_italic "https://github.com/adobe-fonts/source-serif/blob/release/VAR/SourceSerif4Variable-Italic.otf"
click node_woff_otf "https://github.com/adobe-fonts/source-serif/tree/release/WOFF/OTF"
click node_woff_ttf "https://github.com/adobe-fonts/source-serif/tree/release/WOFF/TTF"
click node_woff_var "https://github.com/adobe-fonts/source-serif/tree/release/WOFF/VAR"
click node_woff2_otf "https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/OTF"
click node_woff2_ttf "https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/TTF"
click node_woff2_var "https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/VAR"
click node_css_text "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-text.css"
click node_css_smtext "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-smtext.css"
click node_css_subhead "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-subhead.css"
click node_css_caption "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-caption.css"
click node_css_display "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-display.css"
click node_css_variable "https://github.com/adobe-fonts/source-serif/blob/release/source-serif-variable.css"
click node_demo_html "https://github.com/adobe-fonts/source-serif/blob/release/demo/index.html"
click node_demo_css "https://github.com/adobe-fonts/source-serif/blob/release/demo/style.css"

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_otf_text,node_otf_smtext,node_otf_subhead,node_otf_caption,node_otf_display,node_ttf,node_var_roman,node_var_italic toneBlue
class node_woff_otf,node_woff_ttf,node_woff_var,node_woff2_otf,node_woff2_ttf,node_woff2_var,node_css_text,node_css_smtext,node_css_subhead,node_css_caption,node_css_display,node_css_variable toneAmber
class node_demo_html,node_demo_css toneMint
class node_readme,node_pkg toneRose
```

## Components

### Font binaries

Released desktop/font artifacts

- [OTF Text](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4-Regular.otf): font family · Core static OpenType text cut set. · `OTF/SourceSerif4-Regular.otf`
- [OTF SmText](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4SmText-Regular.otf): font family · Static OpenType small-text cuts. · `OTF/SourceSerif4SmText-Regular.otf`
- [OTF Subhead](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Subhead-Regular.otf): font family · Static OpenType subhead cuts. · `OTF/SourceSerif4Subhead-Regular.otf`
- [OTF Caption](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Caption-Regular.otf): font family · Static OpenType caption cuts. · `OTF/SourceSerif4Caption-Regular.otf`
- [OTF Display](https://github.com/adobe-fonts/source-serif/blob/release/OTF/SourceSerif4Display-Regular.otf): font family · Static OpenType display cuts. · `OTF/SourceSerif4Display-Regular.otf`
- [TTF](https://github.com/adobe-fonts/source-serif/tree/release/TTF): desktop font set · TrueType desktop delivery family. · `TTF`
- [Var Roman](https://github.com/adobe-fonts/source-serif/blob/release/VAR/SourceSerif4Variable-Roman.otf): variable font · Roman variable-font binary. · `VAR/SourceSerif4Variable-Roman.otf`
- [Var Italic](https://github.com/adobe-fonts/source-serif/blob/release/VAR/SourceSerif4Variable-Italic.otf): variable font · Italic variable-font binary. · `VAR/SourceSerif4Variable-Italic.otf`

### Web packaging

Browser-friendly font outputs and CSS entry points

- [WOFF OTF](https://github.com/adobe-fonts/source-serif/tree/release/WOFF/OTF): webfont pack · Compressed webfont outputs derived from OTF binaries. · `WOFF/OTF`
- [WOFF TTF](https://github.com/adobe-fonts/source-serif/tree/release/WOFF/TTF): webfont pack · Compressed webfont outputs derived from TTF binaries. · `WOFF/TTF`
- [WOFF VAR](https://github.com/adobe-fonts/source-serif/tree/release/WOFF/VAR): webfont pack · Compressed webfont outputs derived from variable fonts. · `WOFF/VAR`
- [WOFF2 OTF](https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/OTF): webfont pack · WOFF2 outputs derived from OTF binaries. · `WOFF2/OTF`
- [WOFF2 TTF](https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/TTF): webfont pack · WOFF2 outputs derived from TTF binaries. · `WOFF2/TTF`
- [WOFF2 VAR](https://github.com/adobe-fonts/source-serif/tree/release/WOFF2/VAR): webfont pack · WOFF2 outputs derived from variable fonts. · `WOFF2/VAR`
- [CSS Text](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-text.css): font-face css · Web integration boundary for the text family. · `source-serif-text.css`
- [CSS SmText](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-smtext.css): font-face css · Web integration boundary for the small-text family. · `source-serif-smtext.css`
- [CSS Subhead](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-subhead.css): font-face css · Web integration boundary for the subhead family. · `source-serif-subhead.css`
- [CSS Caption](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-caption.css): font-face css · Web integration boundary for the caption family. · `source-serif-caption.css`
- [CSS Display](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-display.css): font-face css · Web integration boundary for the display family. · `source-serif-display.css`
- [CSS Variable](https://github.com/adobe-fonts/source-serif/blob/release/source-serif-variable.css): font-face css · Web integration boundary for the variable family. · `source-serif-variable.css`

### Demo

Consumer-facing preview and validation assets

- [Demo page](https://github.com/adobe-fonts/source-serif/blob/release/demo/index.html): preview html · Browser preview for rendering inspection and usage checks. · `demo/index.html`
- [Demo styles](https://github.com/adobe-fonts/source-serif/blob/release/demo/style.css): preview css · Styling for the preview page layout and samples. · `demo/style.css`

### Metadata

Repository packaging and documentation

- [README](https://github.com/adobe-fonts/source-serif/blob/release/README.md): docs · Release and usage notes; points to upstream source/build context. · `README.md`
- [Package](https://github.com/adobe-fonts/source-serif/blob/release/package.json): npm manifest · Package metadata for publishing and tooling. · `package.json`

## Connections

- README → Package: documents · Repository metadata and release context.
- README → OTF Text: describes · Explains the published font set.
- README → CSS Text: links usage · Web consumption entry point.
- OTF Text → WOFF OTF: packages to · Static OTF family is web-packaged.
- OTF SmText → WOFF OTF: packages to · Small-text OTF is web-packaged.
- OTF Subhead → WOFF OTF: packages to · Subhead OTF is web-packaged.
- OTF Caption → WOFF OTF: packages to · Caption OTF is web-packaged.
- OTF Display → WOFF OTF: packages to · Display OTF is web-packaged.
- TTF → WOFF TTF: packages to · TrueType delivery is web-packaged.
- Var Roman → WOFF VAR: packages to · Variable Roman is web-packaged.
- Var Italic → WOFF VAR: packages to · Variable Italic is web-packaged.
- OTF Text → WOFF2 OTF: packages to · Static OTF family is WOFF2-packaged.
- TTF → WOFF2 TTF: packages to · TrueType delivery is WOFF2-packaged.
- Var Roman → WOFF2 VAR: packages to · Variable Roman is WOFF2-packaged.
- Var Italic → WOFF2 VAR: packages to · Variable Italic is WOFF2-packaged.
- WOFF OTF → CSS Text: referenced by · CSS maps family names to packaged assets.
- WOFF OTF → CSS SmText: referenced by · CSS maps family names to packaged assets.
- WOFF OTF → CSS Subhead: referenced by · CSS maps family names to packaged assets.
- WOFF OTF → CSS Caption: referenced by · CSS maps family names to packaged assets.
- WOFF OTF → CSS Display: referenced by · CSS maps family names to packaged assets.
- WOFF VAR → CSS Variable: referenced by · CSS maps variable font assets.
- CSS Text → Demo page: consumed by · Demo page previews the text family.
- CSS SmText → Demo page: consumed by · Demo page previews the small-text family.
- CSS Subhead → Demo page: consumed by · Demo page previews the subhead family.
- CSS Caption → Demo page: consumed by · Demo page previews the caption family.
- CSS Display → Demo page: consumed by · Demo page previews the display family.
- CSS Variable → Demo page: consumed by · Demo page previews the variable family.
- Demo styles → Demo page: styles · Presentation styling for the preview site.
