Skip to content

Commit

Permalink
darkMode use
Browse files Browse the repository at this point in the history
  • Loading branch information
alexy-os committed Nov 28, 2024
1 parent b881101 commit 4b5d5e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
if (theme === 'true' || (!theme && systemTheme)) {
document.documentElement.classList.add('dark');
}
})();
})();
</script>
<meta name="description" content="A starter project for Vue 3 with Shadcn UI and Tailwind CSS">
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
Expand Down
7 changes: 6 additions & 1 deletion public/buildy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@
<meta name="description"
content="Create fasty Landing pages with TailwindCSS. Dark Mode and customizer Config included." />
<link rel="icon" href="./img/favicon.ico" />
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)">
<meta name="color-scheme" content="light dark">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<script>
(function() {
const theme = localStorage.getItem('darkMode');
const systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (theme === 'true' || (!theme && systemTheme)) {
document.documentElement.classList.add('dark');
}
})();
})();
</script>
<script src="./js/lib/tailwind.js"></script>
<script src="./js/lib/lucide.min.js"></script>
Expand Down

0 comments on commit 4b5d5e9

Please sign in to comment.