The humble dark mode toggle has become a surprisingly impactful feature for news websites. A study by the Nielsen Norman Group found that 82% of mobile users switch to dark mode for evening reading, and news sites that offer the option see measurably longer session durations.
Beyond user preference, dark mode has accessibility benefits: it reduces eye strain in low-light conditions, saves battery on OLED screens, and can make text more readable for users with certain visual conditions.
Implementation is straightforward with CSS custom properties — the same stylesheet can support both modes by toggling a class on the body element, with the user's preference saved to localStorage for persistence across visits.