Skip to content

Commit

Permalink
Added body2Bold typography
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcloudquery committed Aug 7, 2024
1 parent e646f1a commit 33d739b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/theme/createComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ export const createThemeComponents = ({
defaultProps: {
variantMapping: {
body1Bold: 'p',
body2Bold: 'p',
},
},
},
Expand Down
5 changes: 5 additions & 0 deletions src/theme/createTypographyOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ export const createTypographyOptions = (): TypographyOptions => {
fontWeight: 400,
lineHeight: 1.57,
},
body2Bold: {
fontSize: '0.875rem',
fontWeight: 600,
lineHeight: 1.57,
},
button: {
fontWeight: 600,
},
Expand Down
3 changes: 3 additions & 0 deletions src/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,20 @@ import React from 'react';
declare module '@mui/material/styles' {
interface TypographyVariants {
body1Bold: React.CSSProperties;
body2Bold: React.CSSProperties;
tableHeader: React.CSSProperties;
}
interface TypographyVariantsOptions {
body1Bold?: React.CSSProperties;
body2Bold?: React.CSSProperties;
tableHeader?: React.CSSProperties;
}
}

declare module '@mui/material/Typography' {
interface TypographyPropsVariantOverrides {
body1Bold: true;
body2Bold: true;
tableHeader: true;
}
}
Expand Down

0 comments on commit 33d739b

Please sign in to comment.