Pick twelve colors once. Get matching themes for your terminal, editor, and command-line tools.
Try it in your browser · Read the guide
Making every tool match by hand means editing a dozen config files, each in a different format. Theme Forge gives you one palette, a live preview of a real looking tmux + Neovim + shell session, and an export for each tool.
- Stack: TypeScript, React, Vite, Bun (CLI, live sync server and tests), fflate for zip
and
.vsixfiles, GitHub Actions + Pages - Platforms: the web app runs in any browser; the CLI and live sync run locally on Bun
- State: Complete (1.1.0), and open to new themes and tool targets
- 19 tools from one palette: terminals, editors and CLI tools, each as a standalone theme file, plus a real VS Code / Cursor extension
- Live preview: a terminal (tmux, Neovim, shell), a VS Code window and lazygit, with color-blindness simulation
- Import what you have: Ghostty, Kitty, Alacritty, WezTerm, iTerm2 and Xresources
themes, or a
palette.json - Generators: build a palette from one color or a wallpaper, or shuffle, with locked colors left alone
- Contrast fixes: every color shows its contrast ratio and a one-click fix below 3:1 (4.5:1 for text)
- Live sync: running Neovim, tmux and Ghostty recolor as you drag
- CLI: list, preview, export, convert and install themes from the terminal
- Shareable URLs: the link always holds the current palette
| Kind | Tools |
|---|---|
| Terminals | Ghostty, Kitty, Alacritty, WezTerm, iTerm2, Warp |
| Editors | Neovim, VS Code, Cursor, Zed, Helix |
| CLI tools | bat, delta, tmux, Starship, lazygit, fzf, btop, fish |
Every export is a standalone theme file. Theme Forge never edits your main
config, so switching a theme on is always a single line you add yourself.
VS Code and Cursor get a real extension (.vsix); apply installs it into
whichever of the two you have.
Start from a preset or a community theme, or bring your current one: Open a
theme file or Paste a theme reads Ghostty, Kitty, Alacritty, WezTerm,
iTerm2 and Xresources themes, and palette.json. You can also Generate a
palette from one color or from a wallpaper you drop in, or press Space to
shuffle. Lock the colors you like first and generators leave them alone.
Click a swatch or type a hex value and the whole app repaints as you go. The number next to each color is its contrast against the background; below 3:1 (4.5:1 for text) it turns into a Fix button that lightens or darkens the color just enough, keeping its hue. Syntax picks which color keywords, strings, functions and the rest get, and whether comments and keywords are italic. The preview switches between a Terminal (tmux, Neovim, shell), a VS Code window and lazygit, and can simulate red-, green- and blue-blind vision so you can check your diff colors still read.
When it looks right, Use it shows the file for each tool, where it goes, and the line that turns it on. Download one, or all of them as a zip. Rename the theme by editing the big title; Undo and Redo (⌘Z, ⇧⌘Z) cover every change. The URL always holds the current palette, so copying it shares your theme.
bun cli/index.ts liveThis opens the editor in your browser and keeps your real tools in step with it. Drag a color and, within a moment:
- every running Neovim switches to the live theme (no setup)
- your tmux status bar and borders recolor (no setup)
- Ghostty reloads, once you've added
theme = theme-forge-liveto its config
Press Ctrl+C and Neovim and tmux go back to exactly what they were. The live
server only listens on 127.0.0.1 and refuses connections from any page other
than the editor itself.
bun cli/index.ts list # presets and tools
bun cli/index.ts preview kanagawa-dragon # print the palette
bun cli/index.ts export my-theme.json --out ./out # write every file to a folder
bun cli/index.ts apply my-theme.json # show what would be installed
bun cli/index.ts apply my-theme.json --yes # install into ~/.config
bun cli/index.ts export ~/.config/kitty/theme.conf --only ghostty # convert Kitty -> GhosttyAnywhere a theme goes, you can pass a preset name, a community theme name, a
palette.json, or any terminal theme file Theme Forge can import.
bun run cli <command> works too, e.g. bun run cli list.
apply is a dry run unless you pass --yes. If a theme file already exists
and its contents changed, the old one is kept next to it as <name>.bak-<time>.
Limit any command to some tools with --only ghostty,neovim,tmux.
| Slot | Used for |
|---|---|
| Background | Behind everything |
| Surface | Status bars, tab bars, panels |
| Overlay | Selections, borders |
| Muted | Comments, line numbers |
| Text | Default foreground |
| Red | Errors, deletions |
| Orange | Numbers, constants |
| Yellow | Types, warnings |
| Green | Strings, additions |
| Cyan | Operators, info |
| Blue | Functions, links, focus |
| Magenta | Keywords |
The remaining colors a tool needs, like bright ANSI variants, diff
backgrounds, and the cursor line, are derived from these twelve in
src/core/palette.ts. Which syntax token gets which
color lives in one map, src/core/syntax.ts, shared by
the preview and the editor exports, so the preview shows what you'll get.
.
├── src/
│ ├── core/ # Palette logic shared by the web app and CLI
│ │ ├── palette.ts # The twelve slots and every color derived from them
│ │ ├── syntax.ts # Which syntax token gets which color
│ │ ├── generate.ts # Seed-color and shuffle generators, contrast fixes
│ │ ├── importTheme.ts # Reads Ghostty, Kitty, Alacritty, WezTerm, iTerm2, Xresources
│ │ ├── oklch.ts # Perceptual color math
│ │ ├── presets.ts # Built-in presets
│ │ └── share.ts # Palette <-> URL encoding
│ ├── targets/ # One file per tool; bundle.ts collects every file
│ ├── ui/ # React editor, export panel and preview scenes
│ └── App.tsx
├── cli/
│ ├── index.ts # Command parsing: list, preview, export, apply, live
│ ├── commands.ts # What each command does
│ ├── editors.ts # Finds VS Code / Cursor and installs the extension
│ ├── resolve.ts # Turns a preset, community theme or file into a palette
│ └── live/ # Live sync server and Neovim / tmux / Ghostty reloads
├── themes/ # Community themes (palette.json files)
├── tests/ # Unit, target snapshot, CLI and live sync tests
└── docs/ # GUIDE.md and screenshots
Needs Bun.
- Clone the repo:
git clone https://github.com/nakulpatel0306/theme-forge.git cd theme-forge - Install and start the web app:
bun install bun dev
- Run the checks:
bun test # unit tests, snapshot tests for every target, CLI tests bun run build # typecheck and production build bun run lint
Drop a palette.json (from Download palette.json) into themes/,
named after the theme (themes/my-theme.json), add an "author" field, and
open a pull request. It shows up under From the community in the app and
by name in the CLI. CI checks that it loads and that its text is readable.
Each tool is one small file in src/targets. See
CONTRIBUTING.md; a new target is usually about 30 lines.
MIT, see LICENSE.

