forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.fonts.ts
29 lines (26 loc) · 1010 Bytes
/
next.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
import { Source_Sans_3, Open_Sans, IBM_Plex_Mono } from 'next/font/google';
// This configures the Next.js Font for Source Sans
// We then export a variable and class name to be used
// within Tailwind (tailwind.config.ts) and Storybook (preview.js)
export const SOURCE_SANS = Source_Sans_3({
weight: ['400', '600'],
display: 'fallback',
subsets: ['latin'],
});
// This configures the Next.js Font for Open Sans
// We then export a variable and class name to be used
// within Tailwind (tailwind.config.ts) and Storybook (preview.js)
export const OPEN_SANS = Open_Sans({
weight: ['300', '400', '600', '700'],
display: 'fallback',
subsets: ['latin'],
variable: '--font-open-sans',
});
// This configures the Next.js Font for IBM Plex Mono
// We then export a variable and class name to be used
// within Tailwind (tailwind.config.ts) and Storybook (preview.js)
export const IBM_PLEX_MONO = IBM_Plex_Mono({
weight: ['400', '600'],
subsets: ['latin'],
variable: '--font-ibm-plex-mono',
});