Dark Mode
UI DesignWhat is Dark Mode
Dark mode is an appearance setting that shows light text and elements on a dark background. Users turn it on at the system level, and apps and websites are expected to follow their choice.
How Dark Mode works
- Semantic colors: Each color role gets a light and a dark value
- Dark grey surfaces: Material Design uses dark grey, not pure black
- Elevated layers: Surfaces that sit higher are lighter, so depth stays visible
- System setting: On the web, prefers-color-scheme detects the user's choice
How to design for Dark Mode
Build the palette with design tokens so each role switches value per theme. Do not just invert colors. Lower the saturation of bright colors, check contrast of at least 4.5:1 for text, and test images and icons on dark backgrounds.
Benefits and limits of Dark Mode
Many users prefer dark mode in low light. Research summarized by NN/g shows that people with normal vision usually read better in light mode, so support both and let users choose.
Frequently asked questions
Is dark mode better for your eyes?
Not for most people. NN/g reports that people with normal vision tend to read and perform better in light mode, while some people with cataracts and related conditions may do better in dark mode. That is why offering both matters.
Should dark mode use pure black?
Usually not. Material Design's baseline dark theme uses dark grey for backgrounds and surfaces, and Apple uses brighter "elevated" backgrounds for layers that sit above others.
Should an app have its own dark mode setting?
Apple advises against an app-specific appearance setting, because people expect apps to follow the system choice. On the web, the prefers-color-scheme media feature reads the user's setting.
Related terms
View all UI Design terms →Color Palette
A color palette is the set of colors a product uses. In UI design, a palette is more than a few swatches. Each color has a role , such as…
Design Tokens
Design tokens are named values that store design decisions , such as colors, spacing and type sizes. Design tools and code read the same…
Color Contrast
Color contrast is the difference in brightness between two colors, such as text and its background. It is measured as a contrast ratio…
Accessibility
Accessibility in UX design refers to creating digital products that can be used by everyone , including people with visual, motor…
Elevation
Elevation is the distance between two surfaces along the z-axis, the depth of the screen. Designers use it to show which elements sit…
Liquid Glass
Liquid Glass is Apple's translucent design material , introduced in June 2025. It looks like glass that reflects and refracts what is…
