This commit is contained in:
Olivier Gagnon
2021-09-13 12:44:46 -04:00
parent 0ed93ec0a5
commit 8fba57fd24
22 changed files with 1331 additions and 841 deletions
+32
View File
@@ -0,0 +1,32 @@
import React from "react";
import { createMuiTheme } from "@material-ui/core/styles";
import { ThemeProvider } from "@material-ui/core/styles";
export const colors = {
primary: "#0f0",
primarydark: "#090",
primarydarker: "#030",
};
export const theme = createMuiTheme({
palette: {
primary: {
main: colors.primary,
dark: colors.primarydark,
},
},
typography: {
button: {
textTransform: "none",
},
},
});
interface IProps {
children: JSX.Element[] | JSX.Element;
}
export const Theme = ({ children }: IProps): React.ReactElement => (
<ThemeProvider theme={theme}>{children}</ThemeProvider>
);