DragWx / vsc-astronomy-theme

A straightforward warm/neutral/cool theme for Visual Studio Code
MIT License
1 stars 0 forks source link

Astronomy

Astronomy is a dichromatic color theme meant for keeping things straightforward and functional.

Source code starts at neutral, then shifts either warmer to represent value, or cooler to represent logic.

Equations stay neutral with minimal variance, so separators like strings and brackets are the only things that stick out.

There are no bright, vibrant colors; you and your extensions are free to use those for yourself.

Demonstration screenshot

Also included is a red-green colorblind accessible version of this theme.

Colorblind demonstration screenshot

A light version is also included.

Light theme demonstration screenshot

Tips


Building

Use the default gulp task to build the xxx-color-theme.json files which will be used by VS Code. Also available is a watch task which will automatically build the theme files whenever the template file or palette files are updated.

To add a new theme to be built, modify the palettes variable in the build function in the gulpfile. Create a new palette file in the src directory, e.g. xyz.json. Then, add xyz as an entry in the palettes variable mentioned above. The output theme file will be astronomy-xyz-color-theme.json in the themes directory. Don't forget to update package.json to include the new theme, or else it won't appear as an option in VS Code.

Palette files

Inside the src directory are several small JSON files containing some color definitions, which are then plugged into _template.json to create the output theme, which VS Code uses.

Interpolated Colors

Several extra colors are derived from the palette file during the build process, these are interpolated colors.

You are free to override any interpolated colors by specifying them in the palette file directly. For example, defining v1-25 in the palette file will override the auto-generated v1-25.