mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 01:36:45 +00:00
* epub.css: add optional dark-mode (light-dark) support The default EPUB stylesheet hardcodes a single dark text color (#1a1a1a) on top of the reading system's own background. This wraps that color — and the <hr> rule and table borders that use it — with CSS light-dark(), so readers supporting `color-scheme` get an inverted dark theme. Each light-dark() declaration is preceded by a plain #1a1a1a fallback, so readers that do not support light-dark() simply drop the new declaration and keep the unchanged original appearance (graceful degradation). No change to pandoc's conversion logic. Align dark-mode values with bundled breezedark palette