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:

  1. Visual Studio Code — Install from the VS Code Marketplace
  2. Cursor — Install from Open VSX
  3. 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.

  1. Fork the repo — Visit github.com/pierrecomputer/theme and click "Fork" to create your own copy
  2. Clone your fork — git clone https://github.com/YOUR_USERNAME/theme.git
  3. Install dependencies — npm install
  4. Start the dev server — npm start (watches for changes and rebuilds)

Project structure

The Pierre Theme repository is organized as follows:

Color 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.

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: