Fix dark mode favicon (#1183)

Prefer the adaptive SVG favicon so browsers can switch colors in dark mode. Exclude package sources from the app TypeScript project so production builds do not type-check standalone package code.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Fatih Kadir Akın
2026-05-11 13:48:59 +03:00
committed by GitHub
parent d50dcd8fb6
commit a045cdf117
3 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -5,7 +5,7 @@
</g> </g>
</g> </g>
<style> <style>
@media (prefers-color-scheme: light) { :root { filter: none; } } path { fill: #000000; }
@media (prefers-color-scheme: dark) { :root { filter: invert(100%); } } @media (prefers-color-scheme: dark) { path { fill: #ffffff; } }
</style> </style>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

+3 -3
View File
@@ -62,12 +62,12 @@ export const metadata: Metadata = {
publisher: "prompts.chat", publisher: "prompts.chat",
icons: { icons: {
icon: [ icon: [
{ url: "/favicon/favicon.ico", sizes: "48x48" },
{ url: "/favicon/favicon-96x96.png", sizes: "96x96", type: "image/png" },
{ url: "/favicon/favicon.svg", type: "image/svg+xml" }, { url: "/favicon/favicon.svg", type: "image/svg+xml" },
{ url: "/favicon/favicon-96x96.png", sizes: "96x96", type: "image/png" },
{ url: "/favicon/favicon.ico", sizes: "48x48" },
], ],
apple: "/favicon/apple-touch-icon.png", apple: "/favicon/apple-touch-icon.png",
shortcut: "/favicon/favicon.ico", shortcut: "/favicon/favicon.svg",
}, },
manifest: "/favicon/site.webmanifest", manifest: "/favicon/site.webmanifest",
other: { other: {
+1 -1
View File
@@ -30,5 +30,5 @@
".next/dev/types/**/*.ts", ".next/dev/types/**/*.ts",
"**/*.mts" "**/*.mts"
], ],
"exclude": ["node_modules"] "exclude": ["node_modules", "packages"]
} }