Debian Codegraph @

manual/src/choosing-colors-styles.md

raw symbols SCIP
1 # Choosing colors (styles)
2
3 Delta detects your terminal background color automatically and chooses appropriate default colors.
4 To override automatic detection use `dark` or `light`, e.g.
5
6 ```gitconfig
7 [delta]
8 dark = true
9 ```
10 This is necessary when running delta in some contexts such as `lazygit` or `zellij`.
11
12 All options that have a name like `--*-style` work in the same way. It is very similar to how
13 colors/styles are specified in a gitconfig file:
14 <https://git-scm.com/docs/git-config#Documentation/git-config.txt-color>
15
16 Here's an example:
17
18 ```gitconfig
19 [delta]
20 minus-style = red bold ul "#ffeeee"
21 ```
22
23 That means: For removed lines, set the foreground (text) color to 'red', make it bold and underlined, and set the background color to `#ffeeee`.
24
25 For full details, see the `STYLES` section in [`delta --help`](./full---help-output.md).