---
title: "The New York Times Games’ Path to Dark Mode"
description: "Shipping Dark Mode for New York Times Games turned into paying down years of design debt, because eight games each had their own hex colors, fonts and component styles."
url: "https://swe.quest/articles/the-new-york-times-games-path-to-dark-mode-4c848ca761eed7c4"
canonical: "https://open.nytimes.com/the-new-york-times-games-path-to-dark-mode-345dfe464e1a"
source: "NYT Open"
published: "2025-09-25"
difficulty: "easy"
kind: "Case study"
reading_minutes: 8
tags: ["design-systems","frontend","react","css","product-engineering"]
---

# The New York Times Games’ Path to Dark Mode

A post on [NYT Open](https://swe.quest/sources/nyt.md), published 2025-09-25, 8 min read, Case study. Original: [https://open.nytimes.com/the-new-york-times-games-path-to-dark-mode-345dfe464e1a](https://open.nytimes.com/the-new-york-times-games-path-to-dark-mode-345dfe464e1a)

## Summary

Shipping Dark Mode for New York Times Games turned into paying down years of design debt, because eight games each had their own hex colors, fonts and component styles. The team limited scope to the Games app and launched Dark Mode game by game. They consolidated hex values into primitive and semantic design tokens across three libraries (Games Home, Games Brand, Gameplay), and tuned colors such as Connections' beige tiles so play feels the same in both modes. Implementation uses CSS variables in a React/TypeScript design system with a Provider and hooks, enabling per-game, per-surface rollout. Dark Mode users go on to play and complete more puzzles.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [CSS](https://swe.quest/tags/css.md) (Web & mobile)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)

## Prerequisites

- CSS variables ([easy posts on CSS](https://swe.quest/tags/css.md?difficulty=easy))
- React context ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))

## Keywords

New York Times Games, Dark Mode, design tokens, Storybook, Playwright, CSS modules, Vite

## Related posts

- [How The New York Times Games Team Delivered Accessible, Cross-Platform Dark Mode](https://swe.quest/articles/how-the-new-york-times-games-team-delivered-accessible-cross-platform-dark-mode-9c38944ca6dbae2c.md): NYT Open · 2026-04-16 · Medium · 7 min read · Mobile, Design systems, Accessibility, Swift
  The New York Times Games app shipped dark mode across Android, iOS and hybrid webviews by moving from hard-coded colors to semantic design tokens (e.g. "Background Primary" became "$bg-page") through a legacy-to-new color mapping.
- [Illuminating dark mode](https://swe.quest/articles/illuminating-dark-mode-f998d746316f5fd8.md): Figma · 2022-07-21 · Medium · 15 min read · Design systems, CSS, Frontend, Refactoring & migrations, Accessibility
  Figma built dark mode by replacing roughly 5,100 build-time PostCSS color variables with runtime CSS custom properties based on a semantic token schema (Type | UI Element | Color role | Prominence | Interaction), so new themes only require reassigning token values.
- [Dark mode was never on our roadmap. Here’s how it got built.](https://swe.quest/articles/dark-mode-was-never-on-our-roadmap-here-s-how-it-got-built-65fcd1920934b974.md): Medium Engineering · 2026-10-22 · Medium · 17 min read · CSS, Frontend, Design systems, CDN & edge, AI for coding
  Medium shipped dark mode for its reader experience with essentially one engineer working between other projects, guided by three guardrails: keep it safe, keep it small, keep it concrete.
- [Theming the Zalando Design System](https://swe.quest/articles/theming-the-zalando-design-system-b14098d887a4b230.md): Zalando Engineering · 2024-05-13 · Medium · 20 min read · Design systems, Frontend, CSS, Mobile
  Zalando built theming into its design system by extracting repeated values into semantic design tokens (e.g. \`accent\` instead of \`orange\`) and adding component-level tokens that reference global ones, so themes can change a button's padding without redefining global scales.
- [Unlocking inclusive design: how Primer’s color system is making GitHub.com more inclusive](https://swe.quest/articles/unlocking-inclusive-design-how-primer-s-color-system-is-making-github-com-more-438d95888d234cb3.md): GitHub Engineering · 2023-05-11 · Medium · 6 min read · Accessibility, Design systems, CI/CD, Frontend
  GitHub's Primer design system fixed hundreds of color contrast violations across light and dark modes and all themes by changing its foundational color tokens (Primer Primitives) rather than individual components.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
