Skip to content

Type to search extensions

Tron Legacy

v1.2.1

A port of the Tron Legacy theme for Zed

Updated 5 months ago
46k downloads 11 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 })
}

Tron Legacy Theme for Zed

A port of the old Textmate theme "Tron Legacy" to Zed, with a new light mode and frosted variants.

Tron Legacy Preview Tron Legacy Frosted Preview Tron Legacy Light Preview Tron Legacy Light Frosted Preview

Features

  • High contrast syntax highlighting optimized for readability
  • Carefully selected colors that maintain WCAG contrast ratios
  • Support for all Zed UI elements and syntax tokens
  • 🌝 Light and Dark variants 🌚
  • 🥶 Frosted transparent variants ❄️

Developing

To test and generate the theme run:

make all

There are two color schemes: dark/colors.css and light/colors.css. Both dark and light colors include frosted color variants. The colors are defined in colors.css files as css variables so that zed can display in-line color previews.

css-previews

The colors are loaded into palette.go and assigned to a semantic TronThemePalette mapping. These semantic mappings are then fed into generator.go and the final output ends up in themes/tron-legacy.json.

See also

Acknowledgments

Thank you Dayle Rees and Tim Heckman, the original creators of this fantastic theme. Thank you ColorSublime for helping put so many fantastic color schemes out into the world.

License

MIT License - See LICENSE file for details

ZedExt An unofficial community project. Not affiliated with Zed Industries.

Data from Zed’s extension registry and GitHub · updated