# Add support for loading user themes \(\#7027\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9cb5a84b8d37062bdd0f0afe7aeae64f714d1568

Requested commit: 9cb5a84b8d37062bdd0f0afe7aeae64f714d1568

Commit: 9cb5a84b8d37062bdd0f0afe7aeae64f714d1568

Tree: 07a9987a49ff91620dd70211c73c427d4ff437d9

Author: Marshall Bowers

Committer: GitHub

## Message

````
Add support for loading user themes (#7027)

This PR adds support for loading user themes in Zed.

Themes are loaded from the `themes` directory under the Zed config:
`~/.config/zed/themes`. This directory should contain JSON files
containing a `ThemeFamilyContent`.

Here's an example of the general structure of a theme family file:

```jsonc
{
  "name": "Vitesse",
  "author": "Anthony Fu",
  "themes": [
    {
      "name": "Vitesse Dark Soft",
      "appearance": "dark",
      "style": {
        "border": "#252525",
        // ...
      }
    }
  ]
}
```

Themes placed in this directory will be loaded and available in the
theme selector.

Release Notes:

- Added support for loading user themes from `~/.config/zed/themes`.
````

## Parents

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

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