Thank you for taking the time to contribute to Yi Themes.
Due to the differences between Atom and Visual Studio Code, especially the features missing in Code, this extension can not guarantee that every bit of the editor is colored correctly. Some common known inconsistencies are listed below:
Invaild tokens are highlighted in white foreground; they are supposed to have a red background at the same time. This won't be fixed until Visual Studio Code picks up token background colors support. (#3429)
This extension does not specify ANSI colors used in the integrated terminal, because there is no matching color is One Dark & One Light themes. The colors from default vs-dark
or vs-light
themes will be used. If you feel it not harmonious, please use workbench.colorCustomizations
setting to specify favored colors.
After switching to another color theme, some content of Markdown Preview will still show in the style of Yi Themes. To avoid this behavior, please disable Yi Themes extension when it is not used.
Issues asking questions, providing suggestions or reporting bugs are all welcomed.
Yi Themes is not written in plain JSON. The JSON & CSS files in the dist
folder are generated by TypeScript.
In the src
folder are the scripts used to generate the theme. dark.ts
and light.ts
contain colors collected from One Dark & One Light themes, which are represented and manipulated using tinycolor2
npm package. The palettes are used by syntax.ts
, workbench.ts
and markdown.ts
to map the colors to syntax highlighting, editor UI and markdown preview respectively. index.ts
puts everything together and outputs the finished JSON & CSS files.
Below are some commands to build the extension:
-
Obtain the source:
git clone https://github.com/wangweixuan/yithemes.git
-
Fetch dependencies and build:
npm install
oryarn
-
Test (in a new Visual Studio Code Insiders window):
npm test
oryarn test
-
Rebuild after making modifications:
npm run prepare
oryarn prepare
This extension does not include unit tests or integration tests.
You can find VS Code's theme color reference at the following locations:
Yi Themes adheres to Semantic Versioning. Its version is unrelated to the version of One Dark & One Light themes or Visual Studio Code. A new version will be published regularly when One Dark & One Light themes or Code gets an update.