Skip to content
| Marketplace
Sign in
Visual Studio Code>Themes>Midnight SlateNew to Visual Studio Code? Get it now.
Midnight Slate

Midnight Slate

Oleh Filipov

|
20 installs
| (0) | Free
A dark theme for Visual Studio Code with a charcoal interface, muted accents, and semantic syntax highlighting.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Midnight Slate

A dark theme for Visual Studio Code, primarily designed for C#/.NET and Swift/SwiftUI development.

Midnight Slate combines a charcoal interface with muted accents and distinct syntax colors. It includes editor, terminal, Source Control, and workbench colors, with additional attention to JSON, YAML, and Bicep. Other languages, such as Razor, TypeScript, and JavaScript, use the same color palette, but have not been tested extensively.

Preview

C# and .NET

C# class highlighting

C# interface highlighting

ASP.NET Core controller highlighting

Swift

Swift highlighting

SwiftUI highlighting

Source Control

Git diff highlighting

JSON and Bicep

JSON and Bicep highlighting

Installation

Install Midnight Slate from the Visual Studio Code Marketplace.

Open Preferences: Color Theme in Visual Studio Code and select Midnight Slate.

No additional extensions, fonts, or configuration are required to use the theme.

Recommended setup

The screenshots show Midnight Slate alongside a few complementary extensions and editor preferences. None of them are required, but they help reproduce the overall appearance.

Configuring VS Code

To apply the settings below, open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux), select Preferences: Open User Settings (JSON), and add the settings you want.

These settings apply to your editor globally. To limit them to a single project, add them to .vscode/settings.json in that project instead.

Icons

The screenshots use Material Icon Theme for file and folder icons.

Install the extension and select Material Icon Theme using Preferences: File Icon Theme.

For the same subdued appearance, add the following to your VS Code user settings:

{
  "workbench.iconTheme": "material-icon-theme",
  "material-icon-theme.saturation": 0.8,
  "material-icon-theme.opacity": 0.9,
  "material-icon-theme.folders.color": "#81a2be"
}

These settings reduce icon saturation and opacity and give folders a softer blue tone that complements the Midnight Slate palette.

Font

The screenshots use Cascadia Mono with a slightly lighter font weight than its default.

{
  "editor.fontFamily": "'Cascadia Mono', Consolas, 'Courier New', monospace",
  "editor.fontSize": 13,
  "editor.fontVariations": "'wght' 370"
}

Cascadia Mono must be installed separately. Font weight variation depends on the installed font supporting the requested variable axis.

Other editor settings

A few additional settings used in the screenshots:

{
  "explorer.compactFolders": false,
  "editor.renderWhitespace": "none",
  "editor.tabSize": 2,
  "editor.minimap.enabled": false,
  "diffEditor.renderSideBySide": false,
  "diffEditor.ignoreTrimWhitespace": false,
  "terminal.integrated.minimumContrastRatio": 1
}

These are personal layout and presentation preferences rather than requirements of the theme.

Terminal

Midnight Slate includes colors for the VS Code integrated terminal, so its palette works without additional shell configuration.

The terminal appearance in the screenshots also reflects the following shell setup:

  • Shell: Zsh
  • Framework: Oh My Zsh
  • Prompt theme: robbyrussell
  • Plugins: git, zsh-syntax-highlighting, and zsh-autosuggestions

With Oh My Zsh installed, the relevant .zshrc configuration is:

ZSH_THEME="robbyrussell"

plugins=(git zsh-syntax-highlighting zsh-autosuggestions)

source "$ZSH/oh-my-zsh.sh"

The community plugins can be installed using:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
  ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-autosuggestions.git \
  ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

Related extensions and tools

These extensions and tools complement Midnight Slate for C#/.NET and Swift development:

  • Material Icon Theme — file and folder icons.
  • C# Dev Kit — C# and .NET development support.
  • Bicep — Azure infrastructure authoring.
  • YAML — YAML language support.
  • Swift — Swift language support.
  • SweetPad — build, run, and debug iOS and macOS apps from VS Code.
  • SweetPad CLI — build, run, and test Xcode apps from the terminal.
  • GitLens — enhanced Git history and annotations.

These extensions/tools are optional and aren't dependencies of Midnight Slate.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft