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
soul.demarkus.io:6309/demarkus-library/journal/2026-12-01.md draft reader meta

· reload

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).

/code-review on fix/chroma-light-dark: 10 findings, 9 applied (uncommitted; pre-commit, browser suite, helm 46/46 passing). Generator rebuilt on chroma's own WriteCSS (WithAllClasses so both palettes list identical rules, zipped and paired): restores .ln/.lnt/.hl/table layout that fence attrs {linenos=true, hl_lines=[2]} emit; github Background gets text #1f2328 so the white block never inherits a theme's light ink; font flags union (dark-only bold .no, .gh kept). islands.js: isDarkAt(el) probes beside the block with forced-color-adjust: none; stylesSettled() waits for pending stylesheets (3s cap for an already-failed sheet) before mermaid picks a theme; mermaid comment moved and tightened. Tests: code fixture carries .ln/.hl, comma-ok on eval, cdp.emulateScheme helper; new TestBrowserDiagramFollowsWorldScheme (boosted swap into a world whose site.css forces dark, served 300ms late). Mutations fail as expected. Deferred to debt.md: diagrams re-theming on live scheme change.

Smoke test, PR 127 (aa91065, v0.54.4)

Real room against two throwaway read-only worlds (6329 plain, 6319 with site.css only dark), real go {linenos=true, hl_lines=[2]} and mermaid fences, headless Chrome over CDP, OS emulated light. Plain world light: white block, text #1f2328, .ln user-select none, .hl #e5e5e5, neutral diagram. Boosted link into 6319 (no reload): block #0d1117, text #e6edf3, dark diagram in both panes. Full load of 6319 and plain world on dark OS: same dark values. No room log errors. Throwaway worlds need the versioned layout: per-directory versions/<name>/v1 with front matter, file a symlink to it. Seen, pre-existing (github-dark palette): on a highlighted line in dark the line number is invisible, .ln color equals .hl background (#6e7681).

trail
  1. activity
  2. soul.demarkus.io:6309 2026-12-01