daaanny90/iterm2-dark-background.nvim

github github
colorscheme
stars 0
issues 0
subscribers 0
forks 0
CREATED

UPDATED


iterm2-dark-background.nvim

A dark Neovim colorscheme inspired by iTerm2's built-in "Dark Background" preset. Muted, neutral tones with low contrast — designed for long coding sessions without eye fatigue.

Includes matching tmux and iTerm2 color presets for a fully consistent terminal experience.

Palette

Role Color Hex
Background #0D0D0D #0D0D0D
Foreground #B8B8B8 #B8B8B8
Red #B56A5A #B56A5A
Green #6B9B6B #6B9B6B
Yellow #A8A070 #A8A070
Blue #6B8AB8 #6B8AB8
Purple #A87AB8 #A87AB8
Cyan #6BA8A8 #6BA8A8

Features

  • Treesitter and LSP semantic token highlights
  • 30+ plugin integrations (Telescope, Neo-tree, nvim-cmp, blink.cmp, gitsigns, which-key, lazy.nvim, mason, bufferline, lualine, notify, flash, mini.nvim, trouble, dap-ui, noice, and more)
  • Lualine theme (auto-discovered)
  • Two syntax modes: muted (default) and vivid (~15% more saturation)
  • Transparent background support
  • Matching tmux theme and iTerm2 color preset

Installation

lazy.nvim

{
  "daaanny90/iterm2-dark-background.nvim",
  lazy = false,
  priority = 1000,
  config = function()
    require("iterm2dark").setup({})
    vim.cmd.colorscheme("iterm2-dark-background")
  end,
}

packer.nvim

use {
  "daaanny90/iterm2-dark-background.nvim",
  config = function()
    require("iterm2dark").setup({})
    vim.cmd.colorscheme("iterm2-dark-background")
  end,
}

Manual

Clone the repository into your Neovim packages directory:

git clone https://github.com/daaanny90/iterm2-dark-background.nvim \
  ~/.local/share/nvim/site/pack/plugins/start/iterm2-dark-background.nvim

Then add to your init.lua:

require("iterm2dark").setup({})
vim.cmd.colorscheme("iterm2-dark-background")

Configuration

All options with their defaults:

require("iterm2dark").setup({
  transparent = false,     -- transparent background (requires terminal transparency)
  vivid = false,           -- slightly more saturated syntax colors (~15%)
  italic_comments = true,  -- italic style for comments
  bold_keywords = false,   -- bold style for keywords
  terminal_colors = true,  -- set terminal ANSI colors
  dim_inactive = false,    -- dim inactive windows
  lualine_bold = false,    -- bold mode indicator in lualine
})

Note on transparency: When transparent = true, the editor background becomes transparent so your terminal's background shows through. Some highlight groups (floating windows, popups) keep their background for readability. Your terminal emulator must support transparency for this to have any effect.

Lualine

The lualine theme is auto-discovered when the colorscheme is active. If you want to set it explicitly:

require("lualine").setup({
  options = {
    theme = "iterm2-dark-background",
  },
})

Extras

iTerm2 Color Preset

Import extras/iterm2-muted.itermcolors in iTerm2:

  1. Open iTerm2 → Settings → Profiles → Colors
  2. Click Color Presets... → Import...
  3. Select extras/iterm2-muted.itermcolors
  4. Select it from the Color Presets... dropdown

tmux Theme

Source extras/iterm2-muted.tmux in your tmux config:

source-file /path/to/iterm2-dark-background.nvim/extras/iterm2-muted.tmux

The tmux theme includes a minimal status-right with date and time. Customize it to add your own system info scripts:

# Example: add your own status modules
set -g status-right "#(~/.config/tmux/battery.sh) | %d.%m. %H:%M "

Supported Plugins

License

MIT