Skip to content

Commit 4ce8fec

Browse files
committed
🤖 fix: Update font paths in globals.css for new folder structure
Font paths were relative to src/styles/globals.css (../../node_modules). After moving to src/browser/styles/globals.css, paths need to be ../../../node_modules. This fixes fonts not loading in Storybook/Chromatic, which was causing 82 visual regression differences.
1 parent 963e39d commit 4ce8fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
/* Geist Font Declarations */
55
@font-face {
66
font-family: "Geist";
7-
src: url("../../node_modules/geist/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
7+
src: url("../../../node_modules/geist/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
88
font-weight: 100 900;
99
font-style: normal;
1010
font-display: swap;
1111
}
1212

1313
@font-face {
1414
font-family: "Geist Mono";
15-
src: url("../../node_modules/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
15+
src: url("../../../node_modules/geist/dist/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
1616
font-weight: 100 900;
1717
font-style: normal;
1818
font-display: swap;

0 commit comments

Comments
 (0)