Color Dark Mode Pairing
@community/pattern-color-dark-mode-pairing
$ prime install @community/pattern-color-dark-mode-pairing Projection
Always in _index.xml · the agent never has to ask for this.
ColorDarkModePairing [pattern] v1.0.0
Loaded when retrieval picks the atom as adjacent / supporting.
ColorDarkModePairing [pattern] v1.0.0
Label
Dark Mode Color Correspondence
Problem
Developers implement dark mode by CSS inversion filters or by simply flipping lightness values, producing muddy colors, over-saturated midtones, and backgrounds that are pure black rather than near-black. This breaks color fidelity and the chroma envelope rule.
Solution
Treat dark mode as a full re-palette, not a filter. Map every light-mode token to a deliberate dark-mode counterpart using these rules: background steps move from L=0.97–0.99 to L=0.10–0.15; solid steps (9–10) may stay similar or increase slightly; chroma decreases at low lightness to respect the chroma envelope.
Loaded when retrieval picks the atom as a focal / direct hit.
ColorDarkModePairing [pattern] v1.0.0
Label
Dark Mode Color Correspondence
Problem
Developers implement dark mode by CSS inversion filters or by simply flipping lightness values, producing muddy colors, over-saturated midtones, and backgrounds that are pure black rather than near-black. This breaks color fidelity and the chroma envelope rule.
Solution
Treat dark mode as a full re-palette, not a filter. Map every light-mode token to a deliberate dark-mode counterpart using these rules: background steps move from L=0.97–0.99 to L=0.10–0.15; solid steps (9–10) may stay similar or increase slightly; chroma decreases at low lightness to respect the chroma envelope.
Label
Dark Mode Color Correspondence
Problem
Developers implement dark mode by CSS inversion filters or by simply flipping lightness values, producing muddy colors, over-saturated midtones, and backgrounds that are pure black rather than near-black. This breaks color fidelity and the chroma envelope rule.
Solution
Treat dark mode as a full re-palette, not a filter. Map every light-mode token to a deliberate dark-mode counterpart using these rules: background steps move from L=0.97–0.99 to L=0.10–0.15; solid steps (9–10) may stay similar or increase slightly; chroma decreases at low lightness to respect the chroma envelope.
Source
prime-system/examples/frontend-design/primes/compiled/@community/pattern-color-dark-mode-pairing/atom.yaml