ThorstenRhau/token

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

UPDATED


token

Token is a warm, muted Neovim 0.12+ colorscheme that is written in Lua. Dark and light variants, no configuration. There is no setup function. Load it and it works. The idea is simple: a theme you never configure is a theme you stop thinking about.

Terminal themes for Ghostty, fish, delta, tmux and others are generated from the same palette file, so everything matches without extra work.

Features

  • Dark and light variants, switching at runtime via vim.o.background
  • Treesitter capture groups for accurate syntax highlighting
  • LSP semantic token highlights
  • LSP diagnostic signs, virtual text, and underlines
  • Diff highlights for buffers and signs
  • Legacy syntax group coverage for non-Treesitter filetypes
  • Terminal color support (ANSI colors 0–15)
  • Lualine theme included
  • Contrib themes for terminal tools generated from the same palette

Showcase

Dark Light
Dark variant 1 Light variant 1
Dark variant 2 Light variant 2

Install

-- vim.pack (Neovim 0.12+)
vim.pack.add('https://github.com/ThorstenRhau/token')

-- lazy.nvim
{ 'ThorstenRhau/token' }

Usage

vim.cmd.colorscheme('token')

Respects vim.o.background. Set dark or light before loading the colorscheme, or change it at runtime to switch variants.

Structure

token/
├── colors/
│   └── token.lua
├── lua/
│   ├── lualine/themes/
│   │   └── token.lua
│   └── token/
│       ├── init.lua
│       ├── palette.lua
│       ├── terminal.lua
│       └── groups/
│           ├── init.lua
│           ├── editor.lua
│           ├── syntax.lua
│           ├── treesitter.lua
│           ├── lsp.lua
│           ├── diagnostics.lua
│           ├── diff.lua
│           └── plugins/
│               ├── init.lua
│               ├── blink.lua
│               ├── claudecode.lua
│               ├── diffview.lua
│               ├── fugitive.lua
│               ├── fzf.lua
│               ├── gitsigns.lua
│               ├── hlchunk.lua
│               ├── ibl.lua
│               ├── markview.lua
│               ├── mason.lua
│               ├── matchup.lua
│               ├── mini.lua
│               ├── neogit.lua
│               ├── nvimtree.lua
│               ├── oil.lua
│               ├── snacks.lua
│               ├── treesitter_context.lua
│               └── trouble.lua
├── contrib/
│   ├── bat/
│   ├── delta/
│   ├── emacs/
│   ├── fish/
│   ├── fzf/
│   ├── ghostty/
│   ├── lazygit/
│   ├── ripgrep/
│   ├── starship/
│   └── tmux/
├── scripts/
│   └── gen_contrib.lua
├── README.md
└── LICENSE

Supported plugins

  • blink.cmp
  • claudecode.nvim
  • diffview.nvim
  • fugitive.vim
  • fzf-lua
  • gitsigns.nvim
  • hlchunk.nvim
  • indent-blankline.nvim
  • lualine.nvim
  • markview.nvim
  • mason.nvim
  • mini.clue
  • mini.icons
  • mini.statusline
  • neogit
  • nvim-tree.lua
  • oil.nvim
  • snacks.nvim
  • treesitter-context
  • trouble.nvim
  • vim-matchup

Contrib themes

Pre-generated theme files for terminal tools. Auto-generated from the palette; rebuild after palette changes with make contrib.

Tool Files Usage
bat contrib/bat/token-{dark,light}.tmTheme Copy to bat themes dir, run bat cache --build
delta contrib/delta/token.gitconfig Include from ~/.gitconfig, set features = token-dark in [delta]
emacs contrib/emacs/token-{dark,light}-theme.el Copy to ~/.emacs.d/themes/, then (load-theme 'token-dark t)
fish contrib/fish/token.theme Copy to ~/.config/fish/themes/, then run fish_config theme choose token
fzf contrib/fzf/token-{dark,light}.fish source /path/to/token-dark.fish in config.fish to append theme colors to FZF_DEFAULT_OPTS
ghostty contrib/ghostty/token-{dark,light} Copy to ~/.config/ghostty/themes/, then set theme = dark:token-dark,light:token-light
lazygit contrib/lazygit/token-{dark,light}.yml Merge into ~/.config/lazygit/config.yml
ripgrep contrib/ripgrep/token-{dark,light}.ripgreprc RIPGREP_CONFIG_PATH=/path/to/token-dark.ripgreprc
starship contrib/starship/token-{dark,light}.toml Append to starship.toml, set palette = "token"
tmux contrib/tmux/token-{dark,light}.conf source-file /path/to/token-dark.conf in tmux.conf

License

BSD 3-Clause