All Answers
Best Of Guides

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.

More guides on similar topics