Skip to content

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.

feat: add favicon and manifest links for improved site branding (#871)

Naveen Kashyap7dbe1e074636
diff --git a/apps/academy/app/root.tsx b/apps/academy/app/root.tsx
index 32ac44fe60..f83103a1ab 100644
--- a/apps/academy/app/root.tsx
+++ b/apps/academy/app/root.tsx
@@ -63,7 +63,37 @@ export const clientMiddleware = [flashClientMiddleware];
export const links: LinksFunction = () => [
{ rel: "stylesheet", href: Tailwind },
- { rel: "stylesheet", href: NProgress }
+ { rel: "stylesheet", href: NProgress },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-light.svg",
+ media: "(prefers-color-scheme: light)"
+ },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-dark.svg",
+ media: "(prefers-color-scheme: dark)"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "32x32",
+ href: "/favicon-32x32.png"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "16x16",
+ href: "/favicon-16x16.png"
+ },
+ {
+ rel: "apple-touch-icon",
+ sizes: "180x180",
+ href: "/apple-touch-icon.png"
+ },
+ { rel: "manifest", href: "/site.webmanifest" }
];
export const meta: MetaFunction = () => {
diff --git a/apps/erp/app/root.tsx b/apps/erp/app/root.tsx
index 47399a430a..fede4f1a88 100644
--- a/apps/erp/app/root.tsx
+++ b/apps/erp/app/root.tsx
@@ -57,7 +57,37 @@ export const links: LinksFunction = () => {
{ href: Tailwind, rel: "stylesheet" },
{ href: Background, rel: "stylesheet" },
{ href: NProgress, rel: "stylesheet" },
- { href: SonnerStyle, rel: "stylesheet" }
+ { href: SonnerStyle, rel: "stylesheet" },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-light.svg",
+ media: "(prefers-color-scheme: light)"
+ },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-dark.svg",
+ media: "(prefers-color-scheme: dark)"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "32x32",
+ href: "/favicon-32x32.png"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "16x16",
+ href: "/favicon-16x16.png"
+ },
+ {
+ rel: "apple-touch-icon",
+ sizes: "180x180",
+ href: "/apple-touch-icon.png"
+ },
+ { rel: "manifest", href: "/site.webmanifest" }
];
};
@@ -213,7 +243,6 @@ export function Document({
/>
<Meta />
<title>{title}</title>
- <link rel="manifest" href="/site.webmanifest" />
<Links />
</head>
<body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">
diff --git a/apps/mes/app/root.tsx b/apps/mes/app/root.tsx
index e917693368..e258a52e1a 100644
--- a/apps/mes/app/root.tsx
+++ b/apps/mes/app/root.tsx
@@ -50,7 +50,37 @@ export const clientMiddleware = [flashClientMiddleware];
export const links: Route.LinksFunction = () => [
{ rel: "stylesheet", href: Tailwind },
{ rel: "stylesheet", href: Background },
- { rel: "stylesheet", href: NProgress }
+ { rel: "stylesheet", href: NProgress },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-light.svg",
+ media: "(prefers-color-scheme: light)"
+ },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-dark.svg",
+ media: "(prefers-color-scheme: dark)"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "32x32",
+ href: "/favicon-32x32.png"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "16x16",
+ href: "/favicon-16x16.png"
+ },
+ {
+ rel: "apple-touch-icon",
+ sizes: "180x180",
+ href: "/apple-touch-icon.png"
+ },
+ { rel: "manifest", href: "/site.webmanifest" }
];
export const meta: MetaFunction = () => {
@@ -193,7 +223,6 @@ function Document({
/>
<Meta />
<title>{title}</title>
- <link rel="manifest" href="/site.webmanifest" />
<Links />
</head>
<body className="h-full bg-background antialiased selection:bg-primary/10 selection:text-primary">
diff --git a/apps/starter/app/root.tsx b/apps/starter/app/root.tsx
index 52fc4c5640..06a6c680be 100644
--- a/apps/starter/app/root.tsx
+++ b/apps/starter/app/root.tsx
@@ -39,7 +39,37 @@ export const clientMiddleware = [flashClientMiddleware];
export const links: LinksFunction = () => [
{ rel: "stylesheet", href: Tailwind },
{ rel: "stylesheet", href: Background },
- { rel: "stylesheet", href: NProgress }
+ { rel: "stylesheet", href: NProgress },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-light.svg",
+ media: "(prefers-color-scheme: light)"
+ },
+ {
+ rel: "icon",
+ type: "image/svg+xml",
+ href: "/carbon-mark-dark.svg",
+ media: "(prefers-color-scheme: dark)"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "32x32",
+ href: "/favicon-32x32.png"
+ },
+ {
+ rel: "icon",
+ type: "image/png",
+ sizes: "16x16",
+ href: "/favicon-16x16.png"
+ },
+ {
+ rel: "apple-touch-icon",
+ sizes: "180x180",
+ href: "/apple-touch-icon.png"
+ },
+ { rel: "manifest", href: "/site.webmanifest" }
];
export const meta: MetaFunction = () => {