If you see any weird theming issues or have any suggestions please open an issue with a screenshot of the problem or suggestion.
For example in the following image the type string
is colored incorrectly.
I am currently testing this extension with whatever the current node LTS version is.
- Get base16-builder-typescript from NPM.
npm install -g base16-builder-typescript
. If you do not install the builder globally you'll need to run the generate steps manually. - If you are planning on running the generate steps manually run
base16-builder update
in a directory where you want to setup the builder.
- Run the debugger for this extension in VSCode to create the scripts. They will be located in
out/src/scripts
. You can also runtsc -w
(requires typescript to be installednpm install -g typescript
) to compile the scripts and auto compile any changes you make. - Change directory to
/path/to/base16-generator/out/src/scripts
- Run
node ./build-themes.js
. This will do everything for you.
If you want or need to run the steps manually
Tip: Create a backup of the
schemes
directory created by the builder before running the next step. This makes it easy to revert changes.
- Run
node /path/to/base16-generator/out/src/scripts/generate-light-schemes.js
inside theschemes
directory. Theschemes
directory should be undersources
in the directory you setup the builder. This script will generate light versions of schemes from dark version of schemes as well as making sure the scheme title contains Light or Dark as needed. - Now in the root of the directory you set up the builder run
base16-builder build --template vscode
. This will create the themes from the generated schemes and put them inthemes
. - Remove all files in
/path/to/base16-generator/themes
and then copy the generated themes there. - Now run
node /path/to/base16-generator/out/src/scripts/finish-theme.js
inside thethemes
directory.
VSCode Theme Color Reference
Base16 Website
Base16 Theme Examples
Base16 Repository
- Modify
reference-theme/base16-ocean-dark.json
using the colors from Base16 Ocean. Make sure to update the comments as necessary.- Typically when adding new colors, be very selective when adding borders.
- If you come across a new color that you don't want to include, add it to
reference-theme/base16-ocean-dark.json
andbuilder/templates/vscode/templates/default.mustache
but comment it out. - Don't remove deprecated or removed colors, backwards compatibility is important and older version of VSCode could still be using that color. You may delete colors that are older than the vscode engine version in
package.json
.
- Copy
reference-theme/base16-ocean-dark.json
into thethemes
directory and debug the extension to make sure the changes have the desired effect.- You can also update
workbench.colorCustomizations
in your VSCode settings to check new or updated theme colors.
- You can also update
- Repeat 1 and 2 until you are ready to publish your changes.
- Modify
builder/templates/vscode/templates/default.mustache
to reflect the changes made inreference-theme/base16-ocean-dark.json
. Follow the template hex variables found here. - Follow the steps in Generate Themes
If you want to inspect the colors used by syntax run the command Developer: Inspect Editor Tokens and Scopes
.
When pushing changes make sure that code changes and theme updates are in separate commits. For example code changes for 1.3.0 and separate theme update commit.
- Ensure package.json version number has been updated
vsce package
- Ensure
OVSX_TOKEN
environment variable is set node out/src/scripts/publish.js