-
Notifications
You must be signed in to change notification settings - Fork 6
/
typefaces.tsx
23 lines (21 loc) · 902 Bytes
/
typefaces.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { useFonts } from "yep/hooks/font";
export const Manrope = {
extraLight: "Manrope-ExtraLight",
light: "Manrope-Light",
regular: "Manrope-Regular",
medium: "Manrope-Medium",
semiBold: "Manrope-SemiBold",
bold: "Manrope-Bold",
extraBold: "Manrope-ExtraBold",
};
export function useManrope() {
return useFonts({
[Manrope.bold]: require("yep/assets/fonts/manrope/Manrope-Bold.otf"),
[Manrope.extraBold]: require("yep/assets/fonts/manrope/Manrope-ExtraBold.otf"),
[Manrope.extraLight]: require("yep/assets/fonts/manrope/Manrope-ExtraLight.otf"),
[Manrope.light]: require("yep/assets/fonts/manrope/Manrope-Light.otf"),
[Manrope.medium]: require("yep/assets/fonts/manrope/Manrope-Medium.otf"),
[Manrope.regular]: require("yep/assets/fonts/manrope/Manrope-Regular.otf"),
[Manrope.semiBold]: require("yep/assets/fonts/manrope/Manrope-SemiBold.otf"),
});
}