forked from javayhu/free-directory-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
71 lines (60 loc) · 2.06 KB
/
index.ts
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { Source_Sans_3, Source_Serif_4, Urbanist } from "next/font/google";
// import localFont from "next/font/local";
// https://nextjs.org/docs/app/api-reference/components/font
// https://nextjs.org/docs/app/building-your-application/optimizing/fonts#google-fonts
// CSS and font files are downloaded at build time and self-hosted with the rest of your static assets.
// No requests are sent to Google by the browser.
// export const fontSans = Inter({
// subsets: ["latin"],
// variable: "--font-sans",
// })
// export const fontUrban = Urbanist({
// subsets: ["latin"],
// variable: "--font-urban",
// })
// https://nextjs.org/docs/app/building-your-application/optimizing/fonts#local-fonts
// export const fontCalSans = localFont({
// src: "./CalSans-SemiBold.woff2",
// variable: "--font-heading",
// })
// export const fontInter = Inter({
// subsets: ['latin'],
// variable: '--font-inter',
// display: 'swap',
// })
// export const fontRobotoMono = Roboto_Mono({
// subsets: ['latin'],
// variable: '--font-roboto-mono',
// display: 'swap',
// })
// https://nextjs.org/learn/dashboard-app/optimizing-fonts-images#practice-adding-a-secondary-font
// export const fontLusitana = Lusitana({
// weight: ['400', '700'],
// subsets: ['latin'],
// });
// https://fonts.google.com/specimen/Source+Serif+4
// variable used in app/layout.tsx, then applyed in tailwind.config.ts
export const fontSourceSerif = Source_Serif_4({
subsets: ['latin'],
display: 'swap',
// variable: "--font-source-serif",
variable: "--font-heading",
})
// https://fonts.google.com/specimen/Source+Sans+3
export const fontSourceSans = Source_Sans_3({
subsets: ['latin'],
display: 'swap',
variable: "--font-source-sans",
})
// https://fonts.google.com/specimen/Source+Code+Pro
// export const fontSourceCode = Source_Code_Pro({
// subsets: ['latin'],
// display: 'swap',
// variable: "--font-source-code",
// })
// https://fonts.google.com/specimen/Lato
// export const fontLato = Lato({
// subsets: ['latin'],
// display: 'swap',
// variable: "--font-lato",
// })