The Rise of Dark Mode
Dark mode has transformed from a developer preference to a mainstream user expectation. Apple introduced system-wide dark mode in macOS Mojave (2018) and iOS 13 (2019). Google followed with Android 10. Today, over 82% of smartphone users report preferring dark mode for at least some apps.
For web designers, this shift creates both an opportunity and a responsibility: dark mode done well is a powerful brand statement. Dark mode done poorly is harder to read than light mode and actively damages user experience.
Why Users Love Dark Mode
Reduced eye strain in low light. The primary reason most users switch to dark mode is comfort. In dimly lit environments, a bright white screen creates uncomfortable contrast. Dark mode brings the screen's luminance down to match ambient lighting conditions.
Battery life on OLED screens. On OLED and AMOLED displays — which power most flagship smartphones — dark pixels are literally turned off. A predominantly black screen can use up to 60% less battery than the same content on a white background.
Aesthetic appeal. Dark interfaces have a cinematic, premium quality that many users simply prefer. They make colours pop more dramatically against a dark background and create a sense of focus.
Core Principles of Dark Mode Design
1. Not Just Inverting Colours
The most common dark mode mistake: taking a light design and inverting all the colours. This approach produces a result that looks wrong and feels jarring. True dark mode design requires reconsidering every design decision from scratch.
Instead of pure black (#000000), use dark greys — #0d0d0d, #121212, #1a1a2e. Pure black creates harsh contrast that is actually more tiring to read than a well-chosen dark grey.
2. Contrast Is Everything
Accessibility guidelines (WCAG 2.1) require a minimum contrast ratio of 4.5:1 for body text. In dark mode, this means your text must be light enough against the dark background — but not so bright that it's harsh.
Recommended approach:
- Background:
#0d0d1aor#121212 - Body text:
#e2e8f0or#cbd5e1(not pure white) - Muted text:
#64748b - Accent colour: adjusted for dark context (often lighter or more saturated)
3. Surface Elevation with Tone
In light mode, shadows indicate elevation. In dark mode, shadows lose their effectiveness. Instead, use lighter backgrounds for elevated surfaces — a card on a dark background should be slightly lighter than the background, not darker.
Material Design's dark mode guidelines formalize this: each elevation level adds a small percentage of white overlay, creating a subtle but clear visual hierarchy.
4. Imagery and Icons
Photographs often need adjustment for dark mode — they can look washed out or overly bright. Consider adding a subtle dark overlay on hero images. Icons should switch from dark to light variants, not just invert.
Implementing Dark Mode: The Modern Approach
The cleanest implementation uses CSS custom properties and the prefers-color-scheme media query:
:root {
--bg: #ffffff;
--text: #1a1a1a;
--surface: #f8fafc;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #0d0d1a;
--text: #e2e8f0;
--surface: #161625;
}
}
Every colour in your design references a variable — when the media query activates, everything updates automatically.
When Dark Mode Isn't Right
Not every website needs dark mode. Children's education platforms, healthcare information sites, and businesses targeting older demographics often see better engagement with light interfaces. Dark mode is a design choice, not a universal improvement.
Conclusion
Dark mode design is a craft. When done right — thoughtful contrast ratios, carefully chosen surface colours, adapted imagery and icons — it creates interfaces that feel premium, comfortable, and considered. For web designers in Calicut and beyond, mastering dark mode is no longer optional. It's part of the modern web designer's essential toolkit.
