Skip to content

Commit

Permalink
Use dark mode initially
Browse files Browse the repository at this point in the history
  • Loading branch information
ayonix committed Aug 31, 2023
1 parent a6b705f commit d9f86dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta content="width=device-width" name="viewport" />
%sveltekit.head%
</head>
<body>
<body class="dark">
<div class="contents">%sveltekit.body%</div>
</body>
</html>
2 changes: 1 addition & 1 deletion src/lib/stores/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const theme = persisted<Themes>('ds:theme', {
? window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light'
: 'light'
: 'dark'
});

theme.subscribe(($theme) => {
Expand Down

0 comments on commit d9f86dd

Please sign in to comment.