File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,16 @@ export const PAGE_METADATA = {
79
79
* @return {import('next').Viewport }
80
80
*/
81
81
export const PAGE_VIEWPORT = {
82
- themeColor : siteConfig . accentColor ,
82
+ themeColor : [
83
+ {
84
+ color : siteConfig . lightAccentColor ,
85
+ media : '(prefers-color-scheme: light)' ,
86
+ } ,
87
+ {
88
+ color : siteConfig . darkAccentColor ,
89
+ media : '(prefers-color-scheme: dark)' ,
90
+ } ,
91
+ ] ,
83
92
width : 'device-width' ,
84
93
initialScale : 1 ,
85
94
} ;
Original file line number Diff line number Diff line change 2
2
"title" : " Node.js" ,
3
3
"description" : " Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine." ,
4
4
"favicon" : " /static/images/favicons/favicon.png" ,
5
- "accentColor" : " #333" ,
5
+ "lightAccentColor" : " #FFFFFF" ,
6
+ "darkAccentColor" : " #0D121C" ,
6
7
"twitter" : {
7
8
"username" : " @nodejs" ,
8
9
"card" : " summary" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ export interface SiteConfig {
29
29
description : string ;
30
30
featuredImage : string ;
31
31
favicon : string ;
32
- accentColor : string ;
32
+ lightAccentColor : string ;
33
+ darkAccentColor : string ;
33
34
og : OGConfig ;
34
35
twitter : TwitterConfig ;
35
36
rssFeeds : Array < RSSFeed > ;
You can’t perform that action at this time.
0 commit comments