Skip to content

Commit 4c4af83

Browse files
authored
fix(eds-tokens): correct 5xl tracking-wide alias in UI Body mode (#4885)
The Font family / UI Body mode aliased 5xl/tracking-wide to {typography.ui-body.5xl.font-weight-lighter} instead of {typography.ui-body.5xl.tracking-wide}, producing a wide-tracking value of 300 (the lighter font weight) instead of the intended ~3.52. Every other size already aliased correctly. Fix made in Figma; the synced JSON now resolves to the right upstream variable. Regenerated typography CSS and TS outputs. Closes #4876
1 parent c55baaa commit 4c4af83

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/eds-tokens/build/css/typography/font-family-ui.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
--eds-font-family-size-5xl-font-size: var(--eds-typography-ui-body-5xl-font-size);
6464
--eds-font-family-size-5xl-tracking-tight: var(--eds-typography-ui-body-5xl-tracking-tight);
6565
--eds-font-family-size-5xl-tracking-normal: var(--eds-typography-ui-body-5xl-tracking-normal);
66-
--eds-font-family-size-5xl-tracking-wide: var(--eds-typography-ui-body-5xl-font-weight-lighter);
66+
--eds-font-family-size-5xl-tracking-wide: var(--eds-typography-ui-body-5xl-tracking-wide);
6767
--eds-font-family-size-5xl-font-weight-lighter: var(--eds-typography-ui-body-5xl-font-weight-lighter);
6868
--eds-font-family-size-5xl-font-weight-normal: var(--eds-typography-ui-body-5xl-font-weight-normal);
6969
--eds-font-family-size-5xl-font-weight-bolder: var(--eds-typography-ui-body-5xl-font-weight-bolder);

packages/eds-tokens/build/css/variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@
13191319
--eds-font-family-size-5xl-font-size: var(--eds-typography-ui-body-5xl-font-size);
13201320
--eds-font-family-size-5xl-tracking-tight: var(--eds-typography-ui-body-5xl-tracking-tight);
13211321
--eds-font-family-size-5xl-tracking-normal: var(--eds-typography-ui-body-5xl-tracking-normal);
1322-
--eds-font-family-size-5xl-tracking-wide: var(--eds-typography-ui-body-5xl-font-weight-lighter);
1322+
--eds-font-family-size-5xl-tracking-wide: var(--eds-typography-ui-body-5xl-tracking-wide);
13231323
--eds-font-family-size-5xl-font-weight-lighter: var(--eds-typography-ui-body-5xl-font-weight-lighter);
13241324
--eds-font-family-size-5xl-font-weight-normal: var(--eds-typography-ui-body-5xl-font-weight-normal);
13251325
--eds-font-family-size-5xl-font-weight-bolder: var(--eds-typography-ui-body-5xl-font-weight-bolder);

packages/eds-tokens/build/css/variables.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/eds-tokens/build/ts/typography/font-family-ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export const typography = {
100100
fontSize: 32,
101101
trackingTight: -3.5199999809265137,
102102
trackingNormal: 0,
103-
trackingWide: 300,
103+
trackingWide: 3.5199999809265137,
104104
fontWeightLighter: 300,
105105
fontWeightNormal: 400,
106106
fontWeightBolder: 500,

packages/eds-tokens/build/ts/typography/font-size-5xl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const typography = {
1313
gapVertical: 20,
1414
trackingTight: -3.5199999809265137,
1515
trackingNormal: 0,
16-
trackingWide: 300,
16+
trackingWide: 3.5199999809265137,
1717
fontWeightLighter: 300,
1818
fontWeightNormal: 400,
1919
fontWeightBolder: 500,

packages/eds-tokens/tokens/FQQqyumcpPQoiFRCjdS9GM/🅰️ Font family.UI Body.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@
12731273
},
12741274
"tracking-wide": {
12751275
"$type": "number",
1276-
"$value": "{typography.ui-body.5xl.font-weight-lighter}",
1276+
"$value": "{typography.ui-body.5xl.tracking-wide}",
12771277
"$description": "",
12781278
"$extensions": {
12791279
"com.figma": {

0 commit comments

Comments
 (0)