mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-10-23 18:23:15 +02:00
33 lines
648 B
TypeScript
33 lines
648 B
TypeScript
|
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>
|
||
|
);
|