|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 1.5.1 · 2026-09-17 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- **A dark theme for the viewer, following the operating system.** `leji view` and the |
| 8 | + exported viewer read `prefers-color-scheme` and paint the brand's dark surfaces when the |
| 9 | + reader's system is dark. There is no toggle and no stored choice: one dark stylesheet, |
| 10 | + linked with `media="(prefers-color-scheme: dark)"`, re-values the theme tokens and |
| 11 | + overrides the stock grounds, rules, tones, and syntax colors that read no token, every |
| 12 | + text tone the dark palette declares at 4.5:1 or better on every dark ground. |
| 13 | + `viewer.theme.link` governs the light scheme only, because the guard measures an authored |
| 14 | + color against the light grounds; the dark scheme's link tone is fixed. The authored |
| 15 | + `viewer.theme.primary` keeps its light-scheme role; in dark it colors no text and |
| 16 | + diagrams take a fixed palette. Mermaid diagrams take a palette per scheme and re-render |
| 17 | + from their authored source when the system scheme changes, with no reload. A reader whose |
| 18 | + system is light, on a layer that names no scheme, sees the 1.5.0 viewer unchanged. |
| 19 | + Requested in #14 by Daniel Montilla; the feature request on the record is #16. |
| 20 | +- **`viewer.theme.appearance`**: an optional manifest field naming which color scheme the |
| 21 | + viewer renders in. `system` (the default) follows the reader's operating system, as |
| 22 | + above; `light` and `dark` render that scheme on every system. A named scheme is stamped |
| 23 | + on the page's root element and in the `color-scheme` meta, which reads `light dark` where |
| 24 | + the choice stays the reader's; the dark stylesheet is linked under the dark media query |
| 25 | + for `system`, unconditionally for `dark`, and not at all for `light`; the Mermaid |
| 26 | + initializer reads the stamp before the system. A layer that sets nothing renders as |
| 27 | + `system`, its page differing from 1.5.0's by that stylesheet link, the `color-scheme` |
| 28 | + meta, and an inline style block that reads the palette tokens where it restated the same |
| 29 | + light colors, and, where the layer names a link tone, that declaration scoped to the |
| 30 | + light scheme. Additive schema field, `$id` unchanged; the schema page on leji.org |
| 31 | + describes it in six languages. The choice is the layer's: the viewer carries no reader |
| 32 | + control. |
| 33 | +- **leji.org follows the operating system's color scheme, and the reader may choose.** One |
| 34 | + dark palette over the site's role tokens, on the viewer's charcoal grounds, every text |
| 35 | + pair at AA; the light and dark palettes ship as their own stylesheets. A control at the |
| 36 | + lower right of every page cycles system, light, and dark in the page's language, keeps |
| 37 | + the choice in the browser where storage allows, and applies it before the first paint. A |
| 38 | + reader whose system is light and has chosen nothing sees the 1.5.0 page with the control |
| 39 | + added and the footer's last row clear of its corner. |
| 40 | + |
| 41 | +### Changed |
| 42 | + |
| 43 | +- **A feature starts as a request.** `CONTRIBUTING.md` gains "Before you build": a bug |
| 44 | + fix, a correction, or a test for behavior the docs already promise is a direct pull |
| 45 | + request; anything that adds behavior, a surface, a dependency, a toolchain path, or a |
| 46 | + manifest field opens as a feature request first, answered normally within 14 days with |
| 47 | + accepted (naming the release it targets), not now (naming what would change that), or |
| 48 | + declined (with the reason kept on the issue). A feature-request issue template and the |
| 49 | + pull request template's request line carry the path, and `ROADMAP.md` at the repository |
| 50 | + root states the direction requests are measured against, linked from `README.md`, |
| 51 | + `CONTRIBUTING.md`, and `GOVERNANCE.md`. |
| 52 | + |
| 53 | +### Fixed |
| 54 | + |
| 55 | +- **The collapsed menu button keeps its own language across a press.** On a translated page |
| 56 | + the header script rewrote the button's accessible name in English on every press; the |
| 57 | + rendered name now stays, and `aria-expanded` carries the state. |
| 58 | + |
3 | 59 | ## 1.5.0 · 2026-09-14 |
4 | 60 |
|
5 | 61 | ### Added |
|
0 commit comments