diff --git a/styles/globals.css b/styles/globals.css index 34191a7..8e1015f 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -13,14 +13,6 @@ body, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; } -body { - background-color: #a7b6c2; -} - -body.bp3-dark { - background-color: #202b33; -} - a { color: inherit; text-decoration: none; diff --git a/ui/providers/dark-mode-provider.tsx b/ui/providers/dark-mode-provider.tsx index ef1b206..a9c1429 100644 --- a/ui/providers/dark-mode-provider.tsx +++ b/ui/providers/dark-mode-provider.tsx @@ -1,10 +1,10 @@ -import { Classes } from "@blueprintjs/core"; import React from "react"; +import { Colors } from "@blueprintjs/core"; const DarkModeContext = React.createContext<{ isDark: boolean; toggleDark: () => void; -}>({ isDark: false, toggleDark: () => {} }); +}>({ isDark: true, toggleDark: () => {} }); /** Context provider for managing dark mode state */ export const DarkModeProvider = ({ @@ -12,16 +12,21 @@ export const DarkModeProvider = ({ }: { children: React.ReactNode; }) => { - const [isDark, setIsDark] = React.useState(false); - - const toggleDark = () => { - document.body.classList.toggle(Classes.DARK); - setIsDark((d) => !d); - }; + const [isDark, setIsDark] = React.useState(true); return ( - - {children} + setIsDark((d) => !d) }} + > +
+ {children} +
); };