Merry Christmas Dane! This is a clone of my vim colorscheme based on the colours of a snooker table for Visual Studio Code.
- If you have already installed VSCode, you probably already have a
~/.vscode/extensions
folder. If you don't, create it.
mkdir ~/.vscode/extensions
- Then clone this repository there.
cd ~/.vscode/extensions
git clone https://github.com/gabenespoli/vscode-theme-snookerdark
-
Restart VSCode.
-
The 'SnookerDark' colorscheme should appear in the list of available colorschemes.
Open the SnookerDark_template.tmTheme
file. It's an xml file that contains
syntax highlight groups and colour hexes for those groups. Replace the colour
hexes with colour codes like so (for example): #ADAD9B
becomes #@fg
.
Colour codes are in the style of base16 colorschemes. See my iterm-color-palettes for some info on how each colour code is used in the scheme. Available colour codes and their corresponding colour hexes for the SnookerDark theme are as follows.
Colour Code | Hex |
---|---|
#@bg_light | #243730 |
#@bg_sel | #284737 |
#@bg | #212524 |
#@fg_com | #5F785C |
#@fg_dark | #9BAD9B |
#@fg_light | #CDC08B |
#@fg_bright | #FCEDAB |
#@fg | #ADAD9B |
#@red | #E52E1A |
#@orange | #B98036 |
#@yellow | #F5C52E |
#@green | #1FC022 |
#@cyan | #21C296 |
#@blue | #0094CF |
#@purple | #DF7376 |
#@pink | #C87F7F |
#@cursor | #FFFFFF |
Then use the included addcolor.py
from the command line to replace the colours
in the template with the hexes, and save the file as the non-template.
cd ~/.vscode/extensions/vscode-theme-snookerdark/themes
python addcolor.py