Skip to content

Commit 15828ee

Browse files
committed
docs: remove default dark theme script from configuration
1 parent 61d7ed3 commit 15828ee

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

docs/astro.config.mjs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@ export default defineConfig({
1616
},
1717
plugins: [starlightThemeRapide()],
1818
customCss: ["./src/styles/custom.css"],
19-
head: [
20-
{
21-
tag: "script",
22-
attrs: {},
23-
content: `
24-
(function() {
25-
const storedTheme = typeof localStorage !== 'undefined' && localStorage.getItem('starlight-theme');
26-
if (!storedTheme) {
27-
localStorage.setItem('starlight-theme', 'dark');
28-
document.documentElement.setAttribute('data-theme', 'dark');
29-
}
30-
})();
31-
`,
32-
},
33-
],
3419
social: [{ icon: "github", label: "GitHub", href: "https://github.com/mgcrea/react-native-tailwind" }],
3520
sidebar: [
3621
{

0 commit comments

Comments
 (0)