Skip to content

ThorstenRhau/token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

60 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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
β”œβ”€β”€ Makefile
β”œβ”€β”€ 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
  • mini.surround
  • 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

Packages

 
 
 

Contributors

Languages