Skip to content

Update Readium CSS to v2 - #890

Draft
stevenzeck wants to merge 13 commits into
developfrom
css-v2
Draft

Update Readium CSS to v2#890
stevenzeck wants to merge 13 commits into
developfrom
css-v2

Conversation

@stevenzeck

@stevenzeck stevenzeck commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This PR updates the toolkit to use Readium CSS v2.

  • Readium CSS is now installed and updated via pnpm. The copy-webpack-plugin copies the files from the node_modules directory into Sources/Navigator/EPUB/Assets/Static/readium-css.
  • Added an option to minify the CSS via the Makefile. Useful for releases.
  • Added the noRuby and lineLength properties.
  • Replaced and deprecated maxLineLength in favor of the new defaultLineLength.
  • Changed columnCount from an enum to an Int.
  • Replaced imageFilter with blendImages, darkenImages, invertImages, and invertGaiji.
  • Added new overrides in ReadiumCSS.swift.
  • Add and updated tests. Also changed the 4 tests in CSS to use Swift tests instead of XCTest.
  • Documentation updated.

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