From 37f284f9a97d3354143d64fc76c2eb9f7d9ccf9e Mon Sep 17 00:00:00 2001
From: Frank <frank@sst.dev>
Date: Fri, 29 Aug 2025 23:32:17 -0400
Subject: wip: cloud

---
 cloud/web/src/components/context-theme.tsx | 39 ------------------------------
 1 file changed, 39 deletions(-)
 delete mode 100644 cloud/web/src/components/context-theme.tsx

(limited to 'cloud/web/src/components/context-theme.tsx')

diff --git a/cloud/web/src/components/context-theme.tsx b/cloud/web/src/components/context-theme.tsx
deleted file mode 100644
index 7800aeca0..000000000
--- a/cloud/web/src/components/context-theme.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { createStore } from "solid-js/store"
-import { makePersisted } from "@solid-primitives/storage"
-import { createEffect } from "solid-js"
-import { createInitializedContext } from "../util/context"
-import { isServer } from "solid-js/web"
-
-interface Storage {
-  mode: "light" | "dark"
-}
-
-export const { provider: ThemeProvider, use: useTheme } =
-  createInitializedContext("ThemeContext", () => {
-    const [store, setStore] = makePersisted(
-      createStore<Storage>({
-        mode:
-          !isServer &&
-          window.matchMedia &&
-          window.matchMedia("(prefers-color-scheme: dark)").matches
-            ? "dark"
-            : "light",
-      }),
-      {
-        name: "theme",
-      },
-    )
-    createEffect(() => {
-      document.documentElement.setAttribute("data-color-mode", store.mode)
-    })
-
-    return {
-      setMode(mode: Storage["mode"]) {
-        setStore("mode", mode)
-      },
-      get mode() {
-        return store.mode
-      },
-      ready: true,
-    }
-  })
-- 
cgit v1.2.3

