Toggle light / dark mode

· Thiago Perrotta · Dec. 21, 2025, 9:35 p.m.
Summary
This blog post discusses the implementation of a manual toggle for light and dark mode themes on a website, which persists the user's choice using localStorage. It contrasts this with a previous automatic setting based on system/browser preferences.