Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

useFontFamily.ts

9 lines226 Bytes

1const FONT_FAMILIES = {
2 regular: "DMSans-Regular",
3 medium: "DMSans-Medium",
4 bold: "DMSans-Bold",
5} as const;
6​
7export function useFontFamily(weight: keyof typeof FONT_FAMILIES): string {
8 return FONT_FAMILIES[weight];
9}