This theme is not a replacement for the GitHub theme; it's a set of tinted variants. This is a fork of GitHub's VS Code themes.
- Go to VS Marketplace.
- Click on the "Install" button.
- Then select a theme. The GitHub themes try to match the themes available in github.com's settings:
A GitHub Dark Dimmed 1 🔴 RedA GitHub Dark Dimmed 2 🟠 OrangeA GitHub Dark Dimmed 3 🟢 GreenA GitHub Dark Dimmed 4 🔵 BlueA GitHub Dark Dimmed 5 🟣 PurpleA GitHub Dark High Contrast 1 🔴 RedA GitHub Dark High Contrast 2 🟠 OrangeA GitHub Dark High Contrast 3 🟢 GreenA GitHub Dark High Contrast 4 🔵 BlueA GitHub Dark High Contrast 5 🟣 PurpleA GitHub Light 1 🔴 RedA GitHub Light 2 🟠 OrangeA GitHub Light 3 🟢 GreenA GitHub Light 4 🔵 BlueA GitHub Light 5 🟣 PurpleA GitHub Dark 🧛 VampireA GitHub Dark Dimmed 🧛 VampireA GitHub Dark 🩶 MutedA GitHub Dark Dimmed 🩶 MutedA GitHub Dark Dimmed 🟤 Brown
The best way to use them is to open multiple instances of VS Code and select a different theme for each instance. This makes it easy to spot the window you're looking for when you have multiple editor windows open.
To set the color, you have two options:
- Create a
.vscode/settings.jsonfile in your project and add the following:
{
"workbench.preferredLightColorTheme": "A GitHub Light 1 🔴 Red",
"workbench.preferredDarkColorTheme": "A GitHub Dark Dimmed 1 🔴 Red",
}- Create a workspace setting (ex:
github-vscode-theme.code-workspace):
{
"folders": [
{
"path": "github-vscode-theme"
}
],
"settings": {
"workbench.preferredLightColorTheme": "A GitHub Light 1 🔴 Red",
"workbench.preferredDarkColorTheme": "A GitHub Dark Dimmed 1 🔴 Red"
}
}TODO:
- Add a light theme
- Convert to TypeScript
- Add dark high contrast themes
- Add light high contrast themes
- Find the rest of the grays (for tinting)
- Handle tinting CSS shadows
- Add foreground color tinting (mostly for color tempurature)
- Add a dark theme (in addition to existing dimmed dark variants)
- Add slightly muted variants
To override this (or any other) theme in your personal config file, please follow the guide in the color theme documentation. This is handy for small tweaks to the theme without having to fork and maintain your own theme.
- Clone and open this repo in VS Code
- Run
pnpm installto install the dependencies. - Press
F5to open a new window with your extension loaded - Open
Code > Preferences > Color Theme[⌘k ⌘t] and pick the "GitHub ..." theme you want to test. Note: It seems this has to be done 2x because the first time it switches back to the default light theme. This might be a bug? - Make changes to the
/src/theme.jsfile.- UI: For all changes to the "outer UI", like (status bar, file navigation etc.), take a look at the Theme Color reference.
- Syntax: For changes to the "code highlighting", examine the syntax scopes by invoking the
Developer: Inspect Editor Tokens and Scopescommand from the Command Palette (Ctrl+Shift+PorCmd+Shift+Pon Mac) in the Extension Development Host window.
- Run
pnpm buildto update the theme. You can also runpnpm startinstead to automatically rebuild the theme while making changes and no reloading should be necessary. - Once you're happy, commit your changes and open a PR.