Skip to content

Commit 7e2a837

Browse files
fkGatsbyJS Bot
authored and
GatsbyJS Bot
committed
fix(www): fontSizes tokens in typography.js 🤦‍♂️ (#14869)
1 parent 18ebf35 commit 7e2a837

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

www/src/utils/typography.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Typography from "typography"
22
import CodePlugin from "typography-plugin-code"
33
import {
44
space,
5-
fontSizes,
5+
fontSizes as fontSizeTokens,
66
colors,
77
transition,
88
radii,
@@ -13,6 +13,8 @@ import {
1313
fontWeights,
1414
} from "./tokens"
1515

16+
const fontSizes = fontSizeTokens.map(token => `${token / 16}rem`)
17+
1618
const _options = {
1719
bodyFontFamily: fonts.system,
1820
headerFontFamily: fonts.header,

0 commit comments

Comments
 (0)