Back to Playbook

Dark Mode

A dark theme alternative that reduces eye strain in low-light environments and saves battery life on OLED screens.

Why it matters

Dark mode has become a standard expectation for modern applications. It improves accessibility for users with light sensitivity, reduces eye strain in dark environments, and can extend battery life on mobile devices. It also offers a sleek, premium aesthetic.

Dark Theme Colors

Edit

The base layer. Usually a very dark gray, not pure black.

Edit 4.5:1

Lighter than background to indicate elevation (cards, modals).

Edit

Desaturated primary color for better contrast and reduced eye strain.

Edit 4.5:1

High emphasis text. Off-white to avoid harsh contrast against dark backgrounds.

Edit 4.5:1

Medium emphasis text for supporting content.

Live Preview

See how your dark theme colors work together to create depth and hierarchy.

9:41

Settings

JD
Dark Mode
Reduce eye strain
Notifications
Privacy

Core Concepts

Avoid Pure Black

Use dark grays (e.g., #121212) instead of pure black (#000000) to reduce eye strain and smearing on OLED screens.

Elevation via Lightness

In dark mode, use lighter shades of gray to indicate elevation (closer to the user) rather than shadows.

Desaturated Colors

Saturated colors vibrate against dark backgrounds. Use desaturated or pastel tones for better readability.

Contrast Standards

Ensure text maintains sufficient contrast (WCAG AA) against the dark background.

Implementation Checklist

  1. System Preference

    Respect the user's operating system preference (prefers-color-scheme) by default.

  2. Manual Toggle

    Provide a visible toggle for users to override the system setting.

  3. Test Images

    Check that images and illustrations look good on dark backgrounds; invert or adjust if necessary.

Previous: Semantic Colors Next: Typeface