Nishiruनिशि · 見る · 西Night-seeing. The dark that watches. A VS Code color theme built entirely from first principles — color science, perceptual research, and three cultural traditions. VariantsNishiru ships as a family of four. All variants share identical accent hues — only the background changes.
The ScienceNishiru is the only published VS Code theme built from scientific research at every layer. This is not marketing — every decision has a citation. 1. OKLCH color spaceEvery color in Nishiru is computed in OKLCH — a perceptually uniform color space where equal mathematical distance equals equal perceived distance. Traditional HSL and even the older CIELCh have known failure modes: a yellow and a blue at All Nishiru accents are computed at L:0.82 (structural) or L:0.88 (primary content). Every accent appears equally bright to your eye. No color shouts over another.
2. Background hue scienceThe background is not arbitrary. It is computed as oklch(L:0.16, C:0.025, H:308).
3. APCA contrastNishiru uses APCA (Advanced Perceptual Contrast Algorithm) — not the broken WCAG 2.x ratio. WCAG 2.x far overstates contrast for dark colors and is documented as unreliable for dark mode design. APCA accounts for three things WCAG ignores: polarity (which color is text vs bg), font weight, and font size.
4. Helmholtz–Kohlrausch effectHighly saturated colors appear brighter than their mathematical luminance. APCA does not correct for this. Nishiru does. High-chroma strings (himal) and types (marigold) are computed at C:0.12 — below the point where the HK effect distorts perceptual balance. No token shouts. 5. Blue light and melatoninTwo categories of accents were shifted specifically to reduce blue-wavelength output:
6. Color vision deficiency safety~8% of men have deuteranomaly or deuteranopia — difficulty distinguishing red from green. Nishiru's git decorations are designed for full CVD safety:
Hue separation between Added and Modified is 10°. Between Added and Deleted it is 263°. Maximum possible discrimination at every git state. Additionally, constants were shifted from yellow H:82 to amber H:65 — off the blue-yellow axis that affects ~30% of neurodivergent users (tritan CVD correlation with ASD/ADHD per 2024 research). 7. Triadic color harmonyThe three primary syntax roles form a mathematically exact color triad — 120° spacing on the OKLCH hue wheel:
Triadic schemes offer harmonious yet visually striking contrast — the palette feels intentionally designed rather than assembled. 8. Syntax hierarchy by luminance tierThree deliberate tiers — your eye naturally reads code by importance:
9. Semantic consequence coloringInspired by Poimandres' semantic-first approach — keywords are colored by semantic consequence, not syntax category:
10. Neurodivergent accessibilityADHD is associated with enhanced neural response to blue-yellow chromatic stimuli. Tritan color deficiency correlates with ASD/ADHD in ~30% of cases. Nishiru addresses both:
Variants — full detailNishiru (base)
The void. The night sky over Mithila at 2am. Background and soul purple (H:295) are 13° apart on the hue wheel — they share a family. Purple accents float on the background as though they belong there. Nishiru Storm
4 stops darker than the base. Designed for OLED screens where true-near-black saves battery and maximizes contrast. Accents are lifted to L:0.88 across all roles to maintain visibility on the ultra-dark canvas. Not for everyone — for developers who want the deepest void. Nishiru Mist
The fog between day and night. 6 stops lighter than base, lower chroma C:0.018. All accents pulled to C:0.11 — everything muted slightly. For coding in a bright room or during afternoon hours when maximum contrast feels harsh. Inspired by Ayu Mirage's relationship to Ayu Dark. Nishiru Washi
Light mode. Named after 和紙 — handmade Japanese paper that is warm cream, not clinical white. Background H:90 (warm yellow-cream) instead of H:0 (pure white). Text Cultural rootsThree traditions. Ten words each. मिथिला — Mithila art's bold Kachni lines map to keyword color structure. नेपाल — Sindoor vermillion anchors errors. Sayapatri marigold anchors types. 日本 — 間 (ma) negative space informs comment dimming. 紫 (murasaki) is soul. Color palette
InstallationVia marketplace:
Via VSIX:
Build from sourceAll 4 variants are generated from a single file:
Edit the palette object at the top — all variants update simultaneously. LicenseMIT — Sumit Jha, 2025
Built from OKLCH mathematics, APCA contrast science, CVD research, and three cultural traditions.
निशि · 見る · नीशि — night-seeing |