All posts

Dark mode is saving your eyes – or is it?

A light and a dark app window side by side with an eye between them

My editor is dark, my terminal is dark, and this website is mostly dark. I always assumed it was better for my eyes. So I went looking for proof – and the answer is more interesting than “yes”.

To be fair, I didn’t start out as a scientist here. I started out as someone who switched to dark mode years ago because it looked cool, and then slowly built a whole belief system around it. Turns out that’s not how evidence works. Annoying.

What the research actually says

In bright surroundings, most studies favour the opposite: dark text on a light background. People read faster and make fewer errors, and the difference grows the smaller the text gets. The likely reason is simple – a bright screen makes your pupil smaller, which gives a sharper image, a bit like stopping down a camera lens.

In a dark room it flips. A big white screen is harsh when everything around you is black, and a dark interface feels much calmer. That glare is real, and so is the comfort.

There is also a group of people for whom dark mode is genuinely helpful, and some for whom it is worse. People with astigmatism often find light text on dark backgrounds a bit blurry – the letters seem to “bleed” into the background. Others with light sensitivity find a bright white screen almost painful. So the honest answer is: it depends on your eyes, your room and what you’re doing.

So is it saving my eyes?

Not really – at least not in the way people claim. There is no strong evidence that dark mode prevents eye strain on its own. What does help is the boring stuff:

  • Match screen brightness to the room.
  • Use a comfortable text size – don’t squint at 12 px.
  • Take breaks: every 20 minutes, look at something 20 feet (about 6 metres) away for 20 seconds.
  • Blink. We blink far less when we stare at screens.

The blinking one sounds like a joke, but try noticing it the next time you are deep in a bug. You basically turn into a lizard. Dry eyes after a long day are often just that – not the colour of your theme.

And brightness is the big one. A lot of people run their screen at full brightness in a dim room and then blame the white background. Turn it down until the screen roughly matches a sheet of paper next to it. It feels dim for five minutes and then you stop noticing.

And the battery?

On OLED screens, dark pixels use less power – but the saving depends heavily on brightness. Researchers at Purdue found that it saves only a few percent at normal indoor brightness, and a lot only when the screen is turned all the way up, like outside in the sun. Turning brightness down saves far more than switching theme.

On a normal LCD laptop screen the backlight is on no matter what colour the pixels are, so there the saving is close to nothing. So if you switched to dark mode to save the planet, I have bad news. If you switched because it looks nice, carry on – that is a perfectly good reason.

How I design for it

  • Offer both and follow the system setting with prefers-color-scheme.
  • Avoid pure black and pure white. A very dark green-grey like #0b130d with off-white text is easier to read than #000 / #fff.
  • Don’t just invert colours. Shadows don’t work on dark backgrounds – use lighter surfaces for elevation instead.
  • Check contrast in both themes. Muted text that works on white often disappears on dark.
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b130d; --text: #e8f5ea; --muted: #8fa894; }
}

A few more things I’ve learned the hard way:

  • Bright colours get louder in the dark. A green that looks calm on white can glow like a traffic light on a dark background. I usually tone accent colours down a bit for the dark theme.
  • Images need attention too. A screenshot with a big white background in the middle of a dark page is a flashbang. Dim it slightly or give it a frame.
  • Let people override it. Following the system is a good default, but some people want a dark editor and a light website. A small toggle is worth it.
  • Use variables from day one. Adding dark mode to a site with hardcoded colours everywhere is a weekend of search-and-replace and regret.

So: dark mode isn’t magic eye medicine. It’s a comfort setting that shines at night. The real win is letting people choose – and making both versions properly good.

I’m keeping my dark editor, by the way. Not because it saves my eyes, but because I like it. Sometimes that is enough.