---
title: "How The New York Times Games Team Delivered Accessible, Cross-Platform Dark Mode"
description: "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."
url: "https://swe.quest/articles/how-the-new-york-times-games-team-delivered-accessible-cross-platform-dark-mode-9c38944ca6dbae2c"
canonical: "https://open.nytimes.com/implementing-dark-mode-in-the-games-app-be7241ddb7ba"
source: "NYT Open"
published: "2026-04-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 7
tags: ["mobile","design-systems","accessibility","swift"]
---

# How The New York Times Games Team Delivered Accessible, Cross-Platform Dark Mode

A post on [NYT Open](https://swe.quest/sources/nyt.md), published 2026-04-16, 7 min read, Case study. Original: [https://open.nytimes.com/implementing-dark-mode-in-the-games-app-be7241ddb7ba](https://open.nytimes.com/implementing-dark-mode-in-the-games-app-be7241ddb7ba)

## Summary

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. Android handled XML and Jetpack Compose screens separately. On iOS, UIKit screens needed overrideUserInterfaceStyle and traitCollectionDidChange observers, while SwiftUI screens used @Environment(\\.colorScheme) with asset catalogs. Shared NYT packages such as login and avatar selection had to be updated in coordination with the app. Illustrations were reworked by hand rather than color-inverted, and a standalone badge-detail webview takes a "dark" query parameter so it follows the app's global setting.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Swift](https://swe.quest/tags/swift.md) (Languages)

## Prerequisites

- iOS UIKit and SwiftUI basics
- Android Jetpack Compose ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))
- design tokens

## Keywords

Jetpack Compose, SwiftUI, UIKit, NYT Games, dark mode, webviews

## Related posts

- [Introducing Adaptive Dark Mode](https://swe.quest/articles/introducing-adaptive-dark-mode-b5085c9f9c7b77a6.md): WebKit · 2026-11-03 · Medium · 5 min read · Browsers, CSS, Accessibility, Privacy
  Safari 27.3 beta adds Adaptive Dark Mode, which automatically darkens light websites that don't declare dark mode support via color-scheme.
- [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.
- [Challenges of mixed SwiftUI and UIKit codebases in iOS Apps](https://swe.quest/articles/challenges-of-mixed-swiftui-and-uikit-codebases-in-ios-apps-2b630ad5ea3f4d4c.md): Medium Engineering · 2024-07-01 · Medium · 4 min read · Mobile, Swift, Refactoring & migrations
  Mixing SwiftUI into Medium's 2013-era UIKit iOS app brings recurring friction: sizing SwiftUI views hosted in UIHostingController as table/collection cells, mismatched scroll APIs (offset sign differs), and duplicated components like PostPreview implemented in both frameworks.
- [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.
- [Lessons From Building iOS Widgets](https://swe.quest/articles/lessons-from-building-ios-widgets-87bd1407ab4fa628.md): Shopify Engineering · 2022-09-22 · Medium · 23 min read · Mobile, Swift, Caching, Product engineering
  Shopify rebuilt its iOS analytics widgets natively in SwiftUI rather than React Native, because app extensions have tight memory limits, WidgetKit serializes SwiftUI view hierarchies, and React Native had no official widget support.

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)
