Clearsight, a VS Code theme you can actually read

Clearsight is an accessible, colorblind-friendly VS Code theme. Every syntax color, comments included, passes the WCAG AA contrast minimum, and keywords, strings, types and diff colors stay apart under color vision deficiency. It is free, in dark, soft and light.

  • Free, MIT license
  • 6 themes: dark, soft, light, each with or without italics
  • Comments at 6.59:1
VS Code with the Clearsight theme: a TypeScript file in the editor, the Explorer with Git changes and test results in the terminal

Try it on real code

This preview uses the same theme files and the same TextMate grammars as VS Code. Switch the variant, the language, or see the code the way a colorblind developer would.

Variant
Vision
import { type User, type Entry } from '../types';
import { logger } from '../logger';

const CACHE_TTL = 60_000;
const MAX_ENTRIES = 500;
const cache = new Map<string, Entry<User>>();

/**
 * Returns a user by id, cached for one minute.
 * @throws {NotFoundError} when the API answers 404
 */
export async function getUser(id: string, opts?: { fresh: boolean }): Promise<User> {
  const hit = cache.get(id);
  if (hit && !opts?.fresh && Date.now() - hit.at < CACHE_TTL) {
    return hit.value;
  }

  const res = await fetch(`/api/users/${encodeURIComponent(id)}`);
  if (!res.ok) {
    logger.warn('user lookup failed', { id, status: res.status });
    throw new NotFoundError(`User ${id} not found`);
  }

  const user = (await res.json()) as User;
  cache.set(id, { at: Date.now(), value: user });
  return user;
}

The color vision simulations use the Machado, Oliveira and Fernandes (2009) model at full severity.

We tested the 20 most installed VS Code themes

Before building Clearsight, we measured what developers actually use. We took the 20 most installed color themes on the VS Code Marketplace, highlighted the same TypeScript, Python, PHP, HTML, CSS and Go files with each one, and measured every color against the editor background.

16 of 20default themes draw code comments below the 4.5:1 WCAG AA minimum. They account for 69% of all installs in the group.
3.67:1is the median comment contrast. WCAG asks for at least 4.5:1 for normal text.
18 of 20have at least one pair of syntax colors that becomes hard to tell apart in a color vision deficiency simulation.
Comment contrast against the editor backgroundDefault variant of each theme. The dashed line is the WCAG AA minimum of 4.5:1.
  1. Clearsight (ours)6.59
  2. Winter is Coming6.44
  3. GitHub6.15
  4. Catppuccin5.81
  5. SynthWave '844.66
  6. Andromeda4.29
  7. Noctis3.97
  8. Night Owl3.87
  9. Shades of Purple3.85
  10. One Dark Pro3.73
  11. Theme (tal7aouy)3.73
  12. Cobalt23.62
  13. Ayu3.15
  14. Dracula3.03
  15. Monokai Pro2.88
  16. Palenight2.84
  17. One Monokai2.76
  18. Tokyo Night2.50
  19. Atom One Light2.47
  20. Bearded2.39
  21. Atom One Dark2.32

Across all 141 variants the 20 extensions ship, 85% draw comments below 4.5:1. Low-contrast comments are usually a deliberate choice, meant to push them into the background. The problem is that comments are often the part of unfamiliar code you most need to read.

Contrast results for the default variant of the 20 most installed VS Code color themes
#ThemeInstallsComment contrastComments pass AACode below AAColorblind collisions
1GitHub Theme
GitHub Dark Default
20.7M6.15:1Yes0.0%2
2One Dark Pro
One Dark Pro
12.9M3.73:1No20.5%5
3Dracula Theme Official
Dracula Theme
11.2M3.03:1No8.9%2
4Atom One Dark Theme
Atom One Dark
7.4M2.32:1No18.2%5
5Ayu
Ayu Dark
4.3M3.15:1No8.6%4
6Monokai Pro
Monokai Pro
4.2M2.88:1No9.2%1
7Winter is Coming Theme
Winter is Coming (Dark Blue)
3.8M6.44:1Yes0.3%4
8Night Owl
Night Owl
3.6M3.87:1No8.0%3
9Tokyo Night
Tokyo Night
3.0M2.50:1No11.2%4
10One Monokai Theme
One Monokai
3.0M2.76:1No25.4%2
11Palenight Theme
Palenight Theme
2.7M2.84:1No12.7%2
12SynthWave '84
SynthWave '84
2.6M4.66:1Yes12.4%2
13Shades of Purple
Shades of Purple
2.4M3.85:1No7.2%0
14Cobalt2 Theme Official
Cobalt2
1.9M3.62:1No10.1%0
15Andromeda
Andromeda
1.7M4.29:1No30.3%2
16Theme (by tal7aouy)
Theme
1.6M3.73:1No35.7%4
17Bearded Theme
Bearded Theme Monokai Metallian
1.5M2.39:1No17.9%2
18Catppuccin for VSCode
Catppuccin Mocha
1.5M5.81:1Yes0.0%3
19Atom One Light Theme
Atom One Light
1.5M2.47:1No44.8%3
20Noctis
Noctis
1.4M3.97:1No11.5%3

How we measured: the six files were highlighted with Shiki, which runs the same grammars and theme rules as VS Code, without language-server semantic highlighting. "Code below AA" is the share of code characters drawn in a color under 4.5:1. A colorblind collision is a pair of roles (for example keyword and function) that differ by at least 0.07 in OKLab with normal vision and by less than 0.07 in a protanopia, deuteranopia or tritanopia simulation. Clearsight was designed against these same checks, so it is not ranked in the table. Data collected on 23 November 2026.

What every Clearsight color has to pass

The palette lives in one file. A script checks it on every change and fails the build when a color breaks a rule, so the theme cannot drift.

  • 4.5:1 for every token

    Keywords, strings, functions, types and comments all clear the WCAG AA minimum on the editor background and on the highlighted current line.

  • Comments you can read

    Comments stay quieter than the code around them, but never drop below 4.5:1. In the default variant they sit at 6.59:1.

  • Never red against green alone

    Pairs that carry meaning are separated by lightness as well as hue, then checked in protanopia, deuteranopia and tritanopia simulations.

  • No color louder than your text

    Syntax colors are capped below the contrast of plain text, so code reads as text with accents rather than a wall of neon.

  • A second opinion from APCA

    Colors are also measured with APCA, a newer perceptual contrast model that judges text on dark backgrounds more realistically than the WCAG 2 formula.

  • The whole workbench

    The terminal colors, Git and diff views, bracket pairs, inline AI suggestions, chat, notebooks and debugging are covered, not only the editor.

Three variants, one palette

Click any color to copy its hex value.

Clearsight

The default. A blue-gray background, never pure black, with text at about 13:1. Background #151a20.

Clearsight Soft

Lower contrast for long sessions and light sensitivity. Every token still passes 4.5:1. Background #20242a.

Clearsight Light

For daylight and bright rooms. Tuned on its own, not an inverted dark theme. Background #f8f7f2.

Install and customize

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for Clearsight by TMS Outsource and select Install.
  3. Press Ctrl+K then Ctrl+T, and pick Clearsight, Clearsight Soft or Clearsight Light.

Themes cannot set your font. Clearsight looks best with a typeface that has clear shapes, such as JetBrains Mono, Fira Code or Cascadia Code. Our guide on how to change the font in VS Code walks through the settings.

To adjust a single color, add an override to your settings.json. If you have not edited it before, here is how to open settings.json in VS Code.

"workbench.colorCustomizations": {
  "[Clearsight]": {
    "editor.lineHighlightBackground": "#1f252d"
  }
},
"editor.tokenColorCustomizations": {
  "[Clearsight]": {
    "comments": "#9fb3c2"
  }
}

For more editor tips, see the VS Code workflow cheat sheet and our VS Code guides.

Questions

Is Clearsight free?

Yes. Clearsight is free and open source under the MIT license, and it is published on the Visual Studio Code Marketplace.

Which variants are included?

Three: Clearsight (dark), Clearsight Soft (lower contrast) and Clearsight Light. Each one also comes in a No Italics version, so six themes in total.

Why are the comments brighter than in most themes?

Comments are text you have to read, especially in code you did not write. In Clearsight they stay quieter than the code around them, but every comment color is above the 4.5:1 WCAG AA minimum. In our test of the 20 most installed themes, the median comment contrast was 3.67:1.

Is Clearsight good for colorblind developers?

It was built for them. Pairs that carry meaning, such as keywords and functions, strings and numbers, added and deleted lines, errors and warnings, were checked under protanopia, deuteranopia and tritanopia simulations and separated by lightness as well as hue. Simulations are a model, not a person, so feedback from colorblind developers is welcome on GitHub.

How do I turn off italics?

Open the Command Palette, run Preferences: Color Theme and pick a variant whose name ends in No Italics.

Does it work in Cursor, Windsurf or VSCodium?

Those editors install extensions from Open VSX. Clearsight is being published there as well; until that listing is live, VS Code is the supported editor.

Does Clearsight support semantic highlighting?

Yes. Semantic highlighting is enabled, and the semantic token colors follow the same palette as the TextMate rules, so a language server never pulls a color outside the checked set.

Sources

  • W3C, Web Content Accessibility Guidelines (WCAG) 2.2, Success Criterion 1.4.3 Contrast (Minimum). https://www.w3.org/TR/WCAG22/
  • Andrew Somers, APCA, the Accessible Perceptual Contrast Algorithm. https://github.com/Myndex/apca-w3
  • Machado, G. M., Oliveira, M. M., Fernandes, L. A. F. (2009). A Physiologically-based Model for Simulation of Color Vision Deficiency. IEEE Transactions on Visualization and Computer Graphics, 15(6).
  • Björn Ottosson (2020). A perceptual color space for image processing (OKLab). https://bottosson.github.io/posts/oklab/
  • Birch, J. (2012). Worldwide prevalence of red-green color deficiency. Journal of the Optical Society of America A, 29(3).
  • Visual Studio Marketplace, Themes category, install counts retrieved on 23 November 2026. https://marketplace.visualstudio.com/search?target=VSCode&category=Themes&sortBy=Installs
  • Shiki, the syntax highlighter used to apply VS Code grammars and themes in the test. https://shiki.style