diff --git a/src/next-appdir/DsfrHead.tsx b/src/next-appdir/DsfrHead.tsx
index ba49e1525..e9c367eb6 100644
--- a/src/next-appdir/DsfrHead.tsx
+++ b/src/next-appdir/DsfrHead.tsx
@@ -94,26 +94,30 @@ export function DsfrHead(props: DsfrHeadProps) {
>
)}
-
- {nonce !== undefined && (
-
+ {defaultColorScheme !== "light" && (
+ <>
+
+ {nonce !== undefined && (
+
+ )}
+ >
)}
>
);
diff --git a/src/next-pagesdir.tsx b/src/next-pagesdir.tsx
index 9b43baa89..840adeacd 100644
--- a/src/next-pagesdir.tsx
+++ b/src/next-pagesdir.tsx
@@ -199,31 +199,37 @@ export function createNextDsfrIntegrationApi(
/>
>
)}
- {!isBrowser && ( //NOTE: On browser we handle this manually
+ {defaultColorScheme !== "light" && (
<>
-
-
+ {!isBrowser && ( //NOTE: On browser we handle this manually
+ <>
+
+
+ >
+ )}
+ {isProduction && !isBrowser && (
+
+ )}
>
)}
- {isProduction && !isBrowser && (
-
- )}
{isBrowser ? (