Skip to content

Commit

Permalink
Use font from theme
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 14, 2024
1 parent 6a9b744 commit 40f720a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/client/src/AppTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ export const theme = createTheme({
color: "#787878",
lineHeight: "1.4em",
},
body2: {
fontSize: "16px",
},
fullPageMessage: {
fontSize: "23px",
color: "#000000",
Expand Down
6 changes: 6 additions & 0 deletions src/client/src/mui.theme.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ declare module "@mui/material/styles" {
color: string;
lineHeight: string;
};
body2: {
fontSize: string;
};
fullPageMessage: {
fontSize: string;
color: string;
Expand Down Expand Up @@ -164,6 +167,9 @@ declare module "@mui/material/styles" {
color: string;
lineHeight: string;
};
body2: {
fontSize: string;
};
fullPageMessage: {
fontSize: string;
color: string;
Expand Down
2 changes: 0 additions & 2 deletions src/client/src/pages/overview/boreholeTable/boreholeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ export const BoreholeTable: FC<BoreholeTableProps> = ({
}, [apiRef, onHover]);

const StyledDataGrid = styled(DataGrid)(() => ({
fontFamily: theme.typography.fontFamily,
fontSize: "16px",
".MuiDataGrid-columnHeader": {
backgroundColor: theme.palette.boxShadow,
},
Expand Down

0 comments on commit 40f720a

Please sign in to comment.