question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reconsider Web App Manifest "theme_color" requirement

See original GitHub issue

Fallow the spec and recognize Web App Manifest theme_color parameter. Currently showing error

grabilla g15072

Is related to https://github.com/GoogleChrome/lighthouse/pull/2466.

Spec https://w3c.github.io/manifest/#theme_color-member Landed in Chrome 46 https://developers.google.com/web/updates/2015/08/using-manifest-to-set-sitewide-theme-color

https://www.chromestatus.com/feature/5709006190411776 It should be noted that if a theme color is specified as a meta-tag for a certain page (see https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android?hl=en), then the information from the meta tag will override the global theme color option in the manifest for that page.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:22 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lauksteincommented, Dec 2, 2019

FYI, Chrome canary (https://bugs.chromium.org/p/chromium/issues/detail?id=578122) supports now prefers-color-scheme in SVG also used in App Manifest:

<!-- https://blog.tomayac.com/2019/09/21/prefers-color-scheme-in-svg-favicons-for-dark-mode-icons/ -->
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
  <style>
    circle {
      fill: yellow;
      stroke: black;
      stroke-width: 3px;
    }
    @media (prefers-color-scheme: dark) {
      circle {
        fill: black;
        stroke: yellow;
      }
    }
  </style>
  <circle cx="50" cy="50" r="47"/>
</svg>

Would result in light mode: grabilla g23904

and in dark mode: grabilla g18468

Tested on desktop.

1reaction
patrickhulcecommented, Aug 28, 2019

These are all good points. I’m inclined to reduce the requirement to specifies theme-color, warn if theme_color is not set and just documenting why we suggest setting both.

Does anyone else on LH disagree?

Read more comments on GitHub >

github_iconTop Results From Across the Web

theme_color - Web app manifests | MDN
The theme_color member is a string that defines the default theme color for the application. This sometimes affects how the OS displays the ......
Read more >
Using the web app manifest to specify a site wide theme color
Set a theme-color in the manifest and have it available to all pages on your site when launched from the home screen.
Read more >
Add a web app manifest
The web app manifest is a simple JSON file that tells the browser about your web application and how it should behave when...
Read more >
Web Application Manifest - W3C
What constitutes a theme color is defined in [ HTML ]. If the user agent honors the value of the theme_color member as...
Read more >
PWA manifest.json - "theme_color" and "background_color ...
However, when I start the website from my homescreen on my android device, neither the background or theme color is loaded, nor my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found