Skip to content

Commit

Permalink
fix: dark mode toogle
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcosNicolau committed Jan 13, 2025
1 parent cd0c331 commit bc29744
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions explorer/lib/explorer_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@
/>
<meta name="csrf-token" content={get_csrf_token()} />
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark')
}
</script>
</head>
<body class="antialiased bg-gray-100 dark:bg-neutral-950">
<%= @inner_content %>
Expand Down

0 comments on commit bc29744

Please sign in to comment.