2022-05-02 15:52:41 +02:00
|
|
|
import { createTheme } from '@mui/material/styles';
|
2022-05-05 15:34:46 +02:00
|
|
|
import { colors } from './colors';
|
2022-05-02 15:52:41 +02:00
|
|
|
|
|
|
|
export default createTheme({
|
|
|
|
boxShadows: {
|
|
|
|
main: '0px 2px 4px rgba(129, 122, 254, 0.2)',
|
|
|
|
},
|
|
|
|
typography: {
|
|
|
|
fontFamily: 'Sen, Roboto, sans-serif',
|
|
|
|
fontWeightBold: '700',
|
|
|
|
fontWeightMedium: '700',
|
|
|
|
allVariants: { lineHeight: 1.4 },
|
|
|
|
button: { lineHeight: 1.75 },
|
2022-05-05 15:34:46 +02:00
|
|
|
h1: {
|
|
|
|
fontSize: '1.5rem',
|
|
|
|
lineHeight: 1.875,
|
|
|
|
},
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
|
|
|
fontSizes: {
|
2022-05-09 12:01:12 +02:00
|
|
|
mainHeader: '1.25rem',
|
2022-05-02 15:52:41 +02:00
|
|
|
subHeader: '1.1rem',
|
|
|
|
bodySize: '1rem',
|
|
|
|
smallBody: '0.9rem',
|
|
|
|
smallerBody: '0.8rem',
|
|
|
|
},
|
|
|
|
fontWeight: {
|
|
|
|
thin: 300,
|
|
|
|
medium: 400,
|
|
|
|
semi: 700,
|
|
|
|
bold: 700,
|
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
shape: {
|
|
|
|
borderRadius: '3px',
|
|
|
|
borderRadiusLarge: '10px',
|
|
|
|
borderRadiusExtraLarge: '25px',
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
|
|
|
palette: {
|
|
|
|
primary: {
|
2022-05-05 15:34:46 +02:00
|
|
|
main: colors.purple[800],
|
|
|
|
light: colors.purple[700],
|
|
|
|
dark: colors.purple[900],
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
|
|
|
secondary: {
|
2022-05-05 15:34:46 +02:00
|
|
|
main: colors.purple[800],
|
|
|
|
light: colors.purple[700],
|
|
|
|
dark: colors.purple[900],
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
info: {
|
|
|
|
light: colors.blue[700],
|
|
|
|
main: colors.blue[700],
|
|
|
|
dark: colors.blue[800],
|
|
|
|
},
|
2022-05-02 15:52:41 +02:00
|
|
|
success: {
|
2022-05-09 12:01:12 +02:00
|
|
|
light: colors.green[700],
|
2022-05-05 15:34:46 +02:00
|
|
|
main: colors.green[700],
|
|
|
|
dark: colors.green[800],
|
|
|
|
},
|
|
|
|
warning: {
|
2022-05-09 12:01:12 +02:00
|
|
|
light: colors.orange[700],
|
2022-05-05 15:34:46 +02:00
|
|
|
main: colors.orange[700],
|
|
|
|
dark: colors.orange[800],
|
|
|
|
},
|
|
|
|
error: {
|
2022-05-09 12:01:12 +02:00
|
|
|
light: colors.red[700],
|
2022-05-05 15:34:46 +02:00
|
|
|
main: colors.red[700],
|
|
|
|
dark: colors.red[800],
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
divider: colors.grey[300],
|
|
|
|
dividerAlternative: colors.grey[500],
|
2022-05-06 12:21:31 +02:00
|
|
|
grey: colors.grey,
|
2022-05-09 12:01:12 +02:00
|
|
|
text: {
|
|
|
|
primary: colors.grey[900],
|
|
|
|
secondary: colors.grey[800],
|
|
|
|
disabled: colors.grey[600],
|
2022-05-06 12:21:31 +02:00
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
code: {
|
|
|
|
main: '#0b8c8f',
|
|
|
|
diffAdd: 'green',
|
|
|
|
diffSub: 'red',
|
|
|
|
diffNeutral: 'black',
|
|
|
|
edited: 'blue',
|
|
|
|
background: '#efefef',
|
2022-05-06 12:21:31 +02:00
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
activityIndicators: {
|
|
|
|
unknown: colors.grey[100],
|
|
|
|
recent: colors.green[100],
|
|
|
|
inactive: colors.orange[200],
|
|
|
|
abandoned: colors.red[200],
|
2022-05-02 15:52:41 +02:00
|
|
|
},
|
|
|
|
},
|
2022-05-05 15:34:46 +02:00
|
|
|
components: {
|
|
|
|
MuiTableHead: {
|
|
|
|
styleOverrides: {
|
|
|
|
root: {
|
|
|
|
background: colors.grey[200],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-05-06 12:21:31 +02:00
|
|
|
MuiLink: {
|
|
|
|
styleOverrides: {
|
|
|
|
root: {
|
|
|
|
color: colors.purple[900],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-05-09 12:01:12 +02:00
|
|
|
MuiBreadcrumbs: {
|
|
|
|
styleOverrides: {
|
|
|
|
root: {
|
|
|
|
'& a': {
|
|
|
|
color: colors.purple[900],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
MuiTableRow: {
|
|
|
|
styleOverrides: {
|
|
|
|
root: {
|
|
|
|
'&.MuiTableRow-hover:hover': {
|
|
|
|
background: colors.grey[100],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-05-05 15:34:46 +02:00
|
|
|
},
|
2022-05-02 15:52:41 +02:00
|
|
|
});
|