Skip to content

Type to search extensions

Moonlight

v1.0.0

Moonlight theme for Zed

Updated 5 months ago
66k downloads 9 stars Repository ↗
zedext main
// Load settings, retrying a few times
fn load_config(path: &str) -> Result<Config, Error> {
let retries = 3;
let text = fs::read_to_string(path)?;
let name = "settings.json";
Ok(Config { text, retries, name })
}

zed-moonlight-theme

Moonlight Theme for the Zed IDE

based on https://github.com/atomiks/moonlight-vscode-theme

Screenshots

Moonlight

moonlight

Moonlight with semantic_tokens enabled

moonlight-semantic

Moonlight Italic

moonlight-italic

Optional Zed Settings

This is not required, but if you set semantic_tokens to "combined" in Zed's settings.json and add the following configuration, the colors will be closer to the original Moonlight theme.

{
    // ...existing settings
    "global_lsp_settings": {
        "semantic_token_rules": [
            {
                "token_type": "parameter",
                "style": ["variable.parameter"]
            },
            {
                "token_type": "property",
                "token_modifiers": ["declaration"],
                "style": ["property.declaration"]
            },
            {
                "token_type": "type",
                "token_modifiers": ["defaultLibrary"],
                "style": ["type.defaultLibrary"]
            },
            {
                "token_type": "type",
                "token_modifiers": ["defaultLibrary"],
                "style": ["type.builtin"]
            }
        ]
    }
}
ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated