<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc" -->

---
title: Trying out a Two-state Dark Mode Toggle—zachleat.com
description: A designer experiments with a two-state dark mode toggle inspired by Lea Verou's proposal to simplify the typical three-option (System/Light/Dark) UI pattern...
canonical: https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Trying out a Two-state Dark Mode Toggle—zachleat.com | daily.dev
og:description: A designer experiments with a two-state dark mode toggle inspired by Lea Verou's proposal to simplify the typical three-option (System/Light/Dark) UI pattern...
og:url: https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc
og:image: https://api.daily.dev/og/posts/Djhvmr6JC.png
og:image:alt: Trying out a Two-state Dark Mode Toggle—zachleat.com
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Trying out a Two-state Dark Mode Toggle—zachleat.com

**[Zach Leatherman](https://daily.dev/sources/zachleat)** · 2 min read · 5 upvotes · 1 comments

## Summary

A designer experiments with a two-state dark mode toggle inspired by Lea Verou's proposal to simplify the typical three-option (System/Light/Dark) UI pattern into two options, where toggling always overrides system preference and shows an '(auto)' indicator when it matches. The post also references a counterargument from Bramus favoring the traditional tri-state approach, noting the edge case of users whose OS switches automatically between modes.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.zachleat.com/web/two-state-dark-mode-toggle>

## Questions this post answers

### How does a two-state dark mode toggle differ from the typical three-state System/Light/Dark toggle?

A two-state toggle removes the separate System option and instead lets users switch between light and dark, with the toggle labeling whichever state matches the current OS preference as "(auto)." Toggling back to the auto-matching state clears any saved override. This avoids the common issue where clicking the System option produces no visible change on the page, unlike toggling between light and dark.

_Weighing UI pattern tradeoffs like this is easier when daily.dev surfaces real design debates from working developers._

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> Does the toggle update when the OS changes themes on an already-open page?

## Similar posts on daily.dev

- [The best dark mode toggle is probably none • Lea Verou](https://daily.dev/posts/the-best-dark-mode-toggle-is-probably-none-lea-verou-b87kcu2hu) · Lea Verou · 108 upvotes · 36 comments
- [Two vs. Three-State Color Theme Toggles – Master.dev Blog](https://daily.dev/posts/two-vs-three-state-color-theme-toggles-master-dev-blog-561lejywm) · Frontend Masters · 8 upvotes · 1 comments
- [Dark mode toggles: two states are enough • Lea Verou](https://daily.dev/posts/dark-mode-toggles-two-states-are-enough-lea-verou-aojclwsb5) · Lea Verou · 47 upvotes · 18 comments
- [light mode toggle Web Component\)—zachleat.com](https://daily.dev/posts/light-mode-toggle-web-component-zachleat-com-nv3pyth9q) · Zach Leatherman · 4 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Trying out a Two-state Dark Mode Toggle—zachleat.com","url":"https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc"},"datePublished":"2026-09-11T14:36:22.569Z","dateModified":"2026-10-15T02:22:55.214Z","description":"A designer experiments with a two-state dark mode toggle inspired by Lea Verou's proposal to simplify the typical three-option (System/Light/Dark) UI pattern...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/40fa5a9df0d60d77af5df47346b48ba8?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/40fa5a9df0d60d77af5df47346b48ba8?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Zach Leatherman","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Zach Leatherman","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/7ce10e5a06b74735aa2b19fa200414bf","url":"https://daily.dev/sources/zachleat"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":5},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"css,accessibility","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Zach Leatherman","item":"https://daily.dev/sources/zachleat"},{"@type":"ListItem","position":3,"name":"Trying out a Two-state Dark Mode Toggle—zachleat.com"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc","comment":[{"@type":"Comment","text":"Does the toggle update when the OS changes themes on an already-open page?","datePublished":"2026-09-19T13:40:03.673Z","url":"https://daily.dev/posts/Djhvmr6JC#c-C5lAbeIE6","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/trying-out-a-two-state-dark-mode-toggle-zachleat-com-djhvmr6jc#faq","mainEntity":[{"@type":"Question","name":"How does a two-state dark mode toggle differ from the typical three-state System/Light/Dark toggle?","acceptedAnswer":{"@type":"Answer","text":"A two-state toggle removes the separate System option and instead lets users switch between light and dark, with the toggle labeling whichever state matches the current OS preference as \"(auto).\" Toggling back to the auto-matching state clears any saved override. This avoids the common issue where clicking the System option produces no visible change on the page, unlike toggling between light and dark. Weighing UI pattern tradeoffs like this is easier when daily.dev surfaces real design debates from working developers."}}]}
```

