Use the app in light or dark
A reader wants the app to follow the phone's light or dark appearance and stay readable in both.

As a reader, I want the app to follow my phone's light or dark appearance and stay readable in both, so that I can read at night and in daylight without changing anything in the app.

Situation

My phone switches to dark in the evening. I read documents, check my notifications and chat with an agent at any hour, and I never want to look for a theme setting.

What I do

    Use the app in the day with the phone in light appearance.

    Let the phone switch to dark, or switch it myself in Control Centre.

    Come back to the app and keep reading.

What I should see

    The app changes with the phone at once. There is no theme setting inside the app.

    A reading page is white with black text in light, and black with white text in dark.

    Grouped screens such as Me are light grey with white cards in light, and black with dark grey cards in dark.

    Links, symbols, plain buttons and the selected tab are Seed teal: a deeper teal in light and a lighter teal in dark, so they stay readable on either background.

    Text on a teal surface, such as my own chat bubble or a run badge, is white in both appearances.

    A failed badge is red in both appearances, with white text.

    Cards and comment bubbles the app paints are a soft grey that follows the appearance.

    Avatars without a picture are the same green disc with a white initial in both appearances.

    Layout, spacing and text sizes do not move when the appearance changes.

    Photographs, covers and images inside documents look the same in both. They are not dimmed or inverted.

    Navigation bars, the tab bar, sheets, alerts and the keyboard follow the system because the system draws them.

When something goes wrong

    A page fails to load in dark appearance: the failure line and "Retry" are as readable as in light, because the message uses the system's secondary text colour and the button the teal for dark. I tap "Retry" as usual.

Not included

    I cannot choose light or dark inside the app. It is always the system's choice.

    Images published with a white background, such as diagrams and logos, stay white in dark appearance. See Light and dark.

    The teal has no separate values for the Increase Contrast setting. Only system colours adapt to it. See Accessibility checks and gaps.

    The contrast figures are the ones stated in the sources. They were not measured again for these pages.

Trace

Story US-APP-03, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Visual language

Section parent: the values the app is drawn with

Light and dark

How the app follows the system, what changes and what stays

Color and tokens

Brand tokens with light and dark values and stated contrast

Platform colour roles in use

The seven platform colour roles in use and the avatar hue rule

Accessibility

Contrast ratios stated for the brand colour in both schemes

Leave it unsaid: the platform draws the chrome

Dark mode belongs to the platform

What changed from the React Native app and why

The custom dark theme this replaced

Cards and panels

Painted surfaces use a role that follows the scheme

Every card surface

Every painted surface with its background role

Avatar

The green disc that is the same in both schemes

Badge

Brand and danger fills under white text

DiscussBubble

A painted bubble on the secondary background

Chat messages and the streaming reply

My own bubble on the brand fill

image and symbols

Pictures shown as published; symbols take the tint

text

Text colours are roles, never literals

Implementation

Page

Part it plays

Tamber design tokens

app.tamber line by line: light-dark pairs, the fixed ink and the pair check

Shared components and visual design

Tokens, the no colour literals rule and the avatar colour

Contract views and built-in calls

Colour attributes take roles and tokens

The Exact framework

The lints that warn about a colour fixed in one scheme

Verify and visual checks

verify checks every tested screen in light and dark

Rules for agents working on the app

The rule: no colour literals in screens

Read: screens and components

Reading page colours

Agents: screens and components

Bubbles and badges on brand fills

Code

File

What

app.tamber L7-13

theme: AccentColor, brand, brand.fill, brand.subtle, danger.fill, ink.on-brand

app.tamber L3-6

the contrast intent for brand and brand.fill

app.contract L744-744

accent-color="brand" on the root

ui.contract L2-4

avatarHue and the white initial contrast note

ui.contract L15-21

the avatar disc colour and ink.on-brand initial

read.contract L349-351

a painted card: secondary background and separator roles

activity.contract L106-106

the unread dot in brand

DESIGN.md L12-18

light and dark following the system

Tests

No automated test covers this story yet.

Delivery

Delivered by #1470.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments