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 |
|---|---|
Section parent: the values the app is drawn with | |
How the app follows the system, what changes and what stays | |
Brand tokens with light and dark values and stated contrast | |
The seven platform colour roles in use and the avatar hue rule | |
Contrast ratios stated for the brand colour in both schemes | |
Dark mode belongs to the platform | |
The custom dark theme this replaced | |
Painted surfaces use a role that follows the scheme | |
Every painted surface with its background role | |
The green disc that is the same in both schemes | |
Brand and danger fills under white text | |
A painted bubble on the secondary background | |
My own bubble on the brand fill | |
Pictures shown as published; symbols take the tint | |
Text colours are roles, never literals |
Implementation
Page | Part it plays |
|---|---|
app.tamber line by line: light-dark pairs, the fixed ink and the pair check | |
Tokens, the no colour literals rule and the avatar colour | |
Colour attributes take roles and tokens | |
The lints that warn about a colour fixed in one scheme | |
verify checks every tested screen in light and dark | |
The rule: no colour literals in screens | |
Reading page colours | |
Bubbles and badges on brand fills |
Code
File | What |
|---|---|
theme: AccentColor, brand, brand.fill, brand.subtle, danger.fill, ink.on-brand | |
the contrast intent for brand and brand.fill | |
accent-color="brand" on the root | |
avatarHue and the white initial contrast note | |
the avatar disc colour and ink.on-brand initial | |
a painted card: secondary background and separator roles | |
the unread dot in brand | |
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