Tune one role at a time on the left while real code re-renders live on the right; weak contrast is flagged on the spot, and the finished theme exports as VS Code JSON plus CSS variables.
Tweaks today: 0 · favorite themes: 0Your palette, favorites and preview code live only in this device's browser - no upload, no sign-in. Clearing the cache or switching devices loses them. To erase everything, use "Clear my data" in the footer.
Don't start from a pure white background. Click the built-in theme closest to your taste, then touch only the three roles with the biggest impact: foreground text decides how tiring the page feels, keyword sets the visual center of gravity, string controls color density. Settle those three and the whole theme has its personality.
Change any color and the real JavaScript in the right-hand preview redraws instantly - the preview runs a lightweight tokenizer written into this page that walks keywords, strings, comments, numbers and function names, so what you see is the final rendering, not a mock-up.
Not sure where to start? Hit "Nudge": the background stays put while every other hue drifts a little at random, and it often lands on something more harmonious than manual tuning.
Most "moody" themes fail the same way: comments melt into the background, strings turn gray on dark ground. WCAG sets the AA bar for normal text at 4.5:1. This tool compares every token color against your background one by one, flags swatches in red below the threshold, and summarizes the offenders.
Comments may sit lower than body text, but not under 3:1 - anything less might as well delete them. Two patterns are truly fatal: a desaturated gray foreground on a light theme, and blue keywords on a dark-blue background. Both scream in the preview yet hide on the swatch list, which is why the numbers beat the eye.
VS Code theme JSON: contains colors (editor background, foreground, line numbers) and tokenColors (your roles mapped to TextMate scopes). Drop it into a minimal theme extension's package.json and install it in VS Code; Sublime and other TextMate-based editors read the same scopes.
CSS variables file: paste variables like --code-keyword into your blog or docs stylesheet, hang a class per role on code blocks, and the same palette carries over. Both files regenerate from the current palette on every click - tune, then export again.
| Roles | 12: background, foreground, keyword, string, comment, number, function, type, operator, punctuation, variable, constant |
|---|---|
| Themes | 9 original HSL-generated variants; a "today's pick" rotates by date on every visit |
| Contrast | All 11 roles scored against the background with WCAG ratios; below 4.5:1 is flagged |
| Export | VS Code theme JSON + CSS variables table, built as local Blobs - no network requests |
| Preview | A ~60-line tokenizer written into the page: comments, template strings, radix numbers; on parse failure it degrades to monochrome |
| Limits | Lexing targets C-like syntax - PHP/SQL-specific keywords are not fully covered; favorites and palettes never sync across devices |