From d3745a39314f06409acafacea20dafd290923da8 Mon Sep 17 00:00:00 2001 From: Kyber <100732009+kyber-6@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:12:10 +0100 Subject: [PATCH] Document new theme options (#7899) Added documentation for [#4970](https://github.com/zed-industries/zed/issues/4970), a feature added in the latest update. Will need to modify `Default Settings` to reflect the new default theme example. Release Notes: - N/A --- docs/src/configuring_zed.md | 64 ++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/docs/src/configuring_zed.md b/docs/src/configuring_zed.md index 9103e64f60..e129721dd5 100644 --- a/docs/src/configuring_zed.md +++ b/docs/src/configuring_zed.md @@ -956,10 +956,72 @@ See Buffer Font Features ## Theme -- Description: The name of the Zed theme to use for the UI. +- Description: The theme setting can be specified in two forms - either as the name of a theme or as an object containing the `mode`, `dark`, and `light` themes for the Zed UI. - Setting: `theme` - Default: `One Dark` +### Theme Object + +- Description: Specify the theme using an object that includes the `mode`, `dark`, and `light` themes. +- Setting: `theme` +- Default: + +```json +"theme": { + "mode": "dark", + "dark": "One Dark", + "light": "One Light" +}, +``` + +### Mode + +- Description: Specify theme mode. +- Setting: `mode` +- Default: `dark` + +**Options** + +1. Set the theme to dark mode + +```json +{ + "mode": "dark" +} +``` + +2. Set the theme to light mode + +```json +{ + "mode": "light" +} +``` + +3. Set the theme to system mode + +```json +{ + "mode": "system" +} +``` + +### Dark + +- Description: The name of the dark Zed theme to use for the UI. +- Setting: `dark` +- Default: `One Dark` + +**Options** + +Run the `theme selector: toggle` action in the command palette to see a current list of valid themes names. + +### Light + +- Description: The name of the light Zed theme to use for the UI. +- Setting: `light` +- Default: `One Light` + **Options** Run the `theme selector: toggle` action in the command palette to see a current list of valid themes names.