How twbs/bootstrap-vscode-theme works
Bootstrap VS Code Theme is a theme package for VS Code, Shiki, and compatible tools. Its build-time workflow takes light/dark role palettes, maps them into editor UI and syntax-token theme data, and also converts palette colors to enhanced Display P3 for vibrant variants before writing four theme JSON files. Consumers import those generated themes through the package entry point. README documents the editor and Shiki use cases; source evidence for implementation relationships is limited to the sampled build, palette, P3, and theme files.
Main entry points: build.ts Theme build · index.js Theme exports · palette.ts Light/dark roles · color-p3.ts P3 conversion
Components 9
Palette and color
- Light/dark roles
src/palette.ts - P3 conversion
src/color-p3.ts
Theme generation
- UI and syntax mapping
src/theme.ts - Theme build
src/build.ts - Four theme JSONs
Theme consumption
- Theme exports
index.js
Other components
- Theme user
- VS Code
- Shiki tools
Connections 8
- Theme build → Light/dark roles: imports roles
src/build.ts - Theme build → P3 conversion: converts roles
src/build.ts - Theme build → UI and syntax mapping: builds themes
src/build.ts - Theme build → Four theme JSONs: writes files
src/build.ts - Theme exports → Four theme JSONs: imports themes
index.js - Theme user → Theme exports: imports package
- Theme user → VS Code: selects theme
README.md - Theme user → Shiki tools: uses themes
README.md