tokyonight.nvim
repository·main·Indexed 27 days ago
https://github.com/folke/tokyonight.nvimA Lua-based color scheme for Neovim ported from Visual Studio Code, featuring Moon, Storm, Night, and Day variants. It includes specialized support for numerous Neovim plugins and provides configuration extras for external tools such as terminal emulators (Ghostty, Alacritty, Kitty), CLI tools (aider, eza), and other editors like Vim and Helix.
What's inside tokyonight.nvim
- Tokyo Night is a dark and light Neovim theme written in Lua. It is a port of the Visual Studio Code TokyoNight theme and includes extra themes for terminal emulators and shells such as Kitty, Alacritty, iTerm, and Fish.
Configure Tokyo Night theme for Ghostty terminal
mainTo use Tokyo Night themes in the Ghostty terminal, follow these steps:
- Create the themes directory:
~/.config/ghostty/themes. - Download the desired Tokyo Night theme file into that
themesdirectory. - Open your Ghostty configuration file at
~/.config/ghostty/config. - Set the
themeoption to the name of the downloaded file.
To see a full list of available themes recognized by your Ghostty installation, run the following command in your terminal:
ghostty +list-themestheme = "tokyonight_night"- Create the themes directory:
Install Tokyo Night themes in Vivaldi Browser
mainTo apply a Tokyo Night theme to your Vivaldi browser:
- Open Vivaldi and navigate to Settings > Themes.
- Click the Import Themes button.
- Select one of the generated
.zipfiles. - Once the theme appears in your themes list, click it to apply the colors.
Apply Tokyo Night colors in Termux
mainTo use Tokyo Night color schemes within the Termux terminal emulator, you must manually update the Termux color properties file.
- Select your preferred Tokyo Night flavor.
- Copy the contents of the corresponding
tokyonight_flavour.propertiesfile to~/.termux/colors.properties. - Apply the changes by running the
termux-reload-settingscommand or by restarting the Termux application.
Install Tokyo Night for Gemini CLI
mainTo use Tokyo Night colors in the Gemini CLI, you must configure the
ui.themeproperty in yoursettings.jsonfile.Settings File Locations:
- Linux/macOS:
~/.gemini/settings.json - Windows:
%USERPROFILE%\.gemini\settings.json
Method 1: Using an absolute path Point the
ui.themeproperty to the absolute path of your chosen.jsontheme file.Method 2: Using customThemes Copy the contents of the theme JSON file into the
ui.customThemesobject in yoursettings.json, then setui.themeto the name of that custom theme.{ "ui": { "theme": "/absolute/path/to/tokyonight_night.json" } }- Linux/macOS:
Install tokyonight.nvim
mainInstall the theme using your preferred Neovim package manager. If using
lazy.nvim, ensurelazy = falseandpriority = 1000are set so the theme loads immediately.{ "folke/tokyonight.nvim", lazy = false, priority = 1000, opts = {}, }Enable Markdown syntax highlighting in aider
mainThe
code-themesetting in aider controls syntax highlighting for code blocks in LLM Markdown responses. This feature requires the Pygments extra and is disabled by default.Important: The Pygments extra must be installed in the same Python environment where
aideris installed.Use Tokyonight themes with eza
mainTo apply Tokyonight themes to
eza(a modern replacement forls), you must provide a theme configuration file at the expected location for your operating system.Linux/Unix: Copy the theme
.ymlfile to~/.config/eza/theme.yml.macOS:
ezalooks for the theme file in~/Library/Application Support/ezaby default.You can override the default configuration directory on macOS by setting the
EZA_CONFIG_DIRenvironment variable.Apply Tokyo Night colors to st (suckless terminal)
mainTo use Tokyo Night colors in the
stterminal, you must replace the color definitions in yourstbuild'sconfig.hwith the contents of one of the provided flavor header files from this repository.1. Choose your flavour. 2. Copy the contents of `flavor.h` and replace into your st build's `config.h`. 3. Then `make install` it in st folder.Install Tokyo Night for Vim
mainTo use Tokyo Night as a Vim colorscheme, clone the repository locally and add the Vim extra directory to your runtime path (
rtp).- Clone the repository:
git clone https://github.com/folke/tokyonight.nvim ~/projects/tokyonight.nvim - Configure your
~/.vimrcto include the path to the Vim extras and set the colorscheme.
set termguicolors set rtp+=~/projects/tokyonight.nvim/extras/vim colorscheme tokyonight- Clone the repository:
Use Tokyo Night with Tailwind CSS v4
mainTo use the Tokyo Night theme in a Tailwind CSS v4 project, follow these steps:
- Copy the theme files: Copy the
.cssfiles (e.g.,tokyonight_day.css,tokyonight_moon.css, etc.) into your project directory. - Import the theme: In your main CSS entry point (the file containing
@import "tailwindcss";), import the desired Tokyo Night theme file(s). - Apply colors: Use the generated color utility classes in your HTML/templates. The classes follow the pattern
[property]-[theme-name]-[color-role](e.g.,bg-tokyonight-moon-bg).
/* styles.css */ @import "tailwindcss"; @import "./tokyonight_day.css"; @import "./tokyonight_moon.css"; @import "./tokyonight_night.css"; @import "./tokyonight_storm.css"; /* Usage in HTML */ <button class="border border-tokyonight-moon-border bg-tokyonight-moon-bg text-tokyonight-moon-fg"> Click me! </button>- Copy the theme files: Copy the
Use Tokyo Night themes in aider
mainTo apply Tokyo Night themes to the aider CLI tool, copy the contents of the theme's
.ymlfile into your.aider.conf.ymlfile.Depending on your needs, the
.aider.conf.ymlfile can be placed in different locations to achieve different scopes:- Global (per-user)
- Per-repository
- Per-directory
Refer to the official aider documentation for details on configuration file locations.