Best Dark Mode for Reading Code Documentation Online
Patrick Bushe · May 1, 2026
Documentation sites are often mostly white space around the code, which is what makes them glare.
Modern Dark Mode darkens them by flipping the page's colors, so white space turns dark gray and black text light gray. Code blocks get the same treatment: colors keep roughly their hue but flip in lightness, so a dark blue keyword turns light blue rather than staying exactly as the author chose. Many documentation sites, including MDN and GitHub, have their own dark themes, which look best where they exist; tick "Exclude this site" on those so Modern Dark Mode doesn't flip them back to light.
Related Answers
More guides on similar topics
How to Force Dark Mode on Reading Heavy Websites
Modern Dark Mode darkens news sites, Medium and Substack while photos keep their colors. Chrome's Reading mode has a dark theme too.
best free system-wide dark mode extension for chromeBest Free System-Wide Dark Mode Extension for Chrome
Modern Dark Mode is free, darkens every site in Chrome and collects no data. A truly system-wide dark mode is a Windows or macOS setting.
chrome dark mode extension with no performance hitChrome Dark Mode Extension with No Performance Hit
Modern Dark Mode uses one CSS filter instead of rewriting each page's styles, so it does very little script work. No extension costs nothing.
best dark mode tool for long late night study sessionsBest Dark Mode Tool for Long Late Night Study Sessions
Modern Dark Mode darkens course sites and articles, and a schedule can switch it on each evening. PDFs in Chrome's viewer are not affected.
best extension for reading wikipedia pagesBest Extension for Reading Wikipedia Pages
Wikipedia's own Appearance menu changes text size, width and color, with no account. Hover a link to preview an article.
best extension for youtube minimalists in 2026Best Extension for YouTube Minimalists in 2026
Ultimate Adblocker has YouTube switches to hide Shorts, the Home feed, recommendations, comments, live chat, merch and end screens.