Skip to content

Commit 56d3505

Browse files
committed
fix(typography): preserve original font sizes
1 parent 4d2a63c commit 56d3505

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/plugins/v4/typography.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@ import { findClassNodes } from '../../helpers'
44
const breakpoints = ['sm', 'md', 'lg', 'xl', 'xxl'] as const
55
const replacements: Record<string, string> = {
66
'h1': '-display-large',
7-
'h2': '-display-medium',
8-
'h3': '-display-small',
7+
'h2': '-display-large',
8+
'h3': '-display-medium',
99
'h4': '-headline-large',
10-
'h5': '-headline-medium',
11-
'h6': '-headline-small',
10+
'h5': '-headline-small',
11+
'h6': '-title-large',
1212
'subtitle-1': '-body-large',
13-
'subtitle-2': '-label-large',
13+
'subtitle-2': '-title-small',
1414
'body-1': '-body-large',
1515
'body-2': '-body-medium',
1616
'caption': '-body-small',
1717
'button': '-label-large',
18-
'overline': '-label-small',
18+
'overline': '-label-medium',
1919
}
2020

2121
const matcher = String.raw`text(-(?:${breakpoints.join('|')}))?-(${Object.keys(replacements).join('|')})`

0 commit comments

Comments
 (0)