@@ -18,8 +18,7 @@ import spectralExtraBoldWoff2Url from "../dsfr/fonts/Spectral-ExtraBold.woff2";
1818import AppleTouchIcon from "../dsfr/favicon/apple-touch-icon.png" ;
1919import FaviconSvg from "../dsfr/favicon/favicon.svg" ;
2020import FaviconIco from "../dsfr/favicon/favicon.ico" ;
21- import { data_fr_scheme , data_fr_theme , rootColorSchemeStyleTagId } from "../useIsDark/constants" ;
22- import { getColors } from "../fr/colors" ;
21+ import { data_fr_scheme , data_fr_theme } from "../useIsDark/constants" ;
2322import "../dsfr/dsfr.css" ;
2423import "../dsfr/utility/icons/icons.css" ;
2524
@@ -129,33 +128,6 @@ export function DsfrHead(props: DsfrHeadProps) {
129128
130129 ["${ data_fr_scheme } ", "${ data_fr_theme } "].forEach(attr => document.documentElement.setAttribute(attr, isDark ? "dark" : "light"));
131130
132- {
133-
134- const element = document.createElement("style");
135-
136- element.id = "${ rootColorSchemeStyleTagId } ";
137-
138- element.innerHTML = \`:root { color-scheme: \${isDark ? "dark" : "light"}; }\`;
139-
140- document.head.appendChild(element);
141-
142- }
143-
144- {
145-
146- const element = document.createElement("meta");
147-
148- element.name = "theme-color";
149-
150- element.content = isDark ? "${
151- getColors ( true ) . decisions . background . default . grey . default
152- } " : "${
153- getColors ( false ) . decisions . background . default . grey . default
154- } ";
155-
156- document.head.appendChild(element);
157-
158- }
159131 `
160132 } }
161133 > </ script >
0 commit comments