Pierre themes
Beautiful light and dark themes, generated from a shared color palette, for Visual Studio Code, Cursor, Zed, and Shiki. Built first for @pierre/diffs, and shared with the community by The Pierre Computer Company.
Usage
Install the Pierre theme pack from your editor's extension marketplace:
- Visual Studio Code — Install from the VS Code Marketplace
- Cursor — Install from Open VSX
- Zed — Install from the Zed Extensions
Then open your editor and select "Pierre Dark" or "Pierre Light" in settings or the command palette.
Build a theme
Create custom themes for use with @pierre/diffs (plus Shiki, Visual Studio
Code, Cursor, and Zed) by forking our open-source
Pierre Theme repository.
The Pierre themes are bundled with @pierre/diffs as pierre-dark and
pierre-light, so you can use them without any additional setup.
Getting started
The fastest way to create a custom theme is to fork the Pierre Theme repository, modify our color palette, and regenerate the themes. This repository uses TypeScript to generate theme JSON files, giving you type safety and the ability to generate multiple theme files—for various editors, too—from a single color palette.
- Fork the repo — Visit github.com/pierrecomputer/theme and click "Fork" to create your own copy
- Clone your fork —
git clone https://github.com/YOUR_USERNAME/theme.git - Install dependencies —
npm install - Start the dev server —
npm start(watches for changes and rebuilds)
Project structure
The Pierre Theme repository is organized as follows:
12345678910111213141516171819theme/├── src/│ ├── build.ts # Build script entry point│ ├── color-p3.ts # Display P3 color definitions│ ├── palette.ts # Color definitions (edit this!)│ ├── package-vsix.ts # Generates VS Code/Cursor extension│ └── theme.ts # Token color mappings├── dist/ # Generated MJS modules (for Shiki)│ ├── index.mjs│ ├── pierre-dark.mjs│ ├── pierre-light.mjs│ ├── pierre-dark-vibrant.mjs│ └── pierre-light-vibrant.mjs├── themes/ # Generated JSON files (for VS Code)│ ├── pierre-dark.json│ ├── pierre-light.json│ ├── pierre-dark-vibrant.json│ └── pierre-light-vibrant.json└── package.json # Update with your detailsColor palette
The src/palette.ts file is the single source of truth for all colors in your
theme. We take each color from the palette and provide several tints and shades
for each, like 100, 200, 300, etc. We ship with all our tints and shades, so
this is overkill for most themes, but it's sometimes helpful to have full access
to your entire brand or product palette.
12345678910111213141516171819202122232425262728293031323334353637383940const gray = { "020":"#fbfbfb", "040":"#f9f9f9", "060":"#f8f8f8", "080":"#f2f2f3", "100":"#eeeeef", "200":"#dbdbdd", "300":"#c6c6c8", "400":"#adadb1", "500":"#8E8E95", "600":"#84848A", "700":"#79797F", "800":"#6C6C71", "900":"#4A4A4E", "920":"#424245", "940":"#39393c", "960":"#2e2e30", "980":"#1F1F21", "1000":"#141415", "1020":"#0B0B0C", "1040":"#070707"};
const red = { "050":"#ffedea", "100":"#ffdbd6", "200":"#ffb7ae", "300":"#ff9187", "400":"#ff6762", "500":"#ff2e3f", "600":"#d52c36", "700":"#ad292e", "800":"#862425", "900":"#611e1d", "950":"#3e1715"};
// Additional color scales: orange, yellow, green, mint,// teal, cyan, blue, indigo, purple, pink, brown// ... (same pattern as above)After defining your color scales, you define role types that map colors to semantic purposes—backgrounds, foregrounds, borders, accents, states, syntax highlighting, and ANSI terminal colors:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859