Skip to content

Commit

Permalink
✨ Support Safari 15 new tab bar design
Browse files Browse the repository at this point in the history
  • Loading branch information
craigary committed Jun 27, 2021
1 parent d01edc3 commit c658ce7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ class MyDocument extends Document {
)}
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml"></link>
{BLOG.appearance === 'auto'
? (
<>
<meta name="theme-color" content={BLOG.lightBackground} media="(prefers-color-scheme: light)"/>
<meta name="theme-color" content={BLOG.darkBackground} media="(prefers-color-scheme: dark)"/>
</>
)
: (
<meta name="theme-color" content={BLOG.appearance === 'dark' ? BLOG.darkBackground : BLOG.lightBackground} />
)
}
</Head>
<body className="bg-day dark:bg-night">
<Main />
Expand Down

0 comments on commit c658ce7

Please sign in to comment.