From 44a95927edb532f8982cf24c03d9fdd129016bd6 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 5 Jun 2022 21:50:26 +0200 Subject: feat: Implement new theme switcher component and backend The theme is now shared between the domain returned by base_domain() --- .../src/components/theme-switcher.svelte | 425 +++++++++++++++++++++ 1 file changed, 425 insertions(+) create mode 100644 apps/web-shared/src/components/theme-switcher.svelte (limited to 'apps/web-shared/src/components') diff --git a/apps/web-shared/src/components/theme-switcher.svelte b/apps/web-shared/src/components/theme-switcher.svelte new file mode 100644 index 0000000..26ae507 --- /dev/null +++ b/apps/web-shared/src/components/theme-switcher.svelte @@ -0,0 +1,425 @@ + + +
+ +
+ +
+
+
+ Appearance +
+
+
+
change("dark")}> + + + + + + + + + + +
+
Dark
+
+
+
change("light")}> + + + + + + + + + + +
+
Light
+
+
+
change("system")}> + + + + + + + + + + + + + + + + +
+
System
+
+
+
+
-- cgit v1.3