File tree Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Expand file tree Collapse file tree 2 files changed +22
-9
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import isChromatic from "chromatic/isChromatic"
2
2
import { MotionGlobalConfig } from "framer-motion"
3
+ import { IBM_Plex_Mono , Inter } from "next/font/google"
3
4
import type { Preview } from "@storybook/react"
4
5
5
6
import ThemeProvider from "@/components/ThemeProvider"
@@ -9,11 +10,24 @@ import nextIntl, { baseLocales } from "./next-intl"
9
10
import { withNextThemes } from "./withNextThemes"
10
11
11
12
import "../src/styles/global.css"
12
- import "../src/styles/fonts.css"
13
13
import "../src/styles/docsearch.css"
14
14
15
15
import "@docsearch/css"
16
16
17
+ const inter = Inter ( {
18
+ subsets : [ "latin" ] ,
19
+ display : "swap" ,
20
+ variable : "--font-inter" ,
21
+ preload : true ,
22
+ } )
23
+
24
+ const ibmPlexMono = IBM_Plex_Mono ( {
25
+ subsets : [ "latin" ] ,
26
+ weight : [ "400" ] ,
27
+ display : "swap" ,
28
+ variable : "--font-mono" ,
29
+ } )
30
+
17
31
MotionGlobalConfig . skipAnimations = isChromatic ( )
18
32
19
33
export const breakpointSet : [ token : string , value : string ] [ ] = [
@@ -39,11 +53,13 @@ const preview: Preview = {
39
53
defaultTheme : "light" ,
40
54
} ) ,
41
55
( Story ) => (
42
- < ThemeProvider >
43
- < TooltipProvider >
44
- < Story />
45
- </ TooltipProvider >
46
- </ ThemeProvider >
56
+ < div className = { `${ inter . variable } ${ ibmPlexMono . variable } ` } >
57
+ < ThemeProvider >
58
+ < TooltipProvider >
59
+ < Story />
60
+ </ TooltipProvider >
61
+ </ ThemeProvider >
62
+ </ div >
47
63
) ,
48
64
] ,
49
65
parameters : {
You can’t perform that action at this time.
0 commit comments