Back to blog
UI/UX

Designing Dark Mode Properly

Dark mode is not created by replacing white with black. Contrast, surfaces and visual hierarchy all need to be reconsidered.

F

fidow.dev

September 23, 2026

8 min read
UI/UX

Dark mode looks simple from the outside: change the background to black and text to white. In practice, a strong dark interface requires its own visual decisions. Colors behave differently, shadows lose effectiveness and contrast can quickly become uncomfortable.

Avoid pure black as the only surface

If every background uses exactly the same black value, it becomes difficult to communicate depth. You are then forced to depend heavily on borders.

css
.dark {
  --background: #090d0c;
  --surface: #101615;
  --surface-soft: #141c1a;
  --surface-strong: #1a2522;
}

A small surface scale provides hierarchy without making the interface feel gray.

White text can also be too aggressive

Large areas of pure white text against nearly black backgrounds can create uncomfortable contrast. Secondary text should use softer values.

Primary text should remain highly readable.

Secondary text can use lower contrast.

Borders should usually become more subtle.

Avoid bright accent colors across large surfaces.

Accent colors need a dark-mode version

A brand color that looks balanced on a light background may become too dark or too saturated on a dark interface.

For this reason, I prefer separate light and dark theme values rather than assuming one primary value can work everywhere.

Shadows become less useful

Dark shadows have little visual effect on dark surfaces. Depth often needs to come from subtle borders, surface differences or soft highlights.

Images also affect the theme

A bright screenshot or white illustration can feel extremely harsh inside a dark interface. Consider image framing, surface treatment and whether previews should use their own container backgrounds.

Dark mode should feel intentional

The objective is not to make every light-mode value darker. It is to rebuild the same hierarchy using a different visual environment.

Final thought

Treat dark mode as a design system

The strongest dark interfaces feel as deliberate as the light version. When both themes share the same hierarchy while using appropriate colors, surfaces and contrast, the user gets a consistent experience instead of a simple color inversion.

Written by

fidow.dev

Writing about software, product engineering, design and building useful digital products.

F
Keep reading

Related articles.

Design
Design
9 min read

Design Beyond AI-Generated Layouts

AI can help us build faster, but visual identity, product thinking and meaningful design decisions still require human judgement.

F

fidow.dev

October 10, 2026