Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/trigger-segfault/vscode_find_colors
- Owner: trigger-segfault
- License: mit
- Created: 2021-04-04T04:11:45.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-04T16:56:49.000Z (almost 4 years ago)
- Last Synced: 2024-11-30T22:12:19.143Z (2 months ago)
- Topics: color, vscode, vscode-theme
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]
JSONFILEpositional arguments:
JSONFILE json file to parseoptional 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