Album and playlist pages tinted their background from the cover art, but the text stayed the theme's gray and black. On Civilization VI the page turned brown and the artist, genre/year, track numbers, subtitles and durations nearly vanished. Light covers like Civilization VII also got a muddy brown page. The cause: on iOS we used primary as the background. In react-native-image-colors that's a text color picked to contrast with the art's actual background.
Pages now pick colors the way Apple Music does:
Background: the color the art bleeds into (iOS background, Android dominant). It's nudged out of the mid-luminance band where neither white nor black text can reach 7:1. In dark mode it's capped so white covers don't produce a blinding page.
Text: primary and secondary text start from the art's own colors and are adjusted in OKLab. Primary aims for 10:1 and is guaranteed at least 7:1. Secondary is at least 4.5:1 and always softer than primary.
Accents: the Play button, artist link, active star and subscribe button use the most colorful swatch that still reads at 3:1 without changing its look. Otherwise they fall back to a monochrome button in the primary text color.
Everything else: dividers, button surfaces, the header back tint, the scroll indicator and the status bar follow the palette. Covers that are missing or fail to load fall back to the normal theme.
Rendering cost: swatches are extracted once per cover from the 64px image and cached in memory and in the persistent cache, so revisits are instant. Extraction starts from the route id alongside the detail query. The screen waits for the palette (up to 400 ms) before leaving the skeleton, so the memoized rows from #28 render once with their final colors instead of flashing from theme colors.
Tested on the iPhone 18 Pro simulator in light and dark mode with the albums above, a cover-less album, and the 2,000-song playlist. pnpm --filter @otunes/mobile typecheck passes.
Album and playlist pages tinted their background from the cover art, but the text stayed the theme's gray and black. On Civilization VI the page turned brown and the artist, genre/year, track numbers, subtitles and durations nearly vanished. Light covers like Civilization VII also got a muddy brown page. The cause: on iOS we used `primary` as the background. In `react-native-image-colors` that's a text color picked to contrast with the art's actual `background`.
Pages now pick colors the way Apple Music does:
- **Background:** the color the art bleeds into (iOS `background`, Android `dominant`). It's nudged out of the mid-luminance band where neither white nor black text can reach 7:1. In dark mode it's capped so white covers don't produce a blinding page.
- **Text:** primary and secondary text start from the art's own colors and are adjusted in OKLab. Primary aims for 10:1 and is guaranteed at least 7:1. Secondary is at least 4.5:1 and always softer than primary.
- **Accents:** the Play button, artist link, active star and subscribe button use the most colorful swatch that still reads at 3:1 without changing its look. Otherwise they fall back to a monochrome button in the primary text color.
- **Everything else:** dividers, button surfaces, the header back tint, the scroll indicator and the status bar follow the palette. Covers that are missing or fail to load fall back to the normal theme.


**Rendering cost:** swatches are extracted once per cover from the 64px image and cached in memory and in the persistent cache, so revisits are instant. Extraction starts from the route id alongside the detail query. The screen waits for the palette (up to 400 ms) before leaving the skeleton, so the memoized rows from #28 render once with their final colors instead of flashing from theme colors.
Tested on the iPhone 18 Pro simulator in light and dark mode with the albums above, a cover-less album, and the 2,000-song playlist. `pnpm --filter @otunes/mobile typecheck` passes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Album and playlist pages tinted their background from the cover art, but the text stayed the theme's gray and black. On Civilization VI the page turned brown and the artist, genre/year, track numbers, subtitles and durations nearly vanished. Light covers like Civilization VII also got a muddy brown page. The cause: on iOS we used
primaryas the background. Inreact-native-image-colorsthat's a text color picked to contrast with the art's actualbackground.Pages now pick colors the way Apple Music does:
background, Androiddominant). It's nudged out of the mid-luminance band where neither white nor black text can reach 7:1. In dark mode it's capped so white covers don't produce a blinding page.Rendering cost: swatches are extracted once per cover from the 64px image and cached in memory and in the persistent cache, so revisits are instant. Extraction starts from the route id alongside the detail query. The screen waits for the palette (up to 400 ms) before leaving the skeleton, so the memoized rows from #28 render once with their final colors instead of flashing from theme colors.
Tested on the iPhone 18 Pro simulator in light and dark mode with the albums above, a cover-less album, and the 2,000-song playlist.
pnpm --filter @otunes/mobile typecheckpasses.13654cbeddto4f74b3c3e0