Skip to content

Commit bb6c45b

Browse files
authored
Merge pull request #833 from jletey/master
feat(docs): dynamic favicon
2 parents 5396b27 + 346f6af commit bb6c45b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

packages/docs/src/components/head.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,24 @@ export default props => {
2020
<title>{title}</title>
2121
<meta name="description" content={pkg.description} />
2222
<link rel="icon" type="image/png" href="/icon.png" />
23+
<link
24+
rel="icon"
25+
media="(prefers-color-scheme:dark)"
26+
href="/icon-dark.png"
27+
type="image/png"
28+
/>
2329
<link rel="apple-touch-icon" type="image/png" href="/icon.png" />
2430
<meta name="twitter:card" content="summary" />
2531
<meta name="twitter:site" content="@jxnblk" />
2632
<meta name="twitter:image" content="https://theme-ui.com/card.png" />
2733
<meta name="twitter:title" content={title} />
2834
<meta name="twitter:description" content={pkg.description} />
2935
<meta name="theme-color" content={theme.colors.background} />
36+
<script
37+
src="https://unpkg.com/[email protected]/dist/index.js"
38+
crossOrigin="anonymous"
39+
type="application/javascript"
40+
/>
3041
</Helmet>
3142
)
3243
}

packages/docs/static/icon-dark.png

553 Bytes
Loading

0 commit comments

Comments
 (0)