Hour six of the refactor.
Ten manga-inspired color themes for VS Code, Cursor and Zed. Calm backgrounds, measured contrast, made for long sessions.
One Piece
Ocean blues and Straw Hat red. Complicated code, handled like a Pirate King.
Dark
// Personality, under control.import { defineTheme } from "mangamode";type Volume = { name: string; issue: number };export function readChapter(vol: Volume, page = 1) { const panels = vol.issue * 24; return format(vol.name, [page, panels]);}defineTheme({ glare: "low", focus: "high" });Contrast, measured
Against the One Piece editor background, #0B1B24.
| Swatch | Token | Color | Contrast and WCAG level |
|---|---|---|---|
| Text | #DCEAF1 | 14.2:1AAA | |
| Comment | #7594B2 | 5.5:1AA | |
| Keyword | #DD7074 | 5.5:1AA | |
| Function | #63C8BC | 8.7:1AAA | |
| String | #8BD5B2 | 10.2:1AAA | |
| Number | #EDC372 | 10.5:1AAA | |
| Type | #97DCD4 | 11.2:1AAA | |
| Line number | #658895 | 4.6:1AA |
Every token clears WCAG AA (4.5:1). Ratios round down, so 4.46:1 never shows as 4.5:1.
Try to make it louder
Pick a syntax color and drag its lightness slider. Watch the preview and contrast ratio change. This only changes the preview.
// Personality, under control.import { defineTheme } from "mangamode";type Volume = { name: string; issue: number };export function readChapter(vol: Volume, page = 1) { const panels = vol.issue * 24; return format(vol.name, [page, panels]);}defineTheme({ glare: "low", focus: "high" });5.5:1
#DD7074 on #0B1B24. Passes AA, the bar this theme ships at.
Black bars mark lightness below this theme's minimum. The tick is the shipped color.
To be continued in your editor.
Free and open source under the MIT license. One extension installs all ten volumes. 1,584 installs and downloads so far.
code --install-extension markonikolajevic.mangamode- Run the command, or install it from the Visual Studio Marketplace.
- Open the Command Palette and run Preferences: Color Theme, then pick MangaMode: One Piece.