Metadata: Add support for theme-color media queries #45854
Replies: 4 comments 3 replies
-
Hopefully this gets worked on soon, can't believe you guys shipped this on canary without this. Should be always the default to include support for ThemeColor imo. |
Beta Was this translation helpful? Give feedback.
-
Lighthouse warn me about the meta theme-color My metadata config |
Beta Was this translation helpful? Give feedback.
-
the actual code for now as nextjs 14 docs says:
transform into:
|
Beta Was this translation helpful? Give feedback.
-
I found this https://nextjs.org/docs/app/api-reference/functions/generate-viewport |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Some browsers support the ability to change the
theme-color
based on a media query. For example, if the device prefers dark mode, the browser can display a differenttheme-color
than if the device prefers light mode.https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name/theme-color
Describe the solution you'd like
The
themeColor
type on theMetadata
type could be something likeDescribe alternatives you've considered
It is possible to create custom metadata tags that handle this, but it would be really nice to have the new metadata features be comprehensive.
Beta Was this translation helpful? Give feedback.
All reactions