docs: Update docs for theme_overrides setting (#41038)
This PR updates the docs to reference the `theme_overrides` setting instead of the old `experimental.theme_overrides` setting. Release Notes: - N/A
This commit is contained in:
@@ -364,18 +364,20 @@ Zed offers customization options for syntax highlighting and themes, allowing yo
|
|||||||
|
|
||||||
### Customizing Syntax Highlighting
|
### Customizing Syntax Highlighting
|
||||||
|
|
||||||
Zed uses Tree-sitter grammars for syntax highlighting. Override the default highlighting using the `experimental.theme_overrides` setting.
|
Zed uses Tree-sitter grammars for syntax highlighting. Override the default highlighting using the `theme_overrides` setting.
|
||||||
|
|
||||||
This example makes comments italic and changes the color of strings:
|
This example makes comments italic and changes the color of strings:
|
||||||
|
|
||||||
```json [settings]
|
```json [settings]
|
||||||
"experimental.theme_overrides": {
|
"theme_overrides": {
|
||||||
"syntax": {
|
"One Dark": {
|
||||||
"comment": {
|
"syntax": {
|
||||||
"font_style": "italic"
|
"comment": {
|
||||||
},
|
"font_style": "italic"
|
||||||
"string": {
|
},
|
||||||
"color": "#00AA00"
|
"string": {
|
||||||
|
"color": "#00AA00"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-9
@@ -32,20 +32,22 @@ By default, Zed maintains two themes: one for light mode and one for dark mode.
|
|||||||
|
|
||||||
## Theme Overrides
|
## Theme Overrides
|
||||||
|
|
||||||
To override specific attributes of a theme, use the `experimental.theme_overrides` setting.
|
To override specific attributes of a theme, use the `theme_overrides` setting. This setting can be used to configure theme-specific overrides.
|
||||||
|
|
||||||
For 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:
|
For 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:
|
||||||
|
|
||||||
```json [settings]
|
```json [settings]
|
||||||
{
|
{
|
||||||
"experimental.theme_overrides": {
|
"theme_overrides": {
|
||||||
"editor.background": "#333",
|
"One Dark": {
|
||||||
"syntax": {
|
"editor.background": "#333",
|
||||||
"comment": {
|
"syntax": {
|
||||||
"font_style": "italic"
|
"comment": {
|
||||||
},
|
"font_style": "italic"
|
||||||
"comment.doc": {
|
},
|
||||||
"font_style": "italic"
|
"comment.doc": {
|
||||||
|
"font_style": "italic"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user