summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/font-config.ts
blob: 8b19609a46fe9183a258dea2b8fe339a9e4427cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import {
	Inter,
	Roboto,
	Open_Sans,
	Playfair_Display,
	Comic_Neue,
} from "next/font/google";

// Configure all fonts
const inter = Inter({ subsets: ["latin"] });
const roboto = Roboto({ subsets: ["latin"], weight: ["400", "700"] });
const openSans = Open_Sans({ subsets: ["latin"] });
const playfairDisplay = Playfair_Display({ subsets: ["latin"] });
const comicNeue = Comic_Neue({ subsets: ["latin"], weight: ["400", "700"] });

// Export font class mapping for use in components
export const FONT_CLASS_MAP = {
	Inter: inter.className,
	Roboto: roboto.className,
	"Open Sans": openSans.className,
	"Playfair Display": playfairDisplay.className,
	"Comic Neue": comicNeue.className,
	Arial: "",
	Helvetica: "",
	"Times New Roman": "",
	Georgia: "",
} as const;

// Export individual fonts for use in layout
export const fonts = {
	inter,
	roboto,
	openSans,
	playfairDisplay,
	comicNeue,
};

// Default font for the body
export const defaultFont = inter;