Skip to content

Manifest member in Manifest

theme_color and background_color manifest members

Published Updated

Limited availabilityNot supported in Firefox (Desktop), Firefox (Desktop), Safari (macOS), Safari (iOS)W3C draft

The theme_color manifest member sets the colour the operating system and browser use around an installed app: depending on the platform, the title bar, the status bar and the task-switcher card (MDN, theme_color). background_color is the colour shown while the app loads, before the page’s own stylesheet applies, and in some browsers and operating systems it is used for the splash screen (MDN, background_color); on platforms that use it, it is the member that keeps a white screen from showing between the icon tap and the first frame.

Chrome 46, Edge 79, Samsung Internet 5.0, Android WebView 46, and Firefox 79 on Android read both members; Safari reads theme_color from iOS 15 and Safari 17 on macOS but has no consumer for background_color (BCD manifests.webapp.theme_color and manifests.webapp.background_color). BCD records neither member for desktop Firefox.

Property Value
Type string holding a CSS <color> (a named colour, hex, rgb(), hsl() and so on) that is sRGB or that the browser can convert to sRGB without outside knowledge; the specification rules out colours that need an external colour profile. The specification lets the browser ignore the alpha component depending on context, so MDN recommends fully opaque colours.
Default absent. Both members are optional, and with neither set the browser and operating system use their own colours.
Example value "theme_color": "#1a1a2e", "background_color": "#1a1a2e".

A value the CSS parser rejects is dropped with property 'theme_color' ignored, 'bluish' is not a valid color. (the same parser function handles background_color), and the member then behaves as absent (Chromium manifest_parser.cc, ManifestParser::ParseColor).

theme_color is the app-wide default. Once loaded, a <meta name="theme-color"> element in the document overrides it for that page, and because the element accepts a media attribute the page can declare one colour per colour scheme (MDN, <meta name="theme-color">). The current W3C draft adds a color_scheme_dark member that gives the manifest a dark-scheme override for both colours; browser-compat-data 8.1.6 has no entry for it. background_color is only a stand-in for the loading phase, so MDN recommends setting the page’s own background to the same value, or a colour step appears at first paint.

The examples share one dark-navy brand colour, #1a1a2e, and a light variant, #f5f5fa.

One manifest colour, two page colours for light and dark mode

Section titled “One manifest colour, two page colours for light and dark mode”

The manifest carries the colour used before any page exists, so it holds the default scheme. The two <meta> elements take over once the page loads and switch with the user’s system setting.

{
"theme_color": "#1a1a2e",
"background_color": "#1a1a2e"
}
<meta name="theme-color" content="#f5f5fa" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#1a1a2e" media="(prefers-color-scheme: dark)">

Where the browser honours media on the meta, the matching element sets the colour once the page has loaded; before that, only the manifest value is available.

A splash screen that hands off without a colour step

Section titled “A splash screen that hands off without a colour step”

Chrome builds the splash screen from name, background_color and icons, choosing the icon that most closely matches the device resolution (web.dev, “Add a web app manifest”). Setting the document background to the same colour, before any stylesheet that might load late, keeps the handoff from splash to page invisible.

:root {
color-scheme: dark;
background: #1a1a2e;
}
@media (prefers-color-scheme: light) {
:root {
background: #f5f5fa;
}
}

In a browser that uses the single manifest value for the splash, a light-scheme user sees the navy splash and then the #f5f5fa page at first paint. That step is the trade-off for one manifest colour; the draft color_scheme_dark member is the specification’s answer to it.

Keeping the live theme colour and the page in sync

Section titled “Keeping the live theme colour and the page in sync”

The example reads back the page’s own active <meta> element, the colour the page asked for, and uses that value for in-page surfaces such as a sticky header. When no element matches, the code falls back to the same light and dark pair the metas declare.

function activeThemeColor() {
const dark = matchMedia('(prefers-color-scheme: dark)').matches;
const metas = [...document.querySelectorAll('meta[name="theme-color"]')];
const match = metas.find((m) => !m.media || matchMedia(m.media).matches === true);
return match?.content ?? (dark ? '#1a1a2e' : '#f5f5fa');
}
document.querySelector('header').style.background = activeThemeColor();
matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
document.querySelector('header').style.background = activeThemeColor();
});

The user can change the system scheme while the app is open. The listener re-reads the meta that now matches and repaints the header to follow.

Specifications

SpecificationStatus
Web App Manifest: theme_color / background_colorW3C draft
Web Application Manifest: theme_color memberW3C
Web Application Manifest: background_color memberW3C
  • Legend
  • Yes
  • Partial
  • Flag
  • No
  • Unknown
Browser / PlatformSupportVersionsConfidenceSourceNotes
Chrome (Desktop)#Yes46highsource1
Chrome (Android)#Yes46highsource23
Edge (Desktop)#Yes79highsource45
Firefox (Desktop)#No—highsource67
Firefox (Android)#Yes79highsource8
Safari (macOS)#Yes17highsource9
Safari (iOS)#Yes15highsource10
Samsung Internet#Yes5.0highsource1112
WebView (Android)#Yes46highsource1314
Chrome (Desktop)#Yes46highsource15
Chrome (Android)#Yes46highsource1617
Edge (Desktop)#Yes79highsource1819
Firefox (Desktop)#No—highsource2021
Firefox (Android)#Yes79highsource22
Safari (macOS)#No—highsource2324
Safari (iOS)#No—highsource252627
Samsung Internet#Yes5.0highsource2829
WebView (Android)#Yes46highsource3031
  1. Covers the `theme_color` entry.
  2. Covers the `theme_color` entry.
  3. Derived by browser-compat-data mirroring from Chrome.
  4. Covers the `theme_color` entry.
  5. Derived by browser-compat-data mirroring from Chrome.
  6. Covers the `theme_color` entry.
  7. No Firefox support is recorded in browser-compat-data.
  8. Covers the `theme_color` entry.
  9. Covers the `theme_color` entry.
  10. Covers the `theme_color` entry.
  11. Covers the `theme_color` entry.
  12. Derived by browser-compat-data mirroring from Chrome Android.
  13. Covers the `theme_color` entry.
  14. Derived by browser-compat-data mirroring from Chrome Android.
  15. Covers the `background_color` entry.
  16. Covers the `background_color` entry.
  17. Derived by browser-compat-data mirroring from Chrome.
  18. Covers the `background_color` entry.
  19. Derived by browser-compat-data mirroring from Chrome.
  20. Covers the `background_color` entry.
  21. No Firefox support is recorded in browser-compat-data.
  22. Covers the `background_color` entry.
  23. Covers the `background_color` entry.
  24. No Safari support is recorded in browser-compat-data.
  25. Covers the `background_color` entry.
  26. No Safari on iOS support is recorded in browser-compat-data.
  27. Derived by browser-compat-data mirroring from Safari.
  28. Covers the `background_color` entry.
  29. Derived by browser-compat-data mirroring from Chrome Android.
  30. Covers the `background_color` entry.
  31. Derived by browser-compat-data mirroring from Chrome Android.

Source data: /compatibility/manifest-theme-background-color.json · Global usage: 85 % (StatCounter 2026-09, CC BY-SA 4.0)

Source: spec · MDN · Last verified 2026-10-03 · Confidence: high (computed from sources)

Cite this table

Web App Manifest: theme_color / background_color compatibility data — OpenPWA · Verified 2026-10-03 · CC BY 4.0 · JSON

When reusing compatibility data, keep the attribution, identify your changes and check each row’s original source. This citation excludes market-share and reach figures, which use CC BY-SA 4.0.