Skip to content

Light theme fast-track: shared tokens, reading-a-hydrograph and watershed-runoff pilots - #7

Merged
galib9690 merged 2 commits into
mainfrom
feat/light-theme-fasttrack
Nov 24, 2026
Merged

galib9690 merged 2 commits into
mainfrom
feat/light-theme-fasttrack

Conversation

@galib9690

Copy link
Copy Markdown
Member

What

Owner-approved fast-track of docs/vision-2040/findings/module-theme-study-2026-11-24.md (Modules side). Light is the default when no theme is signalled; dark and the two high-contrast themes are first-class. Text, numbers and claims are unchanged; only colours and styles moved.

  • Shared: shared/theme.css (--hy-* tokens for light / dark / hc-dark / hc-light, precedence html[data-aihydro-theme] > forced-colors > prefers-color-scheme > light, dark "plate" tokens, paper card for matplotlib figures, light print sheet) and shared/theme.js (HydroTheme.kind/color/series/dash/onChange).
  • Pilots: reading-a-hydrograph 0.4.0 -> 0.5.0 (fully on tokens); watershed-runoff 0.4.0 -> 0.5.0 (prose, cards, controls on tokens; the two white chart PNGs on a paper card; horseshoe lights now white and untinted; maps, both 3-D stages and the two diagrams on a dark plate in every theme, reasons in DECISIONS.md).
  • P0: evapotranspiration-budyko 0.1.1 axis strokes #475569 and matplotlib edge #334155 -> #8b949e (6.4:1).
  • Catalog: api/modules.json, api/courses.json regenerated with scripts/build_api.py; course 0.4.2.
  • Tests: T1 tests/test_theme_tokens.py (contrast, tinted panels, CVD, print, plate), T2 tests/test_theme_ratchet.py + tests/theme_hex_baseline.json, T3 tests/js/theme.test.js, scene test for white lights and plate stage.

Checks run (local)

build_modules.py --check, render_static_outputs.py --check, gen_docs.py --check, validate_manifests.py, check_csp.py, build_api.py --check all clean; pytest tests 358 passed, 3 skipped; node --test tests/js/*.test.js 164 passed, 0 failed.

Review notes

  • watershed-runoff is 246,682 B of the 250,000 B cap; the added-bytes budget in tests/test_scene3d.py went 130,000 -> 140,000 (cap not raised).
  • Not verified here: rendering inside the installed AI-Hydro build (owner's T5), WebGL scenes in light (no WebGL outside the bridge), and the extension side that sets data-aihydro-theme (separate PR; contract in docs/vision-2040/findings/theme-contract-2026-11-24.md, open points appended there).
  • The other eight lessons are untouched and stay dark-only; #475569/#334155 remain in five of them (listed in CHANGELOG).

🤖 Generated with Claude Code

mohdgalib and others added 2 commits November 24, 2026 17:33
…a-hydrograph and watershed-runoff

- shared/theme.css (--hy-* tokens, four themes, dark plate tokens, paper card, print sheet) and shared/theme.js (HydroTheme)
- reading-a-hydrograph 0.5.0 fully on tokens; watershed-runoff 0.5.0 on tokens with dark plates for maps and 3-D stages, white untinted lights
- evapotranspiration-budyko 0.1.1: axis strokes and matplotlib edge colour meet 3:1
- course 0.4.2; static outputs re-rendered; README table regenerated
- tests: token contrast and colour-vision gate, hard-coded colour ratchet, HydroTheme, scene lights and stage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hed-runoff 0.5.0, evapotranspiration-budyko 0.1.1, course 0.4.2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@galib9690
galib9690 merged commit 6126048 into main Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants