summaryrefslogtreecommitdiff
path: root/examples/docs/public/theme.js
diff options
context:
space:
mode:
authorGravatar Okiki <okikio.dev@gmail.com> 2021-08-14 00:58:00 +0000
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 12:15:33 -0700
commitb7ada11ddbabe4dd2f0798e140e5b280de4d6952 (patch)
treec01ff3eee4f770fc108c19d126dce31d9cbe5e51 /examples/docs/public/theme.js
parent59cc62f7bd53dbcb6ad8051fa501b7b797614178 (diff)
downloadastro-b7ada11ddbabe4dd2f0798e140e5b280de4d6952.tar.gz
astro-b7ada11ddbabe4dd2f0798e140e5b280de4d6952.tar.zst
astro-b7ada11ddbabe4dd2f0798e140e5b280de4d6952.zip
WIP update examples/docs/
Diffstat (limited to 'examples/docs/public/theme.js')
-rw-r--r--examples/docs/public/theme.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/examples/docs/public/theme.js b/examples/docs/public/theme.js
deleted file mode 100644
index d75d0bf99..000000000
--- a/examples/docs/public/theme.js
+++ /dev/null
@@ -1,8 +0,0 @@
-(() => {
- const root = document.documentElement;
- if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
- root.classList.add('theme-dark');
- } else {
- root.classList.remove('theme-dark');
- }
-})();