Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: serve one adaptive SVG favicon instead of media-switched PNGs (#1939)
Brad Barbinece21c7ed188
diff --git a/apps/academy/public/carbon-mark.svg b/apps/academy/public/carbon-mark.svgnew file mode 100644index 0000000000..b88678c749--- /dev/null+++ b/apps/academy/public/carbon-mark.svg@@ -0,0 +1,4 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>path{fill:#101A24}@media (prefers-color-scheme:dark){path{fill:#E6E6E6}}</style>+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"/>+</svg>diff --git a/apps/erp/public/carbon-mark.svg b/apps/erp/public/carbon-mark.svgnew file mode 100644index 0000000000..b88678c749--- /dev/null+++ b/apps/erp/public/carbon-mark.svg@@ -0,0 +1,4 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>path{fill:#101A24}@media (prefers-color-scheme:dark){path{fill:#E6E6E6}}</style>+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"/>+</svg>diff --git a/apps/mes/public/carbon-mark.svg b/apps/mes/public/carbon-mark.svgnew file mode 100644index 0000000000..b88678c749--- /dev/null+++ b/apps/mes/public/carbon-mark.svg@@ -0,0 +1,4 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>path{fill:#101A24}@media (prefers-color-scheme:dark){path{fill:#E6E6E6}}</style>+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"/>+</svg>diff --git a/apps/starter/public/carbon-mark.svg b/apps/starter/public/carbon-mark.svgnew file mode 100644index 0000000000..b88678c749--- /dev/null+++ b/apps/starter/public/carbon-mark.svg@@ -0,0 +1,4 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>path{fill:#101A24}@media (prefers-color-scheme:dark){path{fill:#E6E6E6}}</style>+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"/>+</svg>diff --git a/docs/public/carbon-mark.svg b/docs/public/carbon-mark.svgnew file mode 100644index 0000000000..b88678c749--- /dev/null+++ b/docs/public/carbon-mark.svg@@ -0,0 +1,4 @@+<svg width="424" height="480" viewBox="0 0 424 480" fill="none" xmlns="http://www.w3.org/2000/svg">+<style>path{fill:#101A24}@media (prefers-color-scheme:dark){path{fill:#E6E6E6}}</style>+<path fill-rule="evenodd" clip-rule="evenodd" d="M176.24 9.80407C198.287 -3.26801 225.714 -3.26803 247.761 9.80407L389.658 93.9389C410.947 106.562 424 129.472 424 154.217V325.783C424 350.528 410.947 373.439 389.658 386.062L247.761 470.196C225.714 483.268 198.287 483.268 176.24 470.196L34.3432 386.062C13.0539 373.439 0.000129963 350.528 0 325.783V154.217C0.000219136 129.472 13.054 106.562 34.3432 93.9389L176.24 9.80407ZM224.561 112.025C217.155 107.562 207.886 107.551 200.471 111.999L124.056 157.836C108.898 166.929 108.938 188.904 124.128 197.943L200.899 243.618C202.762 244.727 203.903 246.734 203.903 248.901V339.17C203.903 357.314 223.69 368.532 239.265 359.22L314.442 314.275C321.496 310.057 325.815 302.443 325.815 294.225V186.253C325.815 178.065 321.527 170.474 314.514 166.246L224.561 112.025Z"/>+</svg>diff --git a/packages/utils/src/favicon.ts b/packages/utils/src/favicon.tsindex 46d99bfcfe..f3226d5ca5 100644--- a/packages/utils/src/favicon.ts+++ b/packages/utils/src/favicon.ts@@ -7,8 +7,13 @@* Carbon app so the browser tab icon is uniform across erp, mes, academy,* starter, and docs.*- * Theme-aware: light theme uses the light mark, dark theme uses the dark mark.- * The referenced assets (`carbon-mark-light.png`, `carbon-mark-dark.png`,+ * Theme-aware through ONE icon: `carbon-mark.svg` recolours itself with an+ * internal `prefers-color-scheme` rule. Not two PNGs switched by `media`:+ * Chrome does not apply `media` to icon links reliably, and showed the mark+ * while loading, then dropped it. The PNG is the fallback for browsers without+ * SVG favicons; its `sizes` lets Chrome still prefer the SVG (`sizes="any"`).+ *+ * The referenced assets (`carbon-mark.svg`, `carbon-mark-light.png`,* `apple-touch-icon.png`, `site.webmanifest`) must exist in each app's* `public/` dir — static assets are served per-origin, so they are copied into* every app rather than imported from here.@@ -20,7 +25,7 @@ export type FaviconLink = {rel: string;href: string;type?: string;- media?: string;+ sizes?: string;};export const faviconLinks: FaviconLink[] = [@@ -28,13 +33,13 @@ export const faviconLinks: FaviconLink[] = [rel: "icon",type: "image/png",href: "/carbon-mark-light.png",- media: "(prefers-color-scheme: light)"+ sizes: "480x480"},{rel: "icon",- type: "image/png",- href: "/carbon-mark-dark.png",- media: "(prefers-color-scheme: dark)"+ type: "image/svg+xml",+ href: "/carbon-mark.svg",+ sizes: "any"},{rel: "apple-touch-icon",