Saggar

A warm, measured color theme for VS Code and VSCodium — readable with color vision deficiencies too.
Ivory and warm slate, a terracotta accent kept for what matters, and every color solved for
contrast and distinguishability instead of picked by eye.
Independent project, inspired by Claude's warm palette. Not affiliated with or endorsed by
Anthropic.
Install
VS Code — search for Saggar in the Extensions view, or run:
code --install-extension alessandracosteant.saggar
VSCodium (and other editors that use Open VSX) — search for Saggar in
the Extensions view, or run:
codium --install-extension alessandracosteant.saggar
From a .vsix file — Extensions view → … → Install from VSIX…
Then pick a theme with Preferences: Color Theme: Saggar Light, Saggar Dark, Saggar
Terracotta Light or Saggar Terracotta Dark.
Two pairs
- Saggar — quiet. Most code is ink; terracotta marks only declarations and headings.
- Saggar Terracotta — warm. Terracotta keywords and declarations, ochre-brown strings and
numbers, parchment and umber surfaces, a terracotta status bar. One cool note — slate-grey
comments — is what keeps an almost all-warm palette distinguishable for every vision.

Follow the operating system's light/dark setting
"window.autoDetectColorScheme": true,
"workbench.preferredDarkColorTheme": "Saggar Dark",
"workbench.preferredLightColorTheme": "Saggar Light"
(or Saggar Terracotta Dark / Saggar Terracotta Light).
Why it's different
Most themes are JSON files written by hand. Saggar's are generated from a small set of color
specifications (hue, chroma and a constraint), by an engine that solves for the constraint:
Contrast verified by construction. Main text ≥ 7:1, every syntax color — comments included —
≥ 4.5:1, focus and other indicators ≥ 3:1 (WCAG 2.x). Not just on the background: also under the
selection, the current line, find matches and diff highlights, where text actually sits. An
independent audit of the generated files re-checks 200+ pairs per theme:
contrast report.
Distinguishable for everyone. Syntax colors stay apart (ΔE_OK) under simulated protanopia,
deuteranopia and tritanopia — the latter with two models, because on thin text everyone is a
little tritanope. Added and removed lines are blue and salmon, never only green and red.

No leaks. All 1010 color keys of VS Code 1.147 are accounted for: every key whose default is
a fixed color is set, and every other key derives only from keys we set — no stray default blue
in the middle of the terracotta. Coverage.
No color jumps. When a language server starts, semantic highlighting takes over from
TextMate. Every standard semantic token type is tested to get the same color either way.
Restraint by rule. In Saggar, four hues in the syntax and terracotta only for declarations,
headings, the cursor and focus; in both pairs the comment is always the quietest color and
italic is never the only difference between two kinds of token.
The math, with derivations and sources, is in docs/math.md.
Fonts
Saggar does not ship fonts. Good free monospace companions:
JetBrains Mono (OFL-1.1),
IBM Plex Mono (OFL-1.1),
Commit Mono.
Known limitations
- No high-contrast variants yet. They need their own thresholds and keys; planned.
- Contrast is WCAG 2.x, not APCA (whose license does not allow use outside web content).
- Light syntax colors sit between 4.5:1 and 6.6:1. Strings are the darkest, so that all colors
stay distinguishable for every vision type while still readable under every highlight.
- Terracotta cannot be all-warm. With only warm hues (terracotta, rust, brown, amber) no palette
met the distinguishability thresholds; the slate-grey comments are the price.
- Color vision deficiency is simulated, not measured: Machado et al. 2009 and Brettel et al.
1997 are models of dichromacy, and real perception varies.
- TextMate grammars differ by language. Declarations are recognized in TypeScript/JavaScript,
Python, Rust, Lua and Luau; elsewhere they appear in ink until a language server reports them.
- Translucent colors are computed assuming the editor blends them in gamma-encoded sRGB, as
Chromium does; the manual QA checklist includes a pixel check.
Development
npm ci
npm run build # generate themes/*.json from the token specifications
npm run check # typecheck, lint, tests, key coverage, contrast audit
npm run preview # previews/directions.html and PNGs (not committed)
npm run images # README images in docs/images/
Never edit themes/*.json by hand: a test fails if they differ from the generator's output.
Press F5 in VS Code to try the theme in an Extension Development Host.
License
MIT