Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trigger-segfault/vscode_find_colors

Read VS Code theme colors and output them in a terminal
https://github.com/trigger-segfault/vscode_find_colors

color vscode vscode-theme

Last synced: 3 days ago
JSON representation

Read VS Code theme colors and output them in a terminal

Awesome Lists containing this project

README

        

# vscode\_find\_colors
Read VS Code theme colors and output them in a terminal. Designed for creating language grammar extensions, where color coordination is important.

## Usage

```
usage: vs_colors.py [-h] [-c JSONFILE] [-s COLOR|NUM [COLOR|NUM ...]] [-S]
[-l] [-q] [-I]
JSONFILE

positional arguments:
JSONFILE json file to parse

optional arguments:
-h, --help show this help message and exit
-c, --compare JSONFILE compare colors with input file
-s, --scopes COLOR|NUM [...]
list the scopes using a specified color
-S, --all-scopes list all scopes for every color
-l, --list list all colors (default behavior)
-q, --quiet reduce console output to only requested info
-I, --no-includes don't follow include directives
```

## Preview

## Finding theme files

Other preinstalled themes all have a folder starting with `theme-*`. Some themes (like **dark\_plus** and **light\_plus**) will include base theme files (like **dark\_vs** and **light\_vs**). These should be in the same directory to read from. The option `--no-includes` can be used to skip reading base themes entirely.

**Windows path to theme-defaults:**
`C:/Program Files/Microsoft VS Code/resources/app/extensions/theme-defaults/themes`

**GitHub URL to theme-defaults:**
https://github.com/microsoft/vscode/tree/main/extensions/theme-defaults/themes