vscterm-palette
v0.1.2
Published
🎨 CLI tool to convert VSCode themes to terminal color schemes.
Maintainers
Readme
Vscterm Palette
🎨 A CLI tool that converts VSCode themes to terminal color schemes for iTerm2 and Tabby.
What is this?
Vscterm Palette helps you bring your favorite VSCode themes to your terminal. Instead of manually configuring terminal colors to match your VSCode theme, this tool automatically extracts the color palette from VSCode themes and converts them into formats that your terminal can use.
Features
- Convert VSCode themes to iTerm2 themes - Generate
.itermcolorsfiles that you can import into iTerm2 - Convert VSCode themes to Tabby themes - Create YAML theme files for the Tabby terminal
- Support for remote themes - Convert themes directly from GitHub URLs
- Automatic Tabby config updates - Optionally update your Tabby configuration file
Quick Start
Convert a single theme
# Convert to both formats
npx vscterm-palette --theme https://github.com/antfu/vscode-theme-vitesse/blob/main/themes/vitesse-dark.json --iterm --tabbyConvert multiple themes using a config file
Create a vscterm.config.yaml file:
themes:
- 'https://github.com/antfu/vscode-theme-vitesse/blob/main/themes/vitesse-dark.json'
- 'https://github.com/antfu/vscode-theme-vitesse/blob/main/themes/vitesse-light.json'
- 'https://github.com/antfu/vscode-theme-vitesse/blob/main/themes/vitesse-black.json'
tabbyConfig: /path/to/your/tabby/config.yamlThen run:
# Convert all themes to both formats
npx vscterm-palette --iterm --tabbyOutput
iTerm2 Themes
Generated .itermcolors files can be imported into iTerm2:
- Open iTerm2
- Go to Preferences → Profiles → Colors
- Click "Color Presets" → "Import..."
- Select the generated
.itermcolorsfile - Apply the theme
Tabby Themes
For Tabby themes, you have two options:
Manual way:
- Go to "Config file", Click "Show Config File"
- Modify the config.yaml file to use the generated theme
Automatic way:
- Configure the
tabbyConfigpath in yourvscterm.config.yaml - The CLI will automatically update your Tabby configuration file
License
MIT License © jinghaihan
