-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
💄 Remove anonymous signout + set default to dark
- Loading branch information
Showing
6 changed files
with
16 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { writable } from "svelte/store"; | ||
import { createLocalStorage, persist } from "@macfja/svelte-persistent-store"; | ||
import { genStoreKey } from "$lib/utils/genStoreKey"; | ||
import { createLocalStorage, persist } from "@macfja/svelte-persistent-store"; | ||
import { writable } from "svelte/store"; | ||
|
||
export type Theme = "light" | "dark"; | ||
|
||
const THEME_STORE_KEY = genStoreKey("theme-store"); | ||
|
||
export const themeStore = persist(writable<Theme>("light"), createLocalStorage(), THEME_STORE_KEY); | ||
export const themeStore = persist(writable<Theme>("dark"), createLocalStorage(), THEME_STORE_KEY); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters