feat: themes

This commit is contained in:
nikita
2026-06-12 01:23:31 +03:00
parent 8005ba7111
commit d421dc8f2c
10 changed files with 333 additions and 2 deletions
@@ -0,0 +1,13 @@
import { useLayoutEffect } from "react";
import { applyTheme, initializeTheme } from "../utils/apply.theme";
export const ThemeInitialProvider: React.FC<{ children: React.ReactNode }> = ({
children,
}) => {
useLayoutEffect(() => {
const theme = initializeTheme();
applyTheme(theme);
}, []);
return children;
};