Multiple theme support & fixes

This commit is contained in:
Sacha Weatherstone
2022-12-29 23:45:16 +11:00
parent 5022bda660
commit dab158c7b3
61 changed files with 2462 additions and 581 deletions
@@ -0,0 +1,18 @@
import { useAppStore } from "@app/core/stores/appStore.js";
import type React from "react";
export interface ThemeControllerProps {
children: React.ReactNode;
}
export const ThemeController = ({
children
}: ThemeControllerProps): JSX.Element => {
const { darkMode, accent } = useAppStore();
return (
<div data-theme={darkMode ? "dark" : "light"} data-accent={accent}>
{children}
</div>
);
};