PDF Dark Theme

CRX ID
dhhcfpbikhlkoicblakagcmfpnnkhkpl
Status
  • Live on Store
Description from extension meta

Applies a dark theme to your PDF viewer

Image from store
PDF Dark Theme
Description from store

⚠️IMPORTANT⚠️: This extension won't work until you give it permission to access file URLs. You can do so by heading to your browser's extension page and enabling file access there.

⚠️IMPORTANT⚠️: This extension will only work on PDFs that you have installed locally on your computer. If you want it to work on PDFs you find online as well i.e. http://www.africau.edu/images/default/sample.pdf, I recommend you use Arshpreet Buttar's DarkPDF extension instead @ https://chrome.google.com/webstore/detail/darkpdf/cfemcmeknmapecneeeaajnbhhgfgkfhp?hl=en.

⚠️IMPORTANT⚠️: Your PDF viewer should be set to light theme for this extension to work. If you try to open up a light PDF document in a dark PDF viewer, this extension is going to invert the colors for both of them. Leaving you with a dark PDF document and a light PDF viewer. You need to have both of a light PDF document and a light PDF viewer for the desired results.

EDIT: As pointed out in the reviews, you can't change the theme for chrome's default PDF viewer without changing the theme of your browser (as of May 2024 at least). I use the Vimium C PDF Viewer chrome extension instead, which gives me a different PDF viewer that can have a theme independent of the browser. Put chrome in dark theme, put vimium C pdf viewer in light theme, and it should work out. You can find that extension here.

https://chromewebstore.google.com/detail/pdf-viewer-for-vimium-c/nacjakoppgmdcpemlfnfegmlhipddanj

https://chromewebstore.google.com/detail/vimium-c-all-by-keyboard/hfjbmagddngcpeloejdejnfgbamkjaeg

This extension is a fork of Buttar's extension (from above) except it's one file only.

```js
let darkPdfDivStyles = `
pointer-events: none;
width: 100vw;
height: 100vh;
background-color: #e6e6e6;
mix-blend-mode: difference;
z-index: 1;
`;

let darkPdfDiv = document.createElement('div');
darkPdfDiv.setAttribute("style", darkPdfDivStyles);
document.body.appendChild(darkPdfDiv)
```

EDIT: I ended up switching to Buttar's extension myself, but in case people still want this one I'll leave it up. If anyone wants to use my logo, it's public domain no attribution required (no warranty). Code is GPLv3.

https://github.com/chris-straka/pdf-dark-theme

Latest reviews

Philo Reda 2025-08-05

not working

Mark 2025-06-16

Maybe I missed some of the instructions, as I'm no Chrome expert, but I couldn't get it to work.

Costas Philippides 2025-06-14

A lot of conditions to worry about until the pdf displays with dark background. Simply put, it doesn't work right outside the box.

Jenil 2025-05-15

Thank you

Yap YH 2025-05-12

It still doesn't work even after enabling the "Allow access to file URLs" in setting. "

Luka Solncev 2025-04-15

Not work

Daniel Puia 2025-03-27

It works fine, but you need to give more permissions to it that doesn't come as default on the Chrome Browser. Also, a toggle option would be nice to have for PDFs that you need to view in the original color scheme.

Harigajan Panchalingam 2025-01-13

Perfect, just missing a toggle functionality

Undefined Undefined 2024-12-26

Thank you

AbuFahad 2024-12-24

is not working

Meghraj Baria 2024-12-18

Works well. Thanks for this extension!

Jean-Pierre Soso 2024-12-03

Not working

Yoav Wasserman 2024-11-26

great extension, would love to see on/off button, I have to review some of the pdfs in their original color

Hit Vaghani 2024-09-17

as a developer, I appreciate your work but it can not differentiate between text and image it also changes the color of an image in my pdf (i am using Brave).

João Rafael 2024-09-16

thank you keep up the good work

Diogenes Zzz 2024-03-17

Disgusting!

Sabrina Ergert 2024-03-07

I have given permission for this extension to access file URLs by checking the box. Nevertheless, nothing happened when I opened a PDF file in the browser from the hard disk in my PC. I think it is a great pity that the advertised function does not work. For this reason, there is unfortunately only one star from me in the rating of this extension.

Alexis Brissard 2023-11-20

"Your PDF viewer should be set to light theme for this extension to work." How do you do that in chrome ?

Statistics

Installs
8,000
Market
Chrome Web Store
Category
Rating
2.82 (22 votes)
Last update
2024-05-10
Version 1.04
Languages