Back to browse
GitHub Repository

VS Code plugin for adding color to your title bar.

2 starsTypeScript

Colored Title Bar – unique colors per VS Code workspace

by wstuckey·Feb 28, 2026·2 points·0 comments

AI Analysis

●●SolidSolve My ProblemCozy

Hashes workspace path into persistent title-bar color; solves cmd-tab confusion elegantly.

Strengths
  • Deterministic hashing ensures same project always gets same color across sessions
  • WCAG 2.0 contrast ratio ensures readable foreground text on any background
  • Lightweight, non-destructive; only modifies titleBar keys, zero dependencies
Weaknesses
  • Single-feature utility with limited scope; doesn't address broader workspace management
  • Color assignment algo is simple; no collaborative workspace sharing or team sync
Target Audience

VS Code users juggling multiple projects simultaneously

Similar To

VS Code theme extensions · IDE customization plugins

Post Description

Hey HN, I built a small VS Code extension that gives every workspace a distinct title bar color so you can tell windows apart at a glance.

If you work across multiple projects throughout the day, all your VS Code windows look identical. I kept cmd-tabbing into the wrong one, so I made this.

How it works: - When you open a folder, it deterministically hashes the workspace path into an HSL color, so each project always gets the same color. - Saturation and lightness are tuned per theme (Dark/Light/High Contrast). - Foreground text picks white or black based on WCAG 2.0 contrast ratio. - You can also randomize or pick from 14 hue presets via the command palette. - Only touches the five titleBar.* keys — nothing else is modified. - It's ~300 lines of TypeScript, MIT licensed, no dependencies beyond the VS Code API.

Marketplace: https://marketplace.visualstudio.com/items?itemName=wstuckey...

Source: https://github.com/wstuckey/colored-title-bar

Similar Projects

Design●●Solid

Color Lab – Interactive 3D gamut explorer and uniform palette generator

3D gamut visualization beats basic palette generators, but color tools remain crowded.

Eye CandyNiche Gem
saabi
208d ago