Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.19 KB

CONTRIBUTING.md

File metadata and controls

31 lines (19 loc) · 1.19 KB

[WIP] Contributing

I recently rewrote the code for this theme.

I'm in the process of updating this page accordingly.

The code is split up (mainly by language) into individual TypeScript files, which live in src/theme/shared. So if you wanted to see the Ruby rules, for example, those are in src/theme/shared/languages/ruby.js.

The language rules are exported as a single array from src/theme/shared/languages/index.ts.

Those files are imported, merged, and written out to dist/themes/dark-plus-syntax-color-theme.json

Building locally

  1. Clone the project
  2. Run npm install to install development dependencies.
  3. Run npm run build to build the theme file with the new changes.

Developing

It'll be helpful to install the Highlight plugin.
There are local vscode settings that configure it to color specific TypeScript constants to match the color values they represent.

Resources & References