Kanagawa for gitui
A community-maintained theme inspired by Hokusai's The Great Wave off Kanagawa.
Using the Kanagawa palette by Tommaso Laurenzi (rebelot).
- gitui 0.23 or later. Tested with gitui 0.28.1.
- A terminal with true color.
- Kanagawa for bat, for syntax colors in the Files tab. gitui reads
.tmThemefiles, and bat provides them.
Clone the repository and run ./install.sh. It installs the three themes into
~/.config/gitui, and copies the matching syntax themes from
~/.config/bat/themes. Install Kanagawa for bat first. ./install.sh installs all
three variants, or only the ones you name, for example ./install.sh dragon lotus.
./uninstall.sh takes the same names and removes them.
Start gitui with a variant:
gitui -t kanagawa-wave.ronTo use a variant every time, copy it to ~/.config/gitui/theme.ron:
cp ~/.config/gitui/kanagawa-wave.ron ~/.config/gitui/theme.rongitui does not set a background color. The terminal background shows, so use a terminal with the same variant, for example from the Kanagawa terminal ports.
Every color comes from the shared palette, picked by role, so each variant uses its own value for the same role.
| gitui field | Palette role |
|---|---|
selection_bg, push_gauge_bg |
ui.bg_visual |
selection_fg, command_fg |
ui.fg |
cmdbar_bg |
ui.bg_m3 |
disabled_fg |
syn.comment |
selected_tab, block_title_focused, push_gauge_fg |
syn.fun |
diff_line_add, diff_file_added |
vcs.added |
diff_line_delete, diff_file_removed |
vcs.removed |
diff_file_modified |
vcs.changed |
diff_file_moved, commit_hash |
syn.keyword |
commit_time |
syn.special1 |
commit_author |
syn.string |
branch_fg |
syn.identifier |
tag_fg |
syn.constant |
danger_fg |
diag.error |
use_selection_fg is off, so a selected line keeps its own color.
scripts/generate.py lists every field.
Contrast ratios against ui.bg were computed for each foreground. In Wave and
Dragon, every pair is 3.2:1 or higher, and most are above 4.5:1. In Lotus, the
palette roles for modified files (vcs.changed, 2.0:1), commit time (syn.special1,
2.7:1), and the muted text (syn.comment, 2.9:1) stay below 3:1. The port keeps
the roles, as the style guide says, and does not claim WCAG conformance.
Report bugs and request changes in this port's issue tracker. Contributions are welcome.
See CONTRIBUTING.md before opening a pull request.
MIT. See LICENSE.




