Skip to content

Commit

Permalink
Remove old fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasbiagioninc committed Dec 6, 2024
1 parent 6213e43 commit 5e09231
Showing 1 changed file with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,4 @@ export const customFonts = {
[`${baseFamily}-Medium` as const]: require(`../../assets/fonts/${baseFamily}-Medium.${fontFormat}`),
[`${baseFamily}-MediumItalic` as const]: require(`../../assets/fonts/${baseFamily}-MediumItalic.${fontFormat}`),
[`${baseFamily}-Regular` as const]: require(`../../assets/fonts/${baseFamily}-Regular.${fontFormat}`),
}

type FontFamily = keyof typeof customFonts

export type FontWeightStyle =
| 'light'
| 'italic-light'
| 'regular'
| 'italic'
| 'medium'
| 'italic-medium'
| 'black'
| 'italic-black'
| 'bold'
| 'italic-bold'

export const fontFamilyWeightMap: Record<FontWeightStyle, FontFamily> = {
light: `${baseFamily}-Light`,
'italic-light': `${baseFamily}-LightItalic`,
regular: `${baseFamily}-Regular`,
italic: `${baseFamily}-Italic`,
medium: `${baseFamily}-Medium`,
'italic-medium': `${baseFamily}-MediumItalic`,
black: `${baseFamily}-Black`,
'italic-black': `${baseFamily}-BlackItalic`,
bold: `${baseFamily}-Bold`,
'italic-bold': `${baseFamily}-BoldItalic`,
}
}

0 comments on commit 5e09231

Please sign in to comment.