Skip to content
BENIBIX Learn

Dark Mode

Design📐 Design StandardsTokens and Themes

Also known as Dark Theme, Night Mode, prefers-color-scheme

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

Think of it like

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

Example

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

Why it matters

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

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 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.

Common mistake

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

Key takeaways

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

Compare