Designing for Dark & Light Modes: Contrast Math, Elevation & Glassmorphism
Why dark mode is more than inverting hex codes—and how we use luminance stepping and subtle borders to create depth.
Simply inverting a light color palette produces muddy grays and eye-straining contrast. True enterprise dark mode relies on deep obsidian surfaces (#0B0F19 to #141A2A) paired with 1px translucent hairline borders rather than heavy drop shadows.
1. Luminance Stepping for Surface Hierarchy
In light mode, elevation is communicated through soft ambient shadows. In dark mode, elevation is communicated by progressively lighter surface tokens and subtle top-edge highlights.
2. Electric Indigo Accents with WCAG AA Contrast
Pairing an Electric Indigo primary token (#6E4EF2 in light mode, #7C5CFF in dark mode) with semantic emerald, amber, and rose status pills guarantees legibility across every screen.
Leave a comment
Your email address will not be published. Required fields are marked *