Dark mode is a color scheme that presents an interface with light text on a dark background.
Dark mode is a display option that presents an interface using light-colored text and graphics on a dark background, inverting the traditional pattern of dark text on a light page. It exists as an alternative to the default light theme, and modern operating systems, browsers, and applications typically let a person switch between the two or follow a system-wide preference. The goal is to give users control over the visual tone of the screens they spend hours looking at, adapting the interface to low-light environments and personal comfort rather than forcing a single fixed appearance.
Technically, dark mode is implemented by defining two coordinated sets of color values and swapping between them. On the web, developers commonly store colors as reusable variables, then use a CSS media feature called prefers-color-scheme to detect whether the visitor's device is set to light or dark, applying the matching palette automatically. A well-built dark theme is not simply the light theme with the colors flipped. Pure black backgrounds paired with pure white text create harsh contrast that can strain the eyes, so practitioners usually choose dark grays for surfaces and slightly muted off-white tones for text. Accent colors, shadows, and images often need separate treatment as well, because a shadow that reads clearly on white can vanish on a dark surface, and a bright brand color may need to be softened so it does not glare.
The concept has deep roots. Early computer monitors and command-line terminals displayed glowing text on black screens, partly because of the phosphor display technology of the era. As graphical interfaces matured, the light "paper" metaphor became dominant, mimicking ink on a printed page. Dark mode returned as a deliberate, user-selectable theme during the 2010s, when high-quality screens and design systems made it practical to ship and maintain two polished themes side by side. Major platforms added system-level dark settings, and the pattern quickly spread across apps and websites.
For a business, offering dark mode is both a usability and a brand signal. Users increasingly expect the option, and a product that respects the device preference feels considerate and current. On phones with OLED screens, dark backgrounds can reduce battery consumption because those displays draw less power when rendering true black pixels. A thoughtful dark theme can also reduce eye fatigue for people working at night or in dim rooms, which matters for tools people use for long stretches. Poorly executed dark modes, by contrast, can undermine readability and make a brand feel careless.
The most common mistakes are treating dark mode as an afterthought and testing it too little. Teams sometimes hardcode colors throughout a codebase, which makes a second theme painful to add later, so storing colors as named design decisions from the start pays off. Contrast ratios must be checked in both themes to meet accessibility standards, since a combination that passes in light mode can fail in dark mode. Dark mode connects closely to broader ideas of user experience, responsive design, and systematic color management, and it works best when treated as one coordinated variant of a single, well-organized design system rather than a bolted-on extra.
Offering dark mode meets user expectations, reduces glare in low light, and signals a modern, well maintained product.