Themes
gitto comes with four themes. Pick one in Settings → General → Theme or in View → Theme:
| Theme | Look |
|---|---|
| Sketchbook | The default: a paper look with ink outlines, hard shadows and yellow highlights. |
| Night | A dark version of Sketchbook, on indigo. |
| Classic Light | System fonts, hairlines, soft shadows and a blue accent. |
| Classic Dark | The same, in the dark. |
System follows the appearance of your desktop: Sketchbook by day, Night in the dark. On an Omarchy desktop it follows the Omarchy theme instead.
Your own theme
A theme is one file in ~/.gitto/themes, named <theme>.toml. Every file there is listed after the built-in
themes. When you save the file, gitto loads it again within a second, so you can edit it while gitto is open.
The easiest way to start is New theme from this one in the settings. It writes the theme in use to
~/.gitto/themes/my-theme.toml with every key spelled out, picks it and opens the file.
The file is made of flat key = "value" lines. Lines starting with # are comments. There are two ways to write
one.
From three colors
Set a background, a foreground and an accent color. gitto works out all other colors from them and keeps the text readable. The named colors are optional and change the diff, the states and the graph.
name = "Latte"
mode = "light"
background = "#eff1f5"
foreground = "#4c4f69"
accent = "#1e66f5"
red = "#d20f39"
green = "#40a02b"
yellow = "#df8e1d"
The named colors are red, green, yellow, blue, magenta, cyan, orange, brown, bright_red,
bright_green, bright_magenta and bright_cyan. These are the names of an Omarchy colors.toml: copy one over and
drop the keys that aren’t listed here.
From a built-in theme
Start from a theme with base and replace only what should differ.
name = "Mint Sketchbook"
base = "sketchbook"
accent_fill = "#7fe0b0"
selection = "#7fe0b0"
lane1 = "#1f9d6b"
base is one of sketchbook, night, classic-light and classic-dark. Without it, a theme starts from
Sketchbook, or from Night with mode = "dark".
You can also mix both: any key below can come after the three colors.
Keys
| Key | Value | Meaning |
|---|---|---|
name |
text | The name in the list. The file name when left out. |
mode |
light or dark |
Whether the theme is light or dark. It sets the base theme and how text is smoothed. |
base |
a built-in theme | The theme to start from. |
outline_width |
0 to 4 | The edge of buttons, fields, dialogs and menus. |
radius |
0 to 20 | The corners of buttons and fields. |
window_radius |
0 to 30 | The corners of dialogs. |
menu_radius |
0 to 20 | The corners of menus and popovers. |
shadows |
hard or soft |
Hard: offset shadows without blur, an edge on the selected row, outlined primary buttons. |
button_shadow |
0 to 6 | How far the shadow under a button reaches. 0 for none. |
fonts |
bundled or system |
Balsamiq Sans, Instrument Sans and JetBrains Mono, or the fonts of the system. |
lane1 … lane12 |
color | The lanes of the commit graph. |
Colors are "#rrggbb", or "#rrggbbaa" with transparency.
Colors
| Keys | Where |
|---|---|
panel_bg, sidebar_bg, input_bg, stripe, tab_track |
Backgrounds: the content, the sidebar and bars, fields, striped rows, tab tracks and quiet selections. |
text, muted, hint, faint, icon |
Text, secondary text, placeholders, line numbers, toolbar icons. |
accent, accent_fill, accent_ink |
Links; the fill of primary buttons; the text and outline on that fill. |
selection, selection_ink, row_selected, row_hover |
The selected row and what is written on it; soft selections; the row under the pointer. |
outline, shadow, border, separator, separator_strong, input_stroke, window_stroke |
The edges of controls, shadows, borders, the lines between rows and between panes, the edges of fields and dialogs. |
button, button_hover |
Buttons at rest and under the pointer. |
added_bg, removed_bg, added_word, removed_word, added_strong, removed_strong, hunk_bg, selected_line, comment_line |
The diff: lines, changed words, counts, hunk headers, picked lines. |
ok, warning, warning_bg, error, modified, renamed, merge_fill |
States: passing, waiting, failing, changed files, the Merge button. |
branch, tag, stash, head, worktree, worktree_fill |
Refs in the graph and the sidebar. |
When gitto doesn’t know a key or can’t read a value, it says so under the theme picker and shows the default theme until the file is fixed.