coderef

<meta name="theme-color">Limited availability

The name="theme-color" attribute for the &#x3C;meta> HTML element suggests a color that the browser can use to customize the display of the page or the browser user interface.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–14.1Not supported
15+Supportedsince Sep 20, 2021
Current: 27
MobileChrome Android
18–91Not supported
92+Supportedsince Jul 20, 2021
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–14.5Not supported
15+Supportedsince Sep 20, 2021
Current: 27

How to use

Not supported in Chrome, Edge, Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: theme-color.

Feature detection

JS · check before using
if ("name" in document.createElement("meta")) {
  // the name attribute/property of <meta> is supported
}