I updated the Sublime Text
Tron Color Scheme today after a few weeks of reworking it for the recent release of Sublime Text 4.
2.0.0 release converts the older
.tmTheme format into the Sublime specific theme format.
Overall the new Sublime theme format (
.sublime-color-scheme) is a big improvement, largely due to its simple JSON structure and its variables support.
JSON is, despite the common arguments against it, super readable and easily read and written by humans. The variable support makes the process of making a theme a whole lot more automatic, since you no longer have to find and replace colors all over the place.
The biggest problem I ran into was poor in-line color highlighting when working with colors, so I ended up using a VSCode plugin called
Color Highlight in a separate window.
Sublime has a great plugin also called
Color Highlight that usually works well, but not in this case.
Color Highlight variant actually does temporary modifications to color schemes, which seriously gets in the way when working on color scheme files.
The rewrite is based it off of the new Mariana Theme that ships with ST4, so the theme should have support for most of the latest features in ST4 though there are surely features that even Mariana missed. Let me know if you know of any.
Here a few other points of consideration made during the rewrite:
- Remove the other theme variants. A breaking change, but they were poorly maintained to begin with.
- Renamed the theme file to
Tron Legacy 4 (Dark).
- A light theme is in order, but its a non-trivial rewrite to support a light mode.
Here a few more relevant links and please let me know what you think if you try it out.
Sublime Tron Legacy color scheme fully updated for @sublimehq Text 4. Full syntax support, lots of other small improvements. Also it supports 'glow' text✌️ pic.twitter.com/vShbGThgDF— 🌌🌵🛸Bret🏜👨👩👧🚙 (@bcomnes) August 5, 2021