Skip to content

Commit

Permalink
style: modify text sizes and change font
Browse files Browse the repository at this point in the history
  • Loading branch information
lekotros committed Dec 2, 2022
1 parent 4d2cf16 commit 5447072
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 101 deletions.
1 change: 1 addition & 0 deletions app/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ body {

a {
color: inherit;
text-decoration: none;
}
202 changes: 101 additions & 101 deletions app/styles/theme.ts
Original file line number Diff line number Diff line change
@@ -1,115 +1,115 @@
import { grey } from '@mui/material/colors';
import { createTheme } from '@mui/material/styles';
import { grey } from '@mui/material/colors'
import { createTheme } from '@mui/material/styles'

const theme = createTheme({
palette: {
primary: {
main: '#000',
main: '#000'
},
background: {
default: '#e6e6e6',
},
default: '#e6e6e6'
}
},
typography: {
},
});
}
})

// typography
theme.typography.h1 = {
fontFamily: 'Roboto Slab',
fontSize: '3.5rem',
lineHeight: '4rem',
fontFamily: 'Inter',
fontSize: '3rem',
lineHeight: '3.5rem',
[theme.breakpoints.down('lg')]: {
fontSize: '2.5rem',
lineHeight: '3rem',
},
};
fontSize: '2.25rem',
lineHeight: '2.75rem'
}
}
theme.typography.h2 = {
fontFamily: 'Roboto Slab',
fontSize: '2.25rem',
lineHeight: '2.5rem',
};
theme.typography.h3 = {
fontFamily: 'Roboto Slab',
fontFamily: 'Inter',
fontSize: '2rem',
lineHeight: '2.5rem',
fontWeight: '300',
};
theme.typography.h4 = {
fontFamily: 'Roboto Slab',
fontSize: '1.5rem',
lineHeight: '2.25rem'
}
theme.typography.h3 = {
fontFamily: 'Inter',
fontSize: '1.75rem',
lineHeight: '2rem',
fontWeight: '300',
};
fontWeight: '300'
}
theme.typography.h4 = {
fontFamily: 'Inter',
fontSize: '1.25rem',
lineHeight: '1.5rem',
fontWeight: '300'
}
theme.typography.h5 = {
fontFamily: 'Roboto Slab',
fontFamily: 'Inter',
fontSize: '1rem',
lineHeight: '1.5rem',
fontWeight: 'normal',
};
lineHeight: '1.25rem',
fontWeight: 'normal'
}
theme.typography.h6 = {
fontFamily: 'Roboto Slab',
fontFamily: 'Inter',
fontSize: '0.875rem',
lineHeight: '1rem',
fontWeight: 'bold',
};
fontWeight: 'bold'
}
theme.typography.body1 = {
fontFamily: 'Roboto Slab',
fontFamily: 'Inter',
fontSize: '0.875rem',
lineHeight: '1rem',
fontWeight: '300',
wordWrap: 'break-word',
};
wordWrap: 'break-word'
}
theme.typography.body2 = {
fontFamily: 'Roboto Slab',
fontFamily: 'Inter',
fontSize: '0.875rem',
lineHeight: '1rem',
wordWrap: 'break-word',
};
wordWrap: 'break-word'
}

theme.components = {};
theme.components = {}

theme.components.MuiCardContent = {
styleOverrides: {
root: {
'&:last-child': {
padding: theme.spacing(2),
},
},
},
};
padding: theme.spacing(2)
}
}
}
}

theme.components.MuiChip = {
styleOverrides: {
sizeSmall: {
fontSize: '0.750rem',
lineHeight: '0.875rem',
fontWeight: '500',
},
},
};
fontWeight: '500'
}
}
}

theme.components.MuiSpeedDial = {
styleOverrides: {
fab: {
background: 'black',
'&:hover': {
background: grey[800],
},
},
},
background: grey[800]
}
}
}
}

theme.components.MuiSpeedDialAction = {
styleOverrides: {
fab: {
'&.active': {
background: 'black',
color: 'white',
},
},
},
};
color: 'white'
}
}
}
}

theme.components.MuiButton = {
styleOverrides: {
Expand All @@ -119,33 +119,33 @@ theme.components.MuiButton = {
fontWeight: '400',
fontFamily: 'Roboto Slab',
'&.Mui-disabled': {
color: 'white',
},
color: 'white'
}
},
sizeLarge: {
fontSize: '1.5rem',
lineHeight: '2rem',
fontSize: '1.25rem',
lineHeight: '1.65rem',
padding: `${theme.spacing(2)} ${theme.spacing(3)}`,
'&.Mui-outlined': {
padding: 0,
},
padding: 0
}
},
sizeMedium: {
fontSize: '1rem',
lineHeight: '1.5rem',
padding: `${theme.spacing(1)} ${theme.spacing(3)}`,
padding: `${theme.spacing(1)} ${theme.spacing(3)}`
},
sizeSmall: {
fontSize: '1rem',
lineHeight: '1rem',
padding: `${theme.spacing(1)} ${theme.spacing(2)}`,
fontSize: '0.75rem',
lineHeight: '0.75rem',
padding: `${theme.spacing(1)} ${theme.spacing(2)}`
},
contained: {
color: theme.palette.primary.contrastText,
backgroundColor: theme.palette.primary.main,
'&:hover': {
backgroundColor: theme.palette.primary.light,
},
backgroundColor: theme.palette.primary.light
}
},
outlined: {
border: `1px solid ${theme.palette.primary.main}`,
Expand All @@ -154,32 +154,32 @@ theme.components.MuiButton = {
'&:hover': {
backgroundColor: 'transparent',
borderColor: theme.palette.primary.light,
color: theme.palette.primary.light,
},
color: theme.palette.primary.light
}
},
outlinedSizeLarge: {
padding: `${theme.spacing(1.85)} ${theme.spacing(3)}`,
},
},
};
padding: `${theme.spacing(1.85)} ${theme.spacing(3)}`
}
}
}

theme.components.MuiPaper = {
styleOverrides: {
root: {
borderRadius: 0,
boxShadow: 'none',
},
},
};
boxShadow: 'none'
}
}
}

theme.components.MuiMenu = {
styleOverrides: {
root: {
'& > .MuiPaper-root': {
boxShadow: '0 2px 2px rgba(0,0,0,.2)',
boxShadow: '0 2px 2px rgba(0,0,0,.2)'
}
},
},
}
}
}

theme.components.MuiInput = {
Expand All @@ -188,33 +188,33 @@ theme.components.MuiInput = {
backgroundColor: 'white',
padding: `${theme.spacing(2)} ${theme.spacing(3)}`,
'&:before': {
borderBottomColor: 'white',
},
borderBottomColor: 'white'
}
},
input: {
padding: '0',
},
},
};
padding: '0'
}
}
}

theme.components.MuiSelect = {
styleOverrides: {
iconOutlined: {
color: theme.palette.primary.main,
},
},
};
color: theme.palette.primary.main
}
}
}

theme.components.MuiOutlinedInput = {
styleOverrides: {
root: {
backgroundColor: 'white',
borderRadius: '0',
borderRadius: '0'
},
notchedOutline: {
borderColor: 'transparent',
},
},
};
borderColor: 'transparent'
}
}
}

export default theme;
export default theme

0 comments on commit 5447072

Please sign in to comment.