<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum" -->

---
title: thoughtbot.com, dark mode, and other user preferences
description: A former thoughtbot developer explains why the company implemented dark mode on thoughtbot.com and its blog, focusing on the reasoning rather than...
canonical: https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: thoughtbot.com, dark mode, and other user preferences | daily.dev
og:description: A former thoughtbot developer explains why the company implemented dark mode on thoughtbot.com and its blog, focusing on the reasoning rather than...
og:url: https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum
og:image: https://api.daily.dev/og/posts/pENuemYUm.png
og:image:alt: thoughtbot.com, dark mode, and other user preferences
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.

# thoughtbot.com, dark mode, and other user preferences

**[Eric Bailey](https://daily.dev/sources/ericwbailey)** · 4 min read · 0 upvotes · 0 comments

## Summary

A former thoughtbot developer explains why the company implemented dark mode on thoughtbot.com and its blog, focusing on the reasoning rather than implementation. The piece covers CSS media queries for user preferences (prefers-reduced-motion, prefers-reduced-data, prefers-contrast, prefers-color-scheme, forced-colors), the accessibility and usability benefits of respecting these settings, and the case for opt-in defaults (e.g., pausing autoplaying media) instead of opt-out. It closes by describing thoughtbot.com's deliberately restrained design choices, such as avoiding autoplay videos, parallax effects, and low-contrast text.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://ericwbailey.website/published/thoughtbot-com-dark-mode-and-other-user-preferences>

## Questions this post answers

### What CSS media query lets me detect if a user has enabled dark mode?

The prefers-color-scheme media query detects a user's dark mode setting at the operating system level, provided the browser supports it. It belongs to a broader family of user-preference media queries that also includes prefers-reduced-motion, prefers-reduced-data, prefers-reduced-transparency, prefers-contrast, and forced-colors, all defined in the CSS Media Queries Level 5 specification.

_Developers tracking new CSS media features can follow prefers-color-scheme adoption details on daily.dev._

### Should autoplaying video and animations be on by default or opt-in on a website?

Autoplaying media should start paused by default, using an opt-in approach rather than opt-out. Wrapping autoplay logic in a check like @media (prefers-reduced-motion: no-preference) lets the user decide what to interact with, which helps prevent triggering seizures, nausea, or migraines while still allowing video for users without that preference set.

_Teams weighing animation and autoplay defaults can compare accessibility approaches on daily.dev._

## Similar posts on daily.dev

- [Embracing Dark Mode: A User's Perspective on Accessibility](https://daily.dev/posts/embracing-dark-mode-a-user-s-perspective-on-accessibility-mezz2cj0d) · Frontend Masters · 9 upvotes · 1 comments
- [I Thought Dark Mode Was Just a Toggle. It Turned Into a Full-System Refactor](https://daily.dev/posts/i-thought-dark-mode-was-just-a-toggle-it-turned-into-a-full-system-refactor-1beoqfpxg) · Code Like A Girl · 127 upvotes · 9 comments
- [Six levels of dark mode](https://daily.dev/posts/six-levels-of-dark-mode-e6um6rawa) · Hacker News · 1 upvotes · 1 comments
- [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

---

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

[View this post on daily.dev](https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum)

```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":"thoughtbot.com, dark mode, and other user preferences","url":"https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum"},"datePublished":"2026-09-20T07:44:37.132Z","dateModified":"2026-09-20T07:50:07.588Z","description":"A former thoughtbot developer explains why the company implemented dark mode on thoughtbot.com and its blog, focusing on the reasoning rather than...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cb10f178805900873b3f95b4a150fe76?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Eric Bailey","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":"Eric Bailey","logo":"https://media.daily.dev/image/upload/s--r1vwe6z1--/f_auto,q_auto/v1789890198/logos/ericwbailey?_a=BAMAMicg0","url":"https://daily.dev/sources/ericwbailey"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,ui-design,accessibility","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Eric Bailey","item":"https://daily.dev/sources/ericwbailey"},{"@type":"ListItem","position":3,"name":"thoughtbot.com, dark mode, and other user preferences"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/thoughtbot-com-dark-mode-and-other-user-preferences-penuemyum#faq","mainEntity":[{"@type":"Question","name":"What CSS media query lets me detect if a user has enabled dark mode?","acceptedAnswer":{"@type":"Answer","text":"The prefers-color-scheme media query detects a user's dark mode setting at the operating system level, provided the browser supports it. It belongs to a broader family of user-preference media queries that also includes prefers-reduced-motion, prefers-reduced-data, prefers-reduced-transparency, prefers-contrast, and forced-colors, all defined in the CSS Media Queries Level 5 specification. Developers tracking new CSS media features can follow prefers-color-scheme adoption details on daily.dev."}},{"@type":"Question","name":"Should autoplaying video and animations be on by default or opt-in on a website?","acceptedAnswer":{"@type":"Answer","text":"Autoplaying media should start paused by default, using an opt-in approach rather than opt-out. Wrapping autoplay logic in a check like @media (prefers-reduced-motion: no-preference) lets the user decide what to interact with, which helps prevent triggering seizures, nausea, or migraines while still allowing video for users without that preference set. Teams weighing animation and autoplay defaults can compare accessibility approaches on daily.dev."}}]}
```

