Add protanopia/tritanopia variants for all remaining ports - #12
Merged
Conversation
Extend the colorblind-safe Vim variants (PR #11) to every other port: alacritty, eclipse, ghostty, helix, iterm2, jetbrains (icls + theme.json), kitty, pi, sublime (color-scheme + tmTheme), vscode, web (highlight.js, prism, shiki), windows-terminal, xcode, and zed. Each ships a madeofcode-protan.* and madeofcode-tritan.* beside its base theme, generated by applying the same source-palette remap used for Vim so the colorblind-safe choices stay consistent across editors, terminals, and tools. Terminal ANSI palettes and editor status-message backgrounds (error/warning/info/added) are remapped to follow their hue's treatment. Format-aware generation: hex string formats remapped directly; iTerm2 and Xcode plists converted via their float components; plists re-validated with plutil and all JSON re-parsed. VS Code variants registered in package.json so they appear in the theme picker.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Follow-up to #11, which added colorblind-safe Vim variants. This extends the same two variants — protanopia (red-blindness) and tritanopia (blue-blindness) — to every remaining port.
Each port now ships
madeofcode-protan.*andmadeofcode-tritan.*beside its base theme:.icls+.theme.json), Sublime (.sublime-color-scheme+.tmTheme), VS Code, Zed, Helix, Xcode, Eclipse36 new files across 16 ports.
How
All ports build from the same fixed source palette, so the variants are generated by applying the same source-hex → variant-hex remap used for the Vim schemes in #11 — a source color always becomes the same variant color everywhere, keeping the colorblind-safe choices consistent across editors, terminals, and tools.
Generation is format-aware:
.itermcolors— plist float components (Red/Green/Blue Component) parsed, matched to source hex, rewritten as floats..xccolortheme— space-separated float color strings parsed and rewritten in the same 6-significant-figure style.Beyond syntax tokens, this also remaps the pieces that carry meaning through color:
Verification
plutil -lint.#ffc21f→ R1.0, G0.7607843137, B0.1215686275).vscode/package.jsoncontributes.themesso they show as madeofcode protan / madeofcode tritan in the picker.Docs
README updated: the Vim Colorblind-safe variants note now points out every port ships the two variants, and the Accessibility section states the remap is applied across all ports (including ANSI palettes and status backgrounds).
Notes
The JetBrains plugin zip/jar artifacts are intentionally not rebuilt here — the variant
.iclsfiles can be imported directly via Import Scheme…, consistent with the repo convention of not committing regenerated packaging artifacts.