forked from nodejs/nodejs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.fonts.ts
More file actions
20 lines (18 loc) · 702 Bytes
/
next.fonts.ts
File metadata and controls
20 lines (18 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Open_Sans, IBM_Plex_Mono } from 'next/font/google';
// 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',
});