You stare at your screen. It’s 2 AM. The white background of a poorly optimized app feels like staring into the sun. You flip to Dark Mode, and suddenly, the interface feels calmer, more focused, easier on the eyes. But if you’ve ever tried to build for iOS or macOS, you know that simply inverting colors doesn’t work. Black text on black backgrounds? Gone. Images that look muddy against deep grays? Frustrating. That’s why Apple’s specific guidelines on color, contrast, and materials aren’t just suggestions-they’re the difference between an app that feels native and one that feels broken.
Let’s be real: designing for dark mode is harder than it looks. It’s not just about swapping #FFFFFF for #000000. It’s about understanding how light behaves, how our eyes perceive depth, and how Apple’s ecosystem expects your content to sit within its own visual hierarchy. If you ignore these rules, you risk creating interfaces that fail accessibility checks, confuse users, or look cheap. Here is how to get it right.
Here is the first trap most designers fall into: using pure black (#000000) as the background. On OLED screens, pure black saves battery life because those pixels are literally turned off. Sounds great, right? But Apple explicitly advises against using pure black for system backgrounds in most cases. Why? Because pure black creates harsh contrasts that can cause "haloing" around bright elements, especially for users with astigmatism. It also kills the sense of depth.
Instead, Apple recommends using elevated dark surfaces. Think of it like layers of smoke. The base layer isn’t pitch black; it’s a very dark gray, often around #000000 to #1C1C1E depending on the specific OS version and context (iOS vs. macOS). When you stack cards or sheets on top, they become slightly lighter. This elevation trick helps users understand what is interactive and what is background without relying solely on borders.
We all know we need high contrast for text. But in dark mode, "high contrast" has a different math behind it. White text on black is easy. But what about secondary text? Or disabled buttons? If you use standard gray text on a dark background, it often disappears. You have to lighten your grays significantly compared to light mode.
Apple provides specific opacity levels for different types of content. For example, primary labels might use 85% opacity white, while secondary labels drop to 60%. These aren’t arbitrary numbers. They are tuned to maintain legibility across various screen brightness levels. If you manually pick a gray hex code, you lose this nuance. Always use the system-provided label colors. They handle the contrast ratios automatically, ensuring you pass WCAG AA standards without doing complex calculations yourself.
Watch out for colored text too. Bright neon greens or blues that pop on white can vibrate uncomfortably against dark backgrounds. Desaturate your accent colors slightly in dark mode. A muted teal looks sophisticated and readable; a saturated cyan looks like a laser pointer accident.
Apple’s design language relies heavily on materials-translucent layers that blur the content behind them. In light mode, these materials are often frosted glass effects. In dark mode, they transform into smoky, translucent layers. This is where things get tricky. If you place a translucent sheet over a vibrant image, the result can be muddy. If you place it over a solid dark background, it might vanish entirely.
The key is understanding how these materials interact with the underlying content. Apple’s UI Blur Styles adjust their tint and intensity based on the current appearance mode. You don’t need to create separate assets for light and dark blur styles; the system handles it. However, you must test your layouts. Sometimes, adding a subtle border or shadow helps define the edge of a material layer when the background is uniformly dark.
Consider the navigation bar. In light mode, it might be opaque white. In dark mode, it becomes translucent dark gray. As you scroll content underneath, the blur effect kicks in, blending the moving text with the static bar. This creates a sense of physical space. If you disable translucency, you flatten the interface, making it feel less immersive and harder to parse visually.
This is the part developers hate. Photos don’t have a "dark mode." A sunset photo looks good on both white and black backgrounds. But a screenshot of a white website embedded in your app? It looks like a glaring rectangle in the middle of your dark UI. What do you do?
First, avoid embedding raw screenshots whenever possible. Use mockups or stylized representations. If you must show a light-themed interface, wrap it in a container with a neutral background or add a subtle drop shadow to lift it off the dark canvas. Never let a bright white element touch the dark background directly without some kind of separation.
For icons, use vector formats like SVG or PDFs so they scale cleanly. Apple’s SF Symbols are fantastic here because they come pre-designed for both light and dark modes. They adjust their weight and fill style automatically. Don’t try to force custom raster icons to adapt unless you have two versions ready to swap. Raster images with white backgrounds will always require manual tweaking.
You can’t just trust your simulator. Simulators often render colors differently than actual hardware. OLED screens on iPhones display true blacks, while LCD screens on older iPads or MacBooks show dark grays. Your app needs to look good on both.
Test in three conditions:
Also, check auto-switching. Does your app transition smoothly from light to dark? Or does it flicker? Smooth transitions matter. Users notice jarring changes. Use animation curves that match the system defaults for a seamless experience.
| Element | Light Mode Behavior | Dark Mode Adjustment |
|---|---|---|
| Background | Pure White (#FFFFFF) | Elevated Gray (#1C1C1E) |
| Primary Text | Near Black (#000000) | Near White (85% Opacity) |
| Shadows | Soft, diffuse shadows | Minimal or none; rely on elevation |
| Borders | Often unnecessary | Subtle dividers help separate layers |
One major mistake is ignoring the status bar. In dark mode, the status bar icons (time, battery, signal) turn white. If your app header is also white, you lose visibility. Ensure there is enough contrast between the header and the status bar area. Some apps solve this by extending the background color up into the safe area, but make sure the icons remain visible.
Another pitfall is hardcoding colors in your codebase. If you write `color = #333333`, you have to change it manually for dark mode. Instead, use semantic names like `systemBackground` or `secondaryLabel`. This way, when Apple updates its palette (which they do), your app adapts automatically. It saves hours of maintenance later.
Finally, don’t forget about haptics and sound. While not visual, the overall sensory experience changes in dark mode. Users expect a quieter, more subdued interaction. Pair your visual changes with appropriate feedback. A heavy thud might feel wrong in a sleek, dark interface. Light taps fit better.
Pure black (#000000) can cause eye strain due to high contrast, especially for users with astigmatism who may see halos around bright text. Additionally, it eliminates the ability to show elevation through lighter shades, making it difficult to distinguish layered elements like cards or modals from the background.
You should avoid placing raw white-background images directly on dark interfaces. Instead, wrap them in a container with a neutral padding or background color, apply a subtle drop shadow to lift them off the surface, or crop/edit the images to remove the white background before displaying them.
For system components like SF Symbols and standard controls, no-the system handles the switching. However, for custom illustrations, logos, or photographs that don't adapt automatically, you typically need to provide two versions (one for light, one for dark) or use techniques like alpha channels to allow the background to show through.
Test on actual hardware rather than just simulators, as OLED and LCD screens render dark colors differently. Also, enable 'Increase Contrast' and 'Reduce Transparency' in your device's Accessibility settings to ensure your UI remains usable when system effects are minimized.
Yes, often you should. Saturated brand colors can appear too intense or vibrate against dark backgrounds. Adjusting saturation and brightness slightly (often reducing saturation) ensures the color remains recognizable but comfortable to view in low-light environments.