
For years, UI designers treated dark mode as a simple "color swap." You take your background, flip it to #000000, take your text, flip it to #FFFFFF, and call it a day.
However, if you’ve ever switched a website to dark mode and felt like the text was suddenly vibrating or harder to read, you’ve experienced the "halation" effect. Typography behaves fundamentally differently when light text is placed on a dark background. Without a proper dark mode font audit, your clean, elegant brand typeface can quickly become a muddy, illegible mess in the shadows.
The primary challenge of dark mode typography is a phenomenon called halation. In print and digital displays, light-colored objects on dark backgrounds appear to spread or "glow" into the surrounding darkness.
When you use white text on a black background, the light from the pixels bleeds into the dark space. This makes letterforms appear thicker and bolder than they actually are. A "Regular" weight font can suddenly look like a "Medium" or "Semi-Bold." If your typeface has tight counters (the holes inside letters like 'e', 'a', or 'o'), they may appear to close up, significantly reducing legibility.
To ensure your typography remains accessible and aesthetically pleasing in dark mode, you need to audit three specific areas: Weight, Tracking, and Contrast.
Because of halation, you should generally use a slightly lighter font weight in dark mode than you do in light mode. If your body text is 400 weight in light mode, consider dropping it to 350 or 300 for the dark theme.
This is where Variable Fonts become a superpower. Instead of loading an entirely different font file, you can use the wght axis to make granular adjustments.
/* Light Mode Default */
body {
font-family: 'Inter Variable', sans-serif;
font-weight: 400;
color: #1a1a1a;
background-color: #ffffff;
}
/* Dark Mode Audit Fix */
@media (prefers-color-scheme: dark) {
body {
font-weight: 350; /* Slightly lighter to compensate for bleed */
color: #eeeeee;
background-color: #121212;
}
}
Tight kerning is the enemy of dark mode. When light bleeds, characters that are close together begin to touch, creating a "blob" effect.
During your audit, look at your headings and small UI text. Increasing the letter-spacing by just 1% or 2% can provide the "air" needed to keep characters distinct.
One of the most common mistakes in dark mode design is using pure white (#FFFFFF) on pure black (#000000). This creates extreme contrast that causes significant eye strain and heightens the halation effect.
Instead, aim for an "off-white" or a very light gray. This softens the "glow" of the text and makes long-form reading much more comfortable.
Not all typefaces are created equal when the lights go out. When auditing a new font for a dark-themed project, look for these characteristics:
To perform your own audit, create a "Stress Test" page. Place your typeface in various weights and sizes against your chosen dark background.
By treating typography as a dynamic element that reacts to its environment, you can create dark mode interfaces that aren't just "cool," but are genuinely accessible and a joy to read.
Photo by Egor Komarov on Pexels