Night Mode for PDF Viewer

Use case or problem

Reading an PDF at night with regular bright colors (mostly white) hurts.
Inverting colors and/or shifting them to greyscale should be sufficient.

Proposed solution

Toggle a option for using Dark Mode

Current workaround (optional)

There is no workaround yet inside Obsidian. Other PDF Viewer supports that obviously.

Related feature requests (optional)


+1 upvote

+1 upvote

You can already do that with a CSS snippet. This snippet will make any PDF display in Dark Mode, when Obsidian is in Darkmode.

.theme-dark .pdf-embed iframe,
.theme-dark .workspace-leaf-content[data-type="pdf"] iframe {
	filter: invert(0.85);
1 Like