Skip to content

Instantly share code, notes, and snippets.

@MatiMenich
Created July 2, 2020 16:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatiMenich/7e4052a1646531bf75199c11e2a6e847 to your computer and use it in GitHub Desktop.
Save MatiMenich/7e4052a1646531bf75199c11e2a6e847 to your computer and use it in GitHub Desktop.
/* istanbul ignore file */
// @ts-nocheck
import { createMuiTheme } from "@material-ui/core/styles";
const theme = createMuiTheme({
palette: {
primary: {
main: "rgba(2,51,101,1)",
dark: "rgba(17,43,69,1)",
light: "rgba(30,101,174,1)",
},
secondary: {
main: "rgba(0,230,178,1)",
dark: "rgba(13,194,152,1)",
light: "rgba(222,255,247,1)",
},
info: {
main: "rgba(68,152,238,1)",
dark: "rgba(2,51,101,1)",
light: "rgba(212,234,255,0.4)",
},
error: {
main: "rgba(226,71,99,1)",
dark: "rgba(173,12,42,1)",
light: "rgba(255,223,229,0.3)",
},
warning: {
main: "rgba(255,215,64,1)",
dark: "rgba(180,120,0,1)",
light: "rgba(252,235,193,0.3)",
},
success: {
main: "rgba(0,230,178,1)",
dark: "rgba(6,169,131,1)",
light: "rgba(210,255,244,0.3)",
},
background: {
paper: "#fff",
default: "rgba(240,244,249,1)",
},
text: {
primary: "rgba(41,48,54,1)",
secondary: "rgba(46, 61, 74, 0.70)",
disabled: "rgba(46, 61, 74, 0.36)",
},
grey: {
A400: "rgba(41,48,54,1)",
A700: "rgba(70,82,92,1)",
},
},
typography: {
fontFamily: "IBM Plex Sans,sans-serif",
h1: {
fontSize: "40px",
fontWeight: 200,
lineHeight: "140%",
fontStyle: "normal",
color: "#023365",
},
h2: {
fontSize: "32px",
fontWeight: 500,
lineHeight: "140%",
fontStyle: "normal",
},
h3: {
fontSize: "28px",
fontWeight: 500,
lineHeight: "140%",
fontStyle: "normal",
},
h4: {
fontSize: "24px",
fontWeight: 500,
lineHeight: "140%",
fontStyle: "normal",
},
h5: {
fontSize: "20px",
fontWeight: 500,
lineHeight: "140%",
fontStyle: "normal",
},
h6: {
fontSize: "16px",
fontWeight: 400,
lineHeight: "140%",
fontStyle: "normal",
},
subtitle2: {
fontSize: "12px",
fontWeight: 350,
},
},
overrides: {
MuiTableContainer: {
root: {
backgroundColor: "#FFF",
},
},
MuiTableRow: {
hover: {
"&:hover": {
backgroundColor: "#F7FAFC !important",
},
"&$selected": {
backgroundColor: "rgba(213, 234, 255, 0.4) !important",
},
},
},
MuiTableCell: {
head: {
fontStyle: "normal",
fontWeight: 500,
fontSize: "14px",
lineHeight: "140%",
color: "#677784",
},
},
MuiButton: {
root: {
textTransform: 'none',
fontWeight: 500,
padding: '.5rem 1rem',
lineHeight: 1,
minHeight: '36px',
fontSize: '1rem'
},
contained: {
'box-shadow': 'none'
},
sizeLarge: {
fontSize: 17,
},
containedPrimary: {
textTransform: "none",
"&:hover": {
color: "#FFF",
},
},
outlinedPrimary: {
border: "unset",
borderRadius: "4px",
backgroundColor: "#F7FAFC",
textTransform: "none",
color: "#023365",
"&:hover": {
border: "unset",
backgroundColor: "rgba(213, 234, 255, 0.4)",
},
},
outlined: {
textTransform: "none",
},
},
MuiInputBase: {
root: {
height: "48px",
},
},
MuiAlert: {
filledSuccess: {
backgroundColor: "rgba(6,169,131,1)",
},
},
MuiListItemIcon: {
root: {
backgroundColor: "#FFFFFF",
minWidth: "35px",
},
},
MuiListItem: {
root: {
paddingBottom: "4px",
paddingTop: "4px",
},
},
},
props: {
MuiButtonBase: {
disableRipple: true,
},
MuiButton: {
disableElevation: true
}
},
});
export default theme;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment