# Dark Mode

> A theme with light text on a dark background. It often follows a phone setting.

**Field:** Design  
**Category:** Design Standards  
**Also known as:** Dark Theme, Night Mode, prefers-color-scheme

## Think of it like

It is like turning down the lights in a room at night. Same room, easier on the eyes.

## Definition

Dark mode is a theme with light text on a dark background. Most phones and computers have a setting for it, and sites can follow that setting. A good dark mode is not just the colors flipped. It uses dark grey rather than pure black, and softer whites. Its colors are tuned so they still have enough contrast. Shadows show depth poorly on dark, so lighter surfaces often show what sits on top.

## Example

Leo's phone switches to dark at sunset. His banking app follows, with dark grey screens and soft white text.

## Example code

```css
@media (prefers-color-scheme: dark) {
  :root { --color-background: #121212; --color-text: #e6e6e6; }
}
```

The page follows the reader's own light or dark setting.

## Why it matters

Many people use it all day, and a broken dark mode is seen at once.

## Common mistake

Simply inverting colors. Photos look wrong, brand colors glare, and contrast breaks.

## Three principles

- **Follow the setting.** And let people choose.
- **Dark grey, not black.** Softer on the eyes.
- **Recheck contrast.** Colors need tuning.

## Related terms

- [Theming](https://learn.benibix.com/term/design/theming)
- [Semantic Token](https://learn.benibix.com/term/design/semantic-token)
- [Contrast Ratio](https://learn.benibix.com/term/design/contrast-ratio)
- [High Contrast Mode](https://learn.benibix.com/term/design/high-contrast-mode)

## Told apart from

- [High Contrast Mode vs Dark Mode](https://learn.benibix.com/compare/high-contrast-mode-vs-dark-mode): People think high contrast mode is just a darker dark mode, and it is not. The designer makes a dark mode, and it keeps the brand colors and shadows. High contrast mode is set by the person. It throws out the design's colors and uses a few strong ones they picked. Shadows and tints are gone, so only real borders show where a button is.

---

Source: https://learn.benibix.com/term/design/dark-mode
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
