# Support setting custom background color for syntax highlighting \(\#12400\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7969a10643bbbde01ee71b553a6141d816e6c17b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7969a10643bbbde01ee71b553a6141d816e6c17b

Requested commit: 7969a10643bbbde01ee71b553a6141d816e6c17b

Commit: 7969a10643bbbde01ee71b553a6141d816e6c17b

Tree: 1c1cbfe2894fad100985f37198caa84aa92fa96b

Author: Danielle Maywood

Committer: GitHub

## Message

```
Support setting custom background color for syntax highlighting (#12400)

Release Notes:

- Added support for `background_color` in `syntax` map in `theme.json`.

This adds support for setting a `background_color` for styles inside the
`syntax` map for themes defined in `theme.json`. The field is optional
so there should be no backwards compatibility issues.

It is worth noting that the current behaviour for selecting text is that
the background colours will mix/blend (I'm not sure the correct term
here). Changing this behaviour, or making it configurable, looks to be a
far more complex issue and I'm not sure I know how to do it.
```

## Parents

- [fcb4abf18b20281502b48e8691beede2b37934d8](https://git.cafe/gitcafe/zed/commit/fcb4abf18b20281502b48e8691beede2b37934d8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7969a10643bbbde01ee71b553a6141d816e6c17b?format=markdown)
