Skip to content

Commit

Permalink
Merge pull request #75 from DepshubHQ/make-dark-theme-by-default
Browse files Browse the repository at this point in the history
Make dark theme by default
  • Loading branch information
semanser authored Jan 8, 2025
2 parents 3a05997 + 819e8e2 commit 48710ca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default defineConfig({
pagination: false,
components: {
ThemeSelect: "./src/components/ThemeSelect.astro",
ThemeProvider: "./src/components/ThemeProvider.astro",
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/starlight": "0.30.2",
"@astrojs/starlight": "0.30.5",
"@radix-ui/colors": "^3.0.0",
"astro": "5.0.9",
"sharp": "^0.32.5",
Expand Down
3 changes: 3 additions & 0 deletions docs/src/components/ThemeProvider.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<script is:inline>
document.documentElement.dataset.theme = 'dark'
</script>
8 changes: 4 additions & 4 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@
stream-replace-string "^2.0.0"
zod "^3.23.8"

"@astrojs/starlight@0.30.2":
version "0.30.2"
resolved "https://registry.yarnpkg.com/@astrojs/starlight/-/starlight-0.30.2.tgz#42c53ed4f238c029118b2c0baff9edfe75e1c216"
integrity sha512-KUNnIhiBgX3hV2mUIqwv2R5b7tBFRVr68Wj0wEyN8E2x0MtAos7qRPytWha/WchAtpO1eIt6sqAT0KfTvBZt5g==
"@astrojs/starlight@0.30.5":
version "0.30.5"
resolved "https://registry.yarnpkg.com/@astrojs/starlight/-/starlight-0.30.5.tgz#c7c97ac453b14d0e1791b4e506be0448b8537de9"
integrity sha512-enQISKa2K3DtFqU55PT8zskCT7180DJwOT9yFVh9MYT4csolvCBu2RVjQeXu7z+3hoLHvCcofN8FshCLA+iQQQ==
dependencies:
"@astrojs/mdx" "^4.0.1"
"@astrojs/sitemap" "^3.1.6"
Expand Down

0 comments on commit 48710ca

Please sign in to comment.