Skip to content

croccifixio/blackboard-pro

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
bin
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Blackboard Pro Theme

This is Blackboard Pro. A dark theme for Visual Studio Code.

Screenshots

screenshot

View it on the tmTheme Editor.

Developing

This theme utilises a theme builder that is based on YAML. The theme builder can be initialised by running the following command:

npm run start

Config Options

The src/config.ts file exports an object with the following attributes:

  • colors

    colors is an object containing key-value pairs used for search and replace (i.e. any occurrences of the keys in the theme definition will be replaced with those keys' corresponding values). It is worth noting that this allows 8-digit hex codes to be used while only having to define the equivalent 6-digit hex code. An example is shown below.

    Given the following config:

    // src/config.ts
    // ...
      "colors": {
        "black": "#112233",
        "red": "#dd2244"
      },
    // ...

    And the following theme definition:

    // my-theme.yaml
    // ...
    colors:
      editor.background: black
      editor.selectionBackground: red77

    The generated JSON file will have the following content:

    // my-theme.json
    // ...
      "colors": {
        "editor.background": "#112233",
        "editor.selectionBackground": "#dd224477"
      }
    // ...

    Notice that the last 2 digits in the 8-digit hex code are preserved.

  • inputPath

    inputPath is a path to the input folder containing the YAML files used for theming.

  • outputPath

    outputPath is a path to the output folder that serves as the destination for generated JSON files. (NOTE: the output path must also be defined in the contributes.themes.path attribute of the package.json).

Building

The theme can be built by running the following command:

npm run build

The built theme can be imported into VS Code by copying the package.json and the output folder that contains the generated JSON files, into VS Code's extensions folder.

About

Dark theme for VSCode. Based on the Blackboard theme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published