Skip to content

Commit f88feb2

Browse files
committed
chore: cherry-pick Add calc to line heights (#7350)
1 parent c576e5b commit f88feb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ui/src/foundations/typography.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const fontWeights = Object.freeze({
99

1010
const lineHeights = Object.freeze({
1111
normal: 'normal',
12-
extraSmall: '1.33333',
13-
small: '1.38462',
14-
medium: '1.41176',
15-
large: '1.45455',
12+
extraSmall: 'calc(16 / 12)', // = 1.33333
13+
small: 'calc(18 / 13)', // = 1.38462
14+
medium: 'calc(24 / 17)', // = 1.41176
15+
large: 'calc(16 / 11)', // = 1.45455
1616
} as const);
1717

1818
const letterSpacings = Object.freeze({

0 commit comments

Comments
 (0)