During the I/O keynote, Google has finally made Dark Theme for Android 10 Q official. We've seen that change coming, but thus far, we didn't receive a word on the best practices for implementing dark themes in apps. This has changed now, as Google updated the Material Design guidelines with information on this.

Let's start with what interests many of you the most: No, Google doesn't encourage the usage of pure black but instead recommends using gray – different shades of gray for varying levels of elevation within views that is. The company justifies this with readability and accessibility reasons and writes: "Dark gray surfaces can express a wider range of color, elevation, and depth, because it’s easier to see shadows on gray (instead of black). Dark gray surfaces also reduce eye strain, as light text on a dark gray surface has less contrast than light text on a black surface." This is in line with previous research and known design paradigms, and the fact that you shouldn't use slightly transparent typography over 100 percent white helps with eye strain as well.

An example on how to find the perfect colors in an app and how they should be used in views

Naturally, colors should be avoided in dark mode as not to make it obsolete. Thus, primary and secondary colors should be pastels and not saturated, since that wouldn't play nice with readability on dark backgrounds. Brand colors are excepted from this rule, although logos and such should be used sparingly in the first place. Only small interface elements should be colored anyway, and developers should be careful about painting huge areas as not to emit too much brightness.

While you can technically set your device to dark theme the moment you take it out of the box or update to Android Q and never look back, Google says that the White Theme remains the default that should be supported by all apps. Of course, per guidelines, you should always be able to opt specific apps out of or into dark mode through a switch within apps' settings.

For the most part, the recently updated Google apps follow these guidelines. There are some older parts of Google News that are completely black, but these seem to stem from the days when the app still was Play News Stand. Backgrounds in Google Photo's picture viewer are completely black, too, but that has always been the case.

  • Thanks:
  • Nicola Hinssen