Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>InvariantNew to Visual Studio Code? Get it now.
Invariant

Invariant

Andre Brait

| (0) | Free
A semantic dark editor theme based on Monokai, where color identifies what a symbol is and formatting shows how it is used.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
Invariant logo

Invariant

A semantic dark editor theme based on Monokai.

Invariant uses color to identify what a symbol is and formatting to show how it is being used. Common code stays relatively quiet, while types, parameters, methods, reserved names, annotations, and comments remain easy to find.

Java example using Invariant

Color says what; formatting says how

  • Variables and fields use a warm neutral foreground.
  • Parameters are blue and types are cyan.
  • Concrete method calls are green; signature-only methods are pale blue when the language service exposes that distinction.
  • Keywords and reserved names such as this, self, and cls are bold pink.
  • Static members are italic without changing their semantic color.
  • Comments and annotations are intentionally white and prominent.
  • Reassignment and other contextual states add formatting instead of replacing a symbol's identity color.

Examples

Java lambdas

Java lambda captures using Invariant

Parameters remain blue while captured values gain contextual treatment. Concrete calls remain green throughout the expression.

Kotlin

Kotlin example using Invariant

Python

Python example using Invariant

Python keeps parameters blue, fields neutral, calls green, and reserved instance and class references such as self and cls bold pink.

Language support

Visual Studio Code applies the shared palette through TextMate scopes and semantic tokens. The exact distinctions available depend on each language extension: the theme preserves semantic information emitted by the language service, but it cannot infer information the service does not provide.

Installation

Install Invariant from the Extensions Marketplace and select it from Preferences: Color Theme. From the Command Palette, run:

ext install andrebrait.invariant-colors

See the project README for the complete palette, editor differences, Vim and Neovim installation, and provenance. Problems and suggestions are tracked in GitHub Issues.

License

Eclipse Public License 2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft