-
Notifications
You must be signed in to change notification settings - Fork 102
/
fonts.ts
92 lines (85 loc) · 1.88 KB
/
fonts.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { Inter, EB_Garamond } from 'next/font/google'
import localFont from 'next/font/local'
const inter = Inter({
weight: 'variable',
variable: '--ens-sans-fb',
subsets: ['cyrillic'],
})
const ebGaramond = EB_Garamond({
weight: 'variable',
variable: '--ens-serif-fb',
subsets: ['cyrillic'],
})
const ABCMonumentGrotesk = localFont({
src: './fonts/variable.woff2',
variable: '--ens-sans',
fallback: ['var(--ens-sans-fb)', 'sans-serif'],
})
const ABCMonumentGroteskMono = localFont({
src: [
{
weight: '400',
path: './fonts/mono/regular.woff2',
style: 'normal',
},
{
weight: '400',
path: './fonts/mono/italic.woff2',
style: 'italic',
},
{
weight: '500',
path: './fonts/mono/medium.woff2',
style: 'normal',
},
{
weight: '500',
path: './fonts/mono/medium-italic.woff2',
style: 'italic',
},
],
variable: '--ens-mono',
})
const ABCMonumentGroteskSemiMono = localFont({
src: [
{
weight: '400',
path: './fonts/semi-mono/regular.woff2',
style: 'normal',
},
{
weight: '400',
path: './fonts/semi-mono/italic.woff2',
style: 'italic',
},
{
weight: '500',
path: './fonts/semi-mono/medium.woff2',
style: 'normal',
},
{
weight: '500',
path: './fonts/semi-mono/medium-italic.woff2',
style: 'italic',
},
],
variable: '--ens-semi-mono',
fallback: ['monospace'],
})
const ABCMarist = localFont({
src: [
{
weight: '400',
path: './fonts/serif/regular.woff2',
style: 'normal',
},
{
weight: '400',
path: './fonts/serif/italic.woff2',
style: 'italic',
},
],
variable: '--ens-serif',
fallback: ['var(--ens-serif-fb)', 'serif'],
})
export { inter, ebGaramond, ABCMarist, ABCMonumentGrotesk, ABCMonumentGroteskSemiMono, ABCMonumentGroteskMono }