Answer
Can a PWA follow the system dark mode setting?
Yes. The CSS media feature prefers-color-scheme lets a PWA detect whether the OS is set to light or dark mode and apply matching styles automatically, with no JavaScript required. Pairing this with multiple <meta name="theme-color" media="(prefers-color-scheme: dark)"> tags also lets the browser toolbar and installed app title bar switch colour to match.
CSS usage
@media (prefers-color-scheme: dark) { ... } lets you define dark-mode-specific styles that apply automatically as the OS setting changes.
Matching the toolbar colour
Two theme-color meta tags, each scoped with a media query for light and dark, let Chrome and Safari switch the installed app’s title-bar colour along with the OS theme.
Manifest limitation
The manifest itself only supports a single theme_color and background_color; per-scheme values require the page-level meta tag approach instead.