1# Themes
 2
 3Zed comes with a number of built-in themes, with more themes available as extensions.
 4
 5## Selecting a Theme
 6
 7See what themes are installed and preview them via the Theme Selector, which you can open from the command palette with `theme selector: toggle` (bound to {#kb theme_selector::Toggle}).
 8
 9Navigating through the theme list by moving up and down will change the theme in real time and hitting enter will save it to your settings file.
10
11## Installing more Themes
12
13More themes are available from the Extensions page, which you can access via the command palette with `zed: extensions` or the [Zed website](https://zed.dev/extensions?filter=themes).
14
15Many popular themes have been ported to Zed, and if you're struggling to choose one, visit [zed-themes.com](https://zed-themes.com), a third-party gallery with visible previews for many of them.
16
17## Configuring a Theme
18
19Your selected theme is stored in your settings file.
20You can open your settings file from the command palette with {#action zed::OpenSettingsFile} (bound to {#kb zed::OpenSettingsFile}).
21
22By default, Zed maintains two themes: one for light mode and one for dark mode.
23You can set the mode to `"dark"` or `"light"` to ignore the current system mode.
24
25```json [settings]
26{
27  "theme": {
28    "mode": "system",
29    "light": "One Light",
30    "dark": "One Dark"
31  }
32}
33```
34
35## Theme Overrides
36
37To override specific attributes of a theme, use the `theme_overrides` setting.
38This setting can be used to configure theme-specific overrides.
39
40For example, add the following to your `settings.json` if you wish to override the background color of the editor and display comments and doc comments as italics:
41
42```json [settings]
43{
44  "theme_overrides": {
45    "One Dark": {
46      "editor.background": "#333",
47      "syntax": {
48        "comment": {
49          "font_style": "italic"
50        },
51        "comment.doc": {
52          "font_style": "italic"
53        }
54      }
55    }
56  }
57}
58```
59
60To see a comprehensive list of list of captures (like `comment` and `comment.doc`) see [Language Extensions: Syntax highlighting](./extensions/languages.md#syntax-highlighting).
61
62To see a list of available theme attributes look at the JSON file for your theme.
63For example, [assets/themes/one/one.json](https://github.com/zed-industries/zed/blob/main/assets/themes/one/one.json) for the default One Dark and One Light themes.
64
65## Local Themes
66
67Store new themes locally by placing them in the `~/.config/zed/themes` directory (macOS and Linux) or `%USERPROFILE%\AppData\Roaming\Zed\themes\` (Windows).
68
69For example, to create a new theme called `my-cool-theme`, create a file called `my-cool-theme.json` in that directory.
70It will be available in the theme selector the next time Zed loads.
71
72## Theme Development
73
74See: [Developing Zed Themes](./extensions/themes.md)