1
0
mirror of https://github.com/alecthomas/chroma.git synced 2026-06-09 21:08:31 +02:00
Files
Alec Thomas a71fea3435 feat(styles): add light/dark mode support
Style.Mode() derives Light/Dark from the Background entry's luminosity.
A new optional Counterpart field (and counterpart="..." XML attribute)
points at the opposite-mode style. styles.GetForMode(name, mode) follows
the counterpart, and RegisterPair links a Light/Dark pair both ways.
Wires counterparts on the obvious paired bundled styles.
2026-05-26 12:48:10 +10:00
..