Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions extras/gemini_cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Tokyo Night for Gemini CLI

This directory contains the Tokyo Night color scheme for the [Gemini CLI](https://github.com/google-gemini/gemini-cli).

## Installation

1. Choose your preferred Tokyo Night style (Storm, Moon, Night, or Day).
2. Open your Gemini CLI `settings.json` file. You can find this in:
- **Linux/macOS:** `~/.gemini/settings.json`
- **Windows:** `%USERPROFILE%\.gemini\settings.json`
3. Add or update the `ui.theme` property with the absolute path to your chosen theme file:

```json
{
"ui": {
"theme": "/absolute/path/to/tokyonight_night.json"
}
}
```

Alternatively, you can copy the contents of the JSON file into the `ui.customThemes` object in your `settings.json`:

```json
{
"ui": {
"customThemes": {
"Tokyo Night": {
"name": "Tokyo Night",
"type": "custom",
...
}
},
"theme": "Tokyo Night"
}
}
```

## Styles

- **tokyonight_storm.json**: Tokyo Night Storm (Dark)
- **tokyonight_moon.json**: Tokyo Night Moon (Dark)
- **tokyonight_night.json**: Tokyo Night (Dark)
- **tokyonight_day.json**: Tokyo Night Day (Light)
52 changes: 52 additions & 0 deletions lua/tokyonight/extra/gemini_cli.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
local util = require("tokyonight.util")

local M = {}

--- @param colors ColorScheme
--- @return string
function M.generate(colors)
return util.template([[
{
"name": "${_style_name}",
"type": "custom",
"text": {
"primary": "${fg}",
"secondary": "${fg_dark}",
"response": "${fg}"
},
"background": {
"primary": "${bg}",
"diff": {
"added": "${diff.add}",
"removed": "${diff.delete}"
}
},
"border": {
"default": "${bg_highlight}",
"focused": "${blue}"
},
"ui": {
"comment": "${comment}",
"symbol": "${fg_dark}",
"gradient": ["${blue}", "${magenta}", "${cyan}"]
},
"Background": "${bg}",
"Foreground": "${fg}",
"LightBlue": "${blue1}",
"AccentBlue": "${magenta}",
"AccentPurple": "${purple}",
"AccentCyan": "${cyan}",
"AccentGreen": "${orange}",
"AccentYellow": "${green}",
"AccentRed": "${red}",
"DiffAdded": "${diff.add}",
"DiffRemoved": "${diff.delete}",
"Comment": "${comment}",
"Gray": "${fg_dark}",
"DarkGray": "${bg_dark}",
"GradientColors": ["${blue}", "${magenta}", "${cyan}"]
}
]], colors)
end

return M
1 change: 1 addition & 0 deletions lua/tokyonight/extra/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ M.extras = {
foot = { ext = "ini", url = "https://codeberg.org/dnkl/foot", label = "Foot" },
fuzzel = { ext = "ini", url = "https://codeberg.org/dnkl/fuzzel", label = "Fuzzel" },
fzf = { ext = "sh", url = "https://github.com/junegunn/fzf", label = "Fzf" },
gemini_cli = { ext = "json", url = "https://github.com/google-gemini/gemini-cli", label = "Gemini CLI" },
ghostty = { ext = "", url = "https://github.com/ghostty-org/ghostty", label = "Ghostty" },
gitui = { ext = "ron", url = "https://github.com/extrawurst/gitui", label = "GitUI" },
gnome_terminal = { ext = "dconf", url = "https://gitlab.gnome.org/GNOME/gnome-terminal", label = "GNOME Terminal" },
Expand Down