Skip to content

feat(theme): add Gaia Aether palette - #49

Merged
leboiko merged 20 commits into
leboiko:masterfrom
ykzird:feat/gaia-aether-theme
Nov 23, 2026
Merged

leboiko merged 20 commits into
leboiko:masterfrom
ykzird:feat/gaia-aether-theme

Conversation

@ykzird

@ykzird ykzird commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a ninth built-in theme, Gaia Aether, to the Theme enum: Gruvbox
warmth (cream #f2e5bc text, moss and amber hues) on a blue-grey #181c22
surface, with a dusty-mauve accent. It matches the AETHER / G.A.I.A v2
desktop palette I already use everywhere else, so a document read in this
viewer sits in the same colours as the rest of the desktop.

Follows the documented extension path in src/theme/mod.rs — one enum
variant, one Tokens constructor in src/theme/themes.rs, one dispatch arm
in src/theme/tokens.rs — so nothing else needed touching. The settings
modal, config parsing, and the syntect mapping pick it up automatically.

Changes

  • src/theme/mod.rs — Theme::GaiaAether variant, Theme::ALL, label()
    ("Gaia Aether"), and syntax_theme_name()
    ("base16-eighties.dark", the warm dark bucket shared with Dracula/Gruvbox Dark).
  • src/theme/themes.rs — gaia_aether(), with the source-palette names
    carried through as comments.
  • src/theme/tokens.rs — dispatch arm.
  • README.md — theme count updated to nine, new bullet in the Themes list,
    gaia_aether added to the config.toml example.
  • CHANGELOG.md — ## [Unreleased] entry.

Three slots deliberately depart from the source palette, because the literal
values fail this crate's existing contrast audit — the details are in the
gaia_aether() doc comment and the changelog entry:

Slot Source value Used Why
accent.primary #a0607a #c98fa0 No foreground reaches AA on #a0607a (ceiling 3.76:1); it carries on_accent text in the status and tab bars. Source value stays as accent.alt.
state.selection_bg #261a28 #503a4a Source sits 0.16 luminance units from the surface, under MIN_SELECTION_DELTA (3.0) — an invisible selection.
state.focus — #c98fa0 6.45:1 against the base surface.

Test Plan

  • Existing tests pass (cargo test --workspace) — 1621 pass, 3 ignored, 0 fail, on Linux
  • New tests added where appropriate — none needed; the audit tests in
    src/theme/mod.rs::tests and src/theme/tokens.rs::tests iterate
    Theme::ALL, so the new variant is pinned to the same WCAG AA floor, focus
    visibility, and selection-distinctness checks as every other theme
  • Manually tested on macOS / Linux (specify which) — Linux only (Arch, rustc 1.98.1); macOS untested
  • If a Mermaid block changed, verified rendering in TUI and via mermaid-text CLI — no Mermaid change

Also run locally, per CONTRIBUTING.md:

  • cargo fmt --all -- --check — clean
  • cargo clippy --all-targets -- -D warnings — clean

Manual check: launched the viewer against this repo's README.md, opened the
settings modal (c), confirmed Gaia Aether appears as the ninth entry and
applies live, and compared the rendered output against the desktop palette
(dark blue-grey surface, cream reading text, mauve selection highlight, moss
and cyan headings).

Checklist

  • CHANGELOG.md entry added (root for markdown-tui-explorer, crate-local for mermaid-text)
  • No new clippy warnings (cargo clippy --all-targets -- -D warnings)
  • Documentation updated if public API changed — README theme section; no public API change
  • Version bumped in Cargo.toml if user-visible — left to your release commit, since your release flow bumps the version in a separate release: commit and I did not want to guess the next number

Linked Issue

None — no issue for this; happy to open one first if you would rather review
it as an issue than as a PR.

dependabot Bot and others added 18 commits September 7, 2026 10:26
…0 updates

Bumps the patch-and-minor group with 10 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [ignore](https://github.com/BurntSushi/ripgrep) | `0.4.26` | `0.4.32` |
| [tokio](https://github.com/tokio-rs/tokio) | `1.52.3` | `1.53.1` |
| [anyhow](https://github.com/dtolnay/anyhow) | `1.0.103` | `1.0.104` |
| [clap](https://github.com/clap-rs/clap) | `4.6.1` | `4.6.6` |
| [serde](https://github.com/serde-rs/serde) | `1.0.228` | `1.0.229` |
| [toml](https://github.com/toml-rs/toml) | `1.1.2+spec-1.1.0` | `1.1.5+spec-1.1.0` |
| [ratatui-image](https://github.com/ratatui/ratatui-image) | `11.0.6` | `11.0.7` |
| [edtui](https://github.com/preiter93/edtui) | `0.11.3` | `0.11.7` |
| [ureq](https://github.com/algesten/ureq) | `3.3.0` | `3.4.0` |
| [serde_json](https://github.com/serde-rs/json) | `1.0.150` | `1.0.151` |



Updates `ignore` from 0.4.26 to 0.4.32
- [Release notes](https://github.com/BurntSushi/ripgrep/releases)
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md)
- [Commits](BurntSushi/ripgrep@ignore-0.4.26...ignore-0.4.32)

Updates `tokio` from 1.52.3 to 1.53.1
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](tokio-rs/tokio@tokio-1.52.3...tokio-1.53.1)

Updates `anyhow` from 1.0.103 to 1.0.104
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](dtolnay/anyhow@1.0.103...1.0.104)

Updates `clap` from 4.6.1 to 4.6.6
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.6.1...clap_complete-v4.6.6)

Updates `serde` from 1.0.228 to 1.0.229
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.228...v1.0.229)

Updates `toml` from 1.1.2+spec-1.1.0 to 1.1.5+spec-1.1.0
- [Commits](toml-rs/toml@toml-v1.1.2...toml-v1.1.5)

Updates `ratatui-image` from 11.0.6 to 11.0.7
- [Release notes](https://github.com/ratatui/ratatui-image/releases)
- [Changelog](https://github.com/ratatui/ratatui-image/blob/master/CHANGELOG.md)
- [Commits](ratatui/ratatui-image@v11.0.6...v11.0.7)

Updates `edtui` from 0.11.3 to 0.11.7
- [Release notes](https://github.com/preiter93/edtui/releases)
- [Changelog](https://github.com/preiter93/edtui/blob/main/CHANGELOG.md)
- [Commits](https://github.com/preiter93/edtui/commits)

Updates `ureq` from 3.3.0 to 3.4.0
- [Changelog](https://github.com/algesten/ureq/blob/main/CHANGELOG.md)
- [Commits](algesten/ureq@3.3.0...3.4.0)

Updates `serde_json` from 1.0.150 to 1.0.151
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.150...v1.0.151)

---
updated-dependencies:
- dependency-name: ignore
  dependency-version: 0.4.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: tokio
  dependency-version: 1.53.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: patch-and-minor
- dependency-name: anyhow
  dependency-version: 1.0.104
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: clap
  dependency-version: 4.6.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: serde
  dependency-version: 1.0.229
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: toml
  dependency-version: 1.1.5+spec-1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: ratatui-image
  dependency-version: 11.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: edtui
  dependency-version: 0.11.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
- dependency-name: ureq
  dependency-version: 3.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: patch-and-minor
- dependency-name: serde_json
  dependency-version: 1.0.151
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch-and-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Gruvbox warmth on a blue-grey surface, with a dusty-mauve accent, matching
the AETHER / G.A.I.A v2 desktop theme.

Three slots deviate from the source palette because its literal values fail
the crate's own contrast audit: accent.primary uses the source magenta
(#c98fa0) since no foreground reaches AA on #a0607a, state.selection_bg is
a lightened selection (#503a4a) to clear MIN_SELECTION_DELTA, and
state.focus is the magenta accent at 6.45:1 on the base surface.
…-safe helper (leboiko#50)

The class parser kept a local `strip_keyword_prefix_ci` that sliced
`line[..kw.len()]` at a byte index, so a line such as `動物 <|-- 犬`
panicked when a probed keyword length landed inside a multi-byte char.
It is the copy the 0.56.1 audit (leboiko#29) missed; use the canonical
`parser::common::strip_keyword_prefix` instead, as gantt and journey do.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…refix

fix(mermaid-text): prevent UTF-8 parser panics and harden class methods
fix: align Unicode diagrams and preserve relationship geometry
Preserve Dependabot's original commit and add current patched parser, TLS and Tokio dependencies.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…26-11-05

fix: resolve Mermaid issues and prepare verified releases

@leboiko leboiko left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theme wiring and palette construction reviewed. Minor documentation correction: the claim that no foreground reaches AA on #a0607a is incorrect; white reaches approximately 4.72:1, while the chosen #181c22 foreground reaches 3.62:1. I will correct the rationale without changing the palette, resolve the changelog conflict against current master, and run the local validation gates before merge.

@leboiko

leboiko commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Reviewed and corrected in a24867b, preserving the contributor commits.

Finding Status
Incorrect contrast ceiling claim Corrected to the chosen foreground/background ratio; palette unchanged
Changelog conflict Resolved against master; contributor credited
Existing dependency gate failures Updated url/cookie; documented the maintenance-only chrono exception because its date type is public API

Local validation passed: rustfmt, workspace/all-target Clippy, full workspace tests on stable and Rust 1.92, docs, cargo-deny and cargo-audit. Existing documentation warnings and six nonblocking audit warnings remain. No unresolved code findings. No manual terminal visual check. Detailed red-team review is committed in PR-49-review.md. Fork workflows approved; waiting for remote results.

leboiko added a commit to Moler1995/markdown-reader that referenced this pull request Nov 23, 2026

@leboiko leboiko left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed corrected head a24867b. All local gates and all 12 GitHub checks pass, including Linux/macOS Nix builds and binary smoke tests. No remaining merge-blocking findings; review details are committed in PR-49-review.md.

@leboiko
leboiko merged commit 6f925af into leboiko:master Nov 23, 2026
12 checks 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.

3 participants