Color
4/5
Contextual Dark Mode
Dark mode that is designed, not inverted.
Overview
Contextual dark mode goes beyond inverting colors. It treats dark and light as two distinct design contexts with different color temperatures, texture weights, shadow approaches, and even spacing adjustments.
In a designed dark mode, colors are not simply inverted — they are reconsidered. Warm grays replace pure blacks. Accent colors are desaturated slightly to avoid eye strain. Shadows become glows. Textures shift from grain-on-light to grain-on-dark.
The goal is two equally crafted experiences, not a "main" theme and a "filter" theme.
Why It Wins
- Dark mode is expected in 2026 — not having it is a gap
- A designed dark mode demonstrates attention to detail
- Different contexts (reading at night vs. presenting) benefit from different modes
- Shows that the design system is robust, not fragile
Key Principles
- 01Never use pure #000000 black — use #111, #1A1714, or similar
- 02Desaturate accent colors slightly for dark backgrounds (reduce by 10-20%)
- 03Replace shadows with subtle light borders or glows
- 04Textures need different opacity and blend modes in dark mode
- 05Test with real content in both modes — not just components
Anti-Patterns
- Pure white text on pure black background (too harsh)
- Simply inverting all colors (looks broken, not designed)
- Forgetting to adjust images and illustrations for dark mode
- Making dark mode the default without user preference detection
Libraries
- CSS prefers-color-scheme
System preference detection
Performance
low cost
Conversion
neutral
Dark mode itself does not drive conversion, but the absence of it can cause bounce for users who expect it.
Audience
technicalcreativeconsumerstartup
Accessibility
Both modes must pass WCAG AA contrast ratios. Test with OS-level dark mode and in-app toggle.
Pairs Well With
colordark-modethemecontextaccessibility