A high-contrast, vibrant dark theme for VS Code, Vim, Neovim and nano.
VS Code Marketplace · Releases · Palette · Contributing
I never found a color theme that made code easy to read and looked good, so I built my own. Voltage pairs rich, vivid colors with a clean dark background, tuned for each language so you can tell at a glance what you're looking at. No dimming, no washed-out colors.
SystemVerilog
C (excerpt from curl)
Python (excerpt from omlx)
JSON
| Tool | Quickest way |
|---|---|
| VS Code | code --install-extension VerdantLeaf.voltage-theme |
| Vim, Neovim and nano | curl -fsSL https://raw.githubusercontent.com/VerdantLeaf/voltage-theme/main/bash/update-voltage.sh | bash |
For the exact look in a terminal, set its background to #0d1117.
Install Voltage Theme from the Marketplace, then press Ctrl+Shift+P → Preferences: Color Theme → Voltage.
To install offline, download the .vsix from Releases and run:
code --install-extension voltage-theme-<version>.vsixThe extension also adds syntax highlighting for nano config files (.nanorc).
Voltage colors bracket pairs, but the guide lines connecting them are an editor setting you have to turn on in settings.json:
{
"editor.guides.bracketPairs": true
}Voltage doesn't include file icons. If you use Material Icon Theme, these tints pair well:
{
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.folders.color": "#F56600",
"material-icon-theme.files.color": "#522DB0"
}The command in the table above downloads the latest nano and Vim/Neovim releases and runs their installers, skipping any editor you don't have. Re-run it to update.
You can also install from a clone, or from a voltage-vim-* / voltage-nano-* tarball on the Releases page:
./vim/install.sh # --vim or --nvim to pick one
./nano/install.shEach installer adds a marked block to your config and leaves the rest alone. Run it with --uninstall to remove Voltage.
Vim and Neovim
- Colors match VS Code exactly in a 24-bit color terminal (inside tmux, enable
Tc/RGB). Otherwise they fall back to the nearest 256-color values. - Neovim with Treesitter/LSP colors declarations, calls, parameters and members separately. Plain Vim's regex syntax can't tell parameters or declarations apart.
- Files are installed to
~/.vim/colors/and~/.config/nvim/colors/.
nano
- Covers C/C++/CUDA, Python, SystemVerilog, Tcl/SDC, JSON, YAML, TOML, Markdown and shell.
- Colors are mapped to the nearest 256-color values. nano older than 6.0 (e.g. on RHEL 9) only gets named colors; after upgrading, re-run the installer.
- Highlighting is regex-based, so semantic distinctions such as parameters vs. locals aren't available.
- Files are installed to
~/.config/nano/voltage/.
This repo also holds my personal .bashrc, so I can set up a new server in moments. It's shared as-is: read it before installing, since it changes the behavior of commands such as less, du and nano.
It includes a prompt showing the git branch, prefix-based history search, aliases for git, ripgrep and fd, and helpers such as mkcd and lz (directory sizes).
curl -fsSL https://raw.githubusercontent.com/VerdantLeaf/voltage-theme/main/bash/update-bash.sh | bash
source ~/.bashrcThe config is saved to ~/.bashrc.verdantleaf and sourced from your ~/.bashrc, so your existing settings file isn't replaced.
| Command | What it does |
|---|---|
update-bash |
Overwrites ~/.bashrc.verdantleaf with the latest version from main |
update-voltage |
Installs the latest nano and Vim/Neovim themes |
update-tmux |
Installs or updates the tmux config below |
Nothing is fetched automatically when a shell starts. To uninstall, delete ~/.bashrc.verdantleaf and the source line in ~/.bashrc.
The tmux config provides:
- Mouse mode, scrolling one line per wheel step instead of five
- Windows and panes numbered from 1
- A Voltage status bar with window names taken from the running program or current folder
- A session badge that turns gold after
Ctrl+b, orchid in copy mode and red when panes are synchronized
curl -fsSL https://raw.githubusercontent.com/VerdantLeaf/voltage-theme/main/tmux/update-tmux.sh | bashIt's saved to ~/.tmux.verdantleaf.conf and sourced from your ~/.tmux.conf, so your existing settings file isn't replaced. New tmux servers load it automatically; in a running one, use tmux source-file ~/.tmux.verdantleaf.conf. Update with the same command, or update-tmux if you use the Bash config. To uninstall, delete the file and the source-file line, then restart tmux.
MIT. This is a living theme: colors get adjusted as new languages and edge cases come up.