Course contentsShow
← Web Development
Lesson 2301 of 2,98242. Progressive Web AppsFree lesson

Theme and Background Colors

Customizing the browser UI color and splash screen appearance during app launch.

Theme and Background Colors

What you'll learn: How to customize the browser UI color and splash screen appearance to match your PWA's branding when it launches.

When someone installs your Progressive Web App, you want the entire experience to feel native and polished. The theme_color and background_color properties in your web app manifest let you control what users see before and during app launch—think of them as your app's "outfit" for the operating system.

Theme Color: Styling the Browser UI

The theme_color property changes the color of the browser's address bar, status bar, and other UI elements when your app is running. This creates a seamless branded experience. On Android, for example, this colors the toolbar at the top of the screen.

{
  "name": "My App",
  "theme_color": "#4285f4"
}

Analogy: Think of theme_color as painting the window frame of your app—it sets the tone before users even see your content.

Background Color: The Splash Screen

The background_color property defines what color appears on the splash screen while your app loads. Combined with your icon, this creates the first impression users see during launch. It should typically match your app's main background color to avoid a jarring flash when your content appears.

{
  "name": "My App",
  "background_color": "#ffffff",
  "theme_color": "#4285f4",
  "icons": [...]
}

Both properties accept standard CSS color values (hex, RGB, or named colors). Choose colors that complement your brand and provide good contrast with your icon.

Key Takeaway: Use theme_color to brand the browser UI and background_color to create a smooth splash screen experience that matches your app's design—together they make your PWA feel professional and native.