Skip to content

fix(reader): restore EPUB dark link semantics#676

Merged
everpcpc merged 2 commits intomainfrom
codex/epub-dark-link-colors
Mar 19, 2026
Merged

fix(reader): restore EPUB dark link semantics#676
everpcpc merged 2 commits intomainfrom
codex/epub-dark-link-colors

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Problem

The EPUB reader still regressed in dark mode after the Readium CSS v2 migration. Publication-provided dark text could leak through again, and the app-side override flattened links into the body color instead of preserving the older night-mode link treatment.

Approach

Restore the old dark-mode semantics in the shared EPUB payload so every presentation mode uses the same rules. Dark themes now force body text and background colors, keep non-link content inheriting the theme text color, and restore dedicated link and visited-link colors that match the previous Readium v1 behavior.

Scope

  • add dark-mode Readium user color properties for link and visited-link states
  • refine the shared EPUB dark-mode override CSS to keep link colors separate from body text
  • bump the build number to 373

Validation

  • make format
  • make build

Related #673

Align the dark-theme EPUB color override with the old Readium v1 behavior by keeping body text forced to the theme color while restoring dedicated link and visited-link colors.

Add the missing Readium user color properties to the shared payload so all EPUB presentation modes pick up the same dark-mode behavior.

Related #673.
@everpcpc everpcpc merged commit 9cbbfd1 into main Mar 19, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/epub-dark-link-colors branch March 19, 2026 11:07
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.

1 participant