We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b050924 commit bd02c85Copy full SHA for bd02c85
src/App.svelte
@@ -24,6 +24,13 @@
24
25
const activeRouteStore = router.activeRouteStore;
26
27
+ window
28
+ .matchMedia("(prefers-color-scheme: dark)")
29
+ .addEventListener("change", ({ matches }) => {
30
+ theme.set(matches ? "dark" : "light");
31
+ followSystemTheme.set(true);
32
+ });
33
+
34
void router.loadFromLocation();
35
36
$: document.documentElement.setAttribute("data-codefont", $codeFont);
src/App/Settings.svelte
@@ -11,6 +11,7 @@
11
import Button from "@app/components/Button.svelte";
12
import Icon from "@app/components/Icon.svelte";
13
import Radio from "@app/components/Radio.svelte";
14
15
</script>
16
17
<style>
0 commit comments