When exporting to a PDF from dark-mode, the font-color of dark mode is retained, while the background color is not. So, the result is unreadable white-on-white text.
I am able to work-around the issue by changing the base color scheme to “light” before exporting.
Personally, I think the color scheme of a printable document should not be tied to the color scheme of the editor. They’re different use cases, and CSS has @media queries because of similar issues.
I also don’t think the color scheme of the editor needs to be tied to the document, either. BTW, I’m not using any custom CSS or inline color attributes or anything like that.
I’m running the AppImage on Ubuntu 20.04 with Gnome desktop.
SYSTEM INFO:
Obsidian version: v1.5.8
Installer version: v1.5.3
Operating system: #83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 5.15.0-76-generic
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: onRECOMMENDATIONS:
none
Steps to reproduce
- Enable dark mode (Settings > Appearance > Base color scheme > Adapt to system) — which is dark mode for me.
- Export a document to PDF
Did you follow the troubleshooting guide? [Y/N]
I was able to reproduce this in the sandbox vault. The “Official Help Site” is in a black box because of my OS. (It’s selected text in a non-active window.) The text was invisible before I selected it.