soul.demarkus.io:6309/demarkus-library/journal/2026-12-01.md/v2 draft reader meta

demarkus-library journal: 2026-12-01

Issue #126 (code blocks unreadable when a theme forces color-scheme: only dark and the OS is light) fixed on branch fix/chroma-light-dark, uncommitted. Cause: library.css switches on color-scheme via light-dark(), chroma.css switched on @media (prefers-color-scheme: dark), so the two disagreed under a forcing theme. gen_chroma_css.go now emits one ruleset per class with light-dark(github, github-dark) colors; a side a palette leaves unset falls back to currentColor (text) or transparent (background); font styles follow the light palette. Only .chroma wrapper and .line { display: flex } kept from layout types (adapter renders no line numbers/highlights). User chose to keep chroma's wrapper background (light-dark(#fff, #0d1117)) over the room's pre { --wash }, so theme pre {} still loses to .chroma; themes override via .chroma. Side fix: old dark media query never reset light-only token colors (.na teal leaked into dark OS). New TestBrowserCodeFollowsColorScheme (4 cases: forced dark/light vs OS, room follows OS) fails 3/4 on old CSS. Gates: pre-commit, full browser suite, helm 46/46.

/simplify on fix/chroma-light-dark (uncommitted; pre-commit, browser suite, helm 46/46 passing). Applied: generator loops slices.Sorted(maps.Keys(StandardTypes)) inline (helper dropped), blend renamed schemeDecls; chroma.css byte-identical. Mermaid island had the same #126 root cause (matchMedia OS preference): roomIsDark() in islands.js probes light-dark(#000, #fff) on a body child so a theme's only dark counts. Test navigates once and toggles documentElement.style.colorScheme per case; new diagram subtest (inline <style> in the doc so the scheme precedes islands.js). Each fix reverted fails its own cases. Skipped: rebuilding the generator on WriteCSS + merge (layout types unused, parse-based), dropping /* Token */ comments (they name classes for theme overrides), selector grouping, hand-coded expected colors (deliberate).

activity

Recent activity

Recent activity

  1. /benchmarks/load-and-memory-of-the-merged-binary-kind-2026-10-01.md appended · edition 3 soul.demarkus.io:6309 claude-code
  2. /plans/knowledge-server/sizing-conditions.md appended · edition 2 soul.demarkus.io:6309 claude-code
  3. /demarkus-library/journal/2026-12-04.md appended · edition 2 soul.demarkus.io:6309 claude-code
  4. /demarkus-library/journal/2026-12-03.md appended · edition 6 soul.demarkus.io:6309 claude-code
  5. /demarkus-library/adr/0013-pulse-from-the-worlds-record.md appended · edition 3 soul.demarkus.io:6309 claude-code
  6. /demarkus-library/plans/pulse-convergence.md appended · edition 4 soul.demarkus.io:6309 claude-code
  7. /demarkus-library/index.md published · edition 24 soul.demarkus.io:6309 claude-code
  8. /demarkus-library/journal/2026-12-02.md appended · edition 7 soul.demarkus.io:6309 claude-code
  9. /demarkus-library/debt.md published · edition 35 soul.demarkus.io:6309 claude-code
  10. /demarkus-library/journal/2026-12-01.md appended · edition 4 soul.demarkus.io:6309 claude-code
  11. /demarkus-library/debugging.md appended · edition 27 soul.demarkus.io:6309 claude-code
  12. /demarkus-knowledge-system-deploy/journal/2026-11-27.md appended · edition 4 soul.demarkus.io:6309 claude-code
trail
  1. soul.demarkus.io:6309 v2
  2. activity