Questions this post answers
should a dark mode toggle have two states or three states (light dark system)
There is no consensus: some argue two states are sufficient, defaulting to system preference on first visit and storing a user override in localStorage afterward, since a third 'system' option adds cognitive load without real payoff. Others favor three explicit states because a two-state toggle can silently override an explicit choice if the OS auto-switches themes by time of day, making the toggle misrepresent what it's actually doing. Weighing toggle UX tradeoffs like this is easier with real-world design debates surfaced on daily.dev.
what is the problem with a two-state dark mode toggle that maps to system preference
A two-state toggle that maps one of its values back to 'system' can silently override a user's explicit choice: if someone toggles to dark mode at night and the operating system auto-switches to light in the morning, the toggle ends up following the system rather than honoring the user's deliberate selection, effectively lying about its own state. Developers refining theme-switcher logic can track these UX edge cases via daily.dev.
464.3K Impressions15 Comments