-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Labels
Description
Currently, in a web manifest file, you can define a theme color.
https://www.w3.org/TR/appmanifest/#theme_color-member
For example:
{
"lang": "en",
"short_name": "Resilience",
"name": "Resilient Web Design by Jeremy Keith",
"description": "A web book in seven chapters on the past, present, and future of web design. By Jeremy Keith.",
"background_color": "#5f7995",
"theme_color": "#5f7995"
}
There's not currently any way to express that a certain theme color should be used for light mode, while another is used for dark mode.
In HTML, there's currently a proposal to add support for color schemes by adding a media attribute to the meta tag:
whatwg/html#6495
<meta name="theme-color" media="(prefers-color-scheme: light)" content="red">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="darkred">
It would be great to be able to do a similar thing in the web manifest file.
adactio, pankajpatel, lukem512, GlenKPeterson, rianmurnen and 140 moreimilen, dv336699, secondl1ght, mrDreaml, carlos-duran and 5 moremgiuca, conde2, carburo, Offroaders123, Kylof61034 and 18 morehober, malchata, mirisuzanne, conde2, Offroaders123 and 17 moremkosir, nfacciolo, KienTPhan and MrAntix