Initial theme designed

This commit is contained in:
David
2021-03-16 01:33:19 +01:00
parent 6153f739d2
commit 13877b5e11
16 changed files with 1739 additions and 120 deletions

View File

@@ -0,0 +1,22 @@
import { FC } from "react";
import { IconButton, useColorMode } from "@chakra-ui/react";
import { SunIcon, MoonIcon } from "@chakra-ui/icons";
type Props = {
[key: string]: any
};
const ColorModeToggler: FC<Props> = (props) => {
const { colorMode, toggleColorMode } = useColorMode();
return (
<IconButton
aria-label="Toggle color mode"
icon={colorMode === "light" ? <MoonIcon /> : <SunIcon />}
colorScheme="lingva"
onClick={toggleColorMode}
{...props}
/>
);
};
export default ColorModeToggler;