UX Collective

We believe designers are thinkers as much as they are makers. https://linktr.ee/uxc

Follow publication

Member-only story

Dark mode with design tokens

Lukas Oppermann
UX Collective
Published in
12 min readAug 8, 2022

--

Cover illustration showing a stepped gradient of colors mimiking the sky from monring to night

This article discusses everything from triggering dark mode, to setting up design tokens to get automatic dark mode for all components.

This is a two part series:
1. Implementing dark mode
2. Designing dark mode

Introduction: Dark mode — what is it?

Dark modes emit low levels of light while maintaining a high standard of usability.

Source: Material.io¹

You can guess it from the quote of the googles material design documentation, it is simply a dark theme. With a color palette that consist mainly of black and greys. The occasional desaturated accent color brings your brand back into the product.

The resulting lower levels of light can result in improved battery performance, reduced eye strain and better accessibility.

Should dark mode be low or high contrast?

There is some confusion around dark mode and high contrast themes. Generally both is fine. As long as the foreground to background contrast passes WCAG ratios².

--

--

Written by Lukas Oppermann

Product designer with a love for complex problems & data. I post about Figma, design tokens, design systems & design related topics. https://lukasoppermann.com

Responses (1)

Write a response