Skip to main content

Dark Mode

UI Design

What is Dark Mode

Dark mode is an appearance setting that shows light text and elements on a dark background. Users turn it on at the system level, and apps and websites are expected to follow their choice.

How Dark Mode works

  • Semantic colors: Each color role gets a light and a dark value
  • Dark grey surfaces: Material Design uses dark grey, not pure black
  • Elevated layers: Surfaces that sit higher are lighter, so depth stays visible
  • System setting: On the web, prefers-color-scheme detects the user's choice

How to design for Dark Mode

Build the palette with design tokens so each role switches value per theme. Do not just invert colors. Lower the saturation of bright colors, check contrast of at least 4.5:1 for text, and test images and icons on dark backgrounds.

Benefits and limits of Dark Mode

Many users prefer dark mode in low light. Research summarized by NN/g shows that people with normal vision usually read better in light mode, so support both and let users choose.

Frequently asked questions

Is dark mode better for your eyes?

Not for most people. NN/g reports that people with normal vision tend to read and perform better in light mode, while some people with cataracts and related conditions may do better in dark mode. That is why offering both matters.

Should dark mode use pure black?

Usually not. Material Design's baseline dark theme uses dark grey for backgrounds and surfaces, and Apple uses brighter "elevated" backgrounds for layers that sit above others.

Should an app have its own dark mode setting?

Apple advises against an app-specific appearance setting, because people expect apps to follow the system choice. On the web, the prefers-color-scheme media feature reads the user's setting.