Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ export default defineConfig({
// Light/default favicon (Starlight base-prefixes this one). Chrome ignores
// prefers-color-scheme *inside* an SVG favicon, so the dark-tab white
// variant is supplied as a separate <link media> in `head` below.
favicon: '/logo/logo-symbol.svg',
favicon: '/logo/favicon.svg',
head: [
{
tag: 'link',
attrs: {
rel: 'icon',
type: 'image/svg+xml',
href: `${basePrefix}/logo/logo-symbol-white.svg`,
href: `${basePrefix}/logo/favicon-white.svg`,
media: '(prefers-color-scheme: dark)',
},
},
Expand Down
2 changes: 1 addition & 1 deletion website/public/logo
9 changes: 8 additions & 1 deletion website/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@ const shareOnX = `https://twitter.com/intent/tweet?text=${encodeURIComponent(sha
<title>Dunky: a state machine built for performance</title>
<link
rel="icon"
href={`${base}logo/logo-symbol.svg`}
href={`${base}logo/favicon.svg`}
type="image/svg+xml"
/>
<!-- Chrome ignores prefers-color-scheme inside an SVG favicon: dark tabs get the white one -->
<link
rel="icon"
href={`${base}logo/favicon-white.svg`}
type="image/svg+xml"
media="(prefers-color-scheme: dark)"
/>
<meta
name="description"
content="A state machine built for performance, inspired by XState and Zag. Define a behavior once, render it anywhere."
Expand Down
Loading