Skip to content

Commit

Permalink
feat(odyssey-react-mui): include color properties in type styles
Browse files Browse the repository at this point in the history
  • Loading branch information
edburyenegren-okta committed Jun 1, 2023
1 parent 5afc6ed commit a817ffb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/odyssey-react-mui/src/theme/typography.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,36 +31,42 @@ export const typography = (
letterSpacing: 0,
},
h1: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographySizeHeading1,
lineHeight: odysseyTokens.TypographyLineHeightHeading1,
marginBottom: odysseyTokens.Spacing2,
},
h2: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographySizeHeading2,
lineHeight: odysseyTokens.TypographyLineHeightHeading2,
marginBottom: odysseyTokens.Spacing2,
},
h3: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographySizeHeading3,
lineHeight: odysseyTokens.TypographyLineHeightHeading3,
marginBottom: odysseyTokens.Spacing2,
},
h4: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographySizeHeading4,
lineHeight: odysseyTokens.TypographyLineHeightHeading4,
marginBottom: odysseyTokens.Spacing2,
},
h5: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographySizeHeading5,
lineHeight: odysseyTokens.TypographyLineHeightHeading5,
marginBottom: odysseyTokens.Spacing2,
},
h6: {
color: odysseyTokens.TypographyColorHeading,
fontWeight: Number(odysseyTokens.TypographyWeightHeading),
fontSize: odysseyTokens.TypographyScale2,
lineHeight: odysseyTokens.TypographyLineHeightHeading6,
Expand All @@ -74,6 +80,7 @@ export const typography = (
},
subtitle2: undefined,
body1: {
color: odysseyTokens.TypographyColorBody,
fontFamily: odysseyTokens.TypographyFamilyBody,
fontWeight: Number(odysseyTokens.TypographyWeightBody),
fontSize: odysseyTokens.TypographyScale1,
Expand Down

0 comments on commit a817ffb

Please sign in to comment.