Handle Dark Backgrounds Carefully
Light text on dark (reversed type) is harder to read in long passages, so use off-white, not pure white, to reduce glare. Reserve reversed type for short sections, headers, and UI, not extended body text. In dark mode, increase font weight slightly and loosen line height.
Incorrect (pure white on pure black, extended body):
.dark-section {
background: #000;
color: #fff; /* harsh contrast, eye strain */
}
.dark-section .article {
/* Long body text in reversed type: hard to read */
}Correct (off-white on dark, limited reversed body text):
.dark-section {
background: #1a1a2e;
color: #e8e8ed; /* off-white, reduces glare */
}
.dark-section body {
font-weight: 450; /* slightly heavier for dark backgrounds */
line-height: 1.6; /* slightly looser */
}Test dark backgrounds across screen brightness levels and lighting conditions.