Skip to content

Commit fa44e34

Browse files
committed
Fix WPA theme color
1 parent 8cba027 commit fa44e34

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

web/pages/_document.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ export default function Document() {
1616
/>
1717

1818
{/* PWA primary color */}
19-
<meta name="theme-color" content="#0d6efd" />
19+
<Head>
20+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff"/>
21+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#0d1117"/>
22+
</Head>
23+
2024
{/*/!* Link to your manifest *!/*/}
21-
<link rel="manifest" href="/manifest.json" />
25+
<link rel="manifest" href="/manifest.json"/>
2226
{/*/!* App icons *!/*/}
23-
<link rel="apple-touch-icon" href="/favicon.ico" />
27+
<link rel="apple-touch-icon" href="/favicon.ico"/>
2428

2529
<Script src="/init-theme.js" strategy="beforeInteractive"/>
2630
{IS_DEPLOYED && <Script id="devtools-warning" strategy="afterInteractive" dangerouslySetInnerHTML={{

web/public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"start_url": ".",
1212
"display": "standalone",
1313
"background_color": "#ffffff",
14-
"theme_color": "#0d6efd",
14+
"theme_color": "#ffffff",
1515
"orientation": "portrait-primary"
1616
}

0 commit comments

Comments
 (0)