Zed One Dark for VS Code
A community-maintained Visual Studio Code port of Zed's built-in One Dark theme, with a matching file icon theme and carefully aligned syntax colors.
Preview
Included
The extension enables semantic highlighting for Go and gopls so packages, types, parameters, and fields receive the classifications consumed by the theme. A provider-driven context layer keeps type qualifiers namespace-colored while runtime function and value qualifiers use the normal variable color. A small Go-only decoration keeps import paths uniformly string-colored when gopls emits a namespace token inside the import literal. TextMate scopes remain the fallback before a provider loads or where none is available. InstallVS Code MarketplaceSearch for Zed One Dark in the Extensions view or run:
VSIXDownload a
To build the package yourself:
ActivateChoose Preferences: Color Theme → Zed One Dark and Preferences: File Icon Theme → Onedark Zed Icons, or add:
Optional font settingsFonts are not bundled. Zed's documented monospace default is Lilex, which is available separately under the SIL Open Font License 1.1. A balanced starting point is:
DevelopmentThe generated theme deliberately has explicit, reproducible inputs:
Run the theme generator only after changing its inputs:
The pinned VS Code 1.135.0 TextMate integration suite verifies 334 lexical
tokens across 61 bundled grammars and records 20 classifications that cannot
be derived from those grammars alone. The provider suite separately verifies
223 real semantic symbols across Go, TypeScript/JavaScript, C/C++, and Rust,
including declaration/reference pairs and properties on both sides of
assignments. It also checks namespace qualifiers in both type and runtime-value
contexts. The Go test consumes the same gopls defaults shipped in the
extension manifest so test and editor behavior cannot silently diverge. Point
the TextMate suite at that VS Code installation's
Python, shell, JSON/JSONC, HTML, CSS/SCSS, Markdown, YAML, SQL, Java, C#, PHP, Ruby, and the remaining bundled languages are exercised through their official VS Code TextMate grammars. An installed language extension may add a semantic overlay on top of that tested fallback. Separate provider contracts keep 109 custom token types and modifier rules from Pylance, C#, C/C++, rust-analyzer, and TOML mapped to the same semantic roles. The provider harness also rejects newly advertised modifiers until their role precedence is explicitly classified. Do not hand-edit generated colors. See
Provenance and licensingThis fork preserves and extends work from
The combined fork is distributed under GPL-3.0-or-later. Required copyright
and permission notices are retained in |
