summaryrefslogtreecommitdiffstats
path: root/manual/src/choosing-colors-styles.md
blob: 2b053d6be0178f90d9c51cd30e17be28d73d1f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Choosing colors (styles)

Delta detects your terminal background color automatically and chooses appropriate default colors.
To override automatic detection use `dark` or `light`, e.g.

```gitconfig
[delta]
    dark = true
```
This is necessary when running delta in some contexts such as `lazygit` or `zellij`.

All options that have a name like `--*-style` work in the same way. It is very similar to how
colors/styles are specified in a gitconfig file:
<https://git-scm.com/docs/git-config#Documentation/git-config.txt-color>

Here's an example:

```gitconfig
[delta]
    minus-style = red bold ul "#ffeeee"
```

That means: For removed lines, set the foreground (text) color to 'red', make it bold and underlined, and set the background color to `#ffeeee`.

For full details, see the `STYLES` section in [`delta --help`](./full---help-output.md).