Warm tone light mode for pdfs
-
Dark mode is actually harder on the eyes than light mode. When reading light text against a dark background, the pupils constrict, resulting in eye strain. The ideal theme is a warm tone light mode. Done right, it should mimic reading paper by candlelight. I use this js snippet as a bookmark to ease eye strain while reading pdfs:
javascript:(function(){ var elements = document.querySelectorAll('body, body *'); var style = 'sepia(0.8) brightness(75%) contrast(110%)'; elements.forEach(function(element){ element.style.filter = style; }); })()
Simply create a new bookmark and paste this codeblock into the url prompt. Open a pdf in your browser, and click the bookmark. This will increase sepia, decrease brightness, and slightly increase contrast. You can tweak the settings for best performance based on your monitor, and even make different versions for daytime and nighttime. It synergizes with f.lux very well and makes even a cheap monitor feel like e-ink. Unfortunately it wont work for older studies.
-
@brad thoughts on implementing a theme/function that does this? User JS /CSS would also be a neat feature but I'd imagine it would be hard to implement due to how the site's software works.
-
@stag said in Warm tone light mode for pdfs:
When reading light text against a dark background, the pupils constrict, resulting in eye strain.
Seriously? a larger amount of white on the screen (= more blue light) has physiological effects that clearly and intuitively make the dark mode better I think.
-
@Svet I can add custom CSS, users can change their theme (in settings) and I can customize any given theme. If people have requests and they stake out a theme and write the CSS themselves I’m happy to install it.
-
the limiting factor for long reading sessions in light mode is blue light causing mitochondrial damage leading to eye strain
the limiting factor for long reading sessions in dark mode is pupil constriction causing eye strain
This setup is meant to get the best of both worlds by minmaxing warmth, brightness, and contrast while retaining the dark text/light background combo for readability.
-
@stag Interesting! Will experiment with it! I use an e-ink tablet to read and I will check between dark and light mode when i read for a couple hours.
-
@CO3 What kind of e ink tablet do you have? Ive been looking into getting one. The onyx book note air 3 looks good, if a bit pricey. Id want something that can run android OS so I can put my Obsidian vault on it.
-
@stag Mine doesn't run any version of android, maybe I used the wrong terminology. It's an e-reader. Kobo Clara HD
-
@stag thanks for the tip, I got a boox note air & think it’s really nice, I use it every day
-