Skip to content

Commit 157d561

Browse files
authored
fix: update typography tokens to reflect the new figma values (#3049)
1 parent 5dbb1ef commit 157d561

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

.changeset/plenty-jokes-smile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@utrecht/design-tokens": patch
3+
---
4+
5+
Corrected the typography token values and the heading token values to make the headings visually distinctive.

proprietary/design-tokens/src/brand/utrecht/typography.tokens.json

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,33 @@
55
"font-family": { "value": "\"Noto Sans Variable\", \"Arial\", sans-serif" }
66
},
77
"scale": {
8-
"sm": { "font-size": { "value": "14px", "comment": "14px" } },
9-
"md": { "font-size": { "value": "16px", "comment": "16px" } },
10-
"lg": { "font-size": { "value": "18px", "comment": "18px" } },
11-
"xl": { "font-size": { "value": "20px", "comment": "20px" } },
12-
"2xl": { "font-size": { "value": "22px", "comment": "22px" } },
13-
"3xl": { "font-size": { "value": "24px", "comment": "24px" } },
14-
"4xl": { "font-size": { "value": "32px", "comment": "32px" } }
8+
"sm": { "font-size": { "value": "0.875rem", "comment": "14px" } },
9+
"md": { "font-size": { "value": "1rem", "comment": "16px" } },
10+
"lg": { "font-size": { "value": "1.125rem", "comment": "18px" } },
11+
"xl": { "font-size": { "value": "1.25rem", "comment": "20px" } },
12+
"2xl": { "font-size": { "value": "1.5rem", "comment": "24px" } },
13+
"3xl": { "font-size": { "value": "2rem", "comment": "32px" } },
14+
"4xl": { "font-size": { "value": "2.5rem", "comment": "40px" } }
1515
},
1616
"weight-scale": {
17-
"bold": { "font-weight": { "value": "700" } },
1817
"normal": { "font-weight": { "value": "400" } },
19-
"semibold": { "font-weight": { "value": "600" } }
18+
"medium": { "font-weight": { "value": "500" } },
19+
"semibold": { "font-weight": { "value": "600" } },
20+
"bold": { "font-weight": { "value": "700" } }
2021
},
2122
"font-style": {
2223
"normal": { "value": "normal" },
2324
"inherit": { "value": "inherit" }
2425
},
2526
"line-height": {
26-
"xs": { "value": "1" },
27-
"sm": { "value": "1.25" },
27+
"xs": { "value": "1.5" },
28+
"sm": { "value": "1.5" },
2829
"md": { "value": "1.5" },
29-
"lg": { "value": "2" }
30+
"lg": { "value": "1.25" },
31+
"xl": { "value": "1.25" },
32+
"2xl": { "value": "1.25" },
33+
"3xl": { "value": "1.25" },
34+
"4xl": { "value": "1.1" }
3035
}
3136
}
3237
}

proprietary/design-tokens/src/component/nl/heading.tokens.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,35 @@
44
"level-1": {
55
"color": {},
66
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
7-
"font-size": { "value": "{utrecht.typography.scale.4xl.font-size}" },
7+
"font-size": { "value": "{utrecht.typography.scale.3xl.font-size}" },
88
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
9-
"line-height": { "value": "{utrecht.typography.line-height.sm}" }
9+
"line-height": { "value": "{utrecht.typography.line-height.3xl}" }
1010
},
1111
"level-2": {
1212
"color": {},
1313
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
14-
"font-size": { "value": "{utrecht.typography.scale.xl.font-size}" },
14+
"font-size": { "value": "{utrecht.typography.scale.2xl.font-size}" },
1515
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
16-
"line-height": { "value": "{utrecht.typography.line-height.sm}" }
16+
"line-height": { "value": "{utrecht.typography.line-height.2xl}" }
1717
},
1818
"level-3": {
1919
"color": {},
2020
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
2121
"font-size": { "value": "{utrecht.typography.scale.xl.font-size}" },
2222
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
23-
"line-height": { "value": "{utrecht.typography.line-height.sm}" }
23+
"line-height": { "value": "{utrecht.typography.line-height.xl}" }
2424
},
2525
"level-4": {
2626
"color": {},
2727
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
2828
"font-size": { "value": "{utrecht.typography.scale.lg.font-size}" },
2929
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
30-
"line-height": { "value": "{utrecht.typography.line-height.md}" }
30+
"line-height": { "value": "{utrecht.typography.line-height.lg}" }
3131
},
3232
"level-5": {
3333
"color": {},
3434
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
35-
"font-size": { "value": "{utrecht.typography.scale.sm.font-size}" },
35+
"font-size": { "value": "{utrecht.typography.scale.md.font-size}" },
3636
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
3737
"line-height": { "value": "{utrecht.typography.line-height.md}" }
3838
},
@@ -41,7 +41,7 @@
4141
"font-family": { "value": "{utrecht.typography.sans-serif.font-family}" },
4242
"font-size": { "value": "{utrecht.typography.scale.sm.font-size}" },
4343
"font-weight": { "value": "{utrecht.typography.weight-scale.semibold.font-weight}" },
44-
"line-height": { "value": "{utrecht.typography.line-height.md}" }
44+
"line-height": { "value": "{utrecht.typography.line-height.sm}" }
4545
}
4646
}
4747
}

0 commit comments

Comments
 (0)