Skip to content

Commit 2ad2250

Browse files
authored
Merge pull request #1062 from lumapps/chore/add-missing-design-token-for-font-weight
chore(design-tokens): add font-weight medium
2 parents 83b1ab2 + 8681dab commit 2ad2250

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Add new design token `medium` for `font-weight`.
13+
1014
### Fixed
1115

1216
- Tooltip: fixed tooltip closing when mouse is hovering the tooltip text.

packages/lumx-core/src/css/design-tokens.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Do not edit directly
5-
* Generated on Fri, 01 Dec 2023 09:07:37 GMT
5+
* Generated on Thu, 04 Jan 2024 13:59:14 GMT
66
*/
77

88
:root {
@@ -467,6 +467,7 @@
467467
--lumx-spacing-unit-huge: 24px;
468468
--lumx-typography-font-family: "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif";
469469
--lumx-typography-font-weight-regular: 400;
470+
--lumx-typography-font-weight-medium: 500;
470471
--lumx-typography-font-weight-bold: 700;
471472
--lumx-typography-font-weight-light: 300;
472473
--lumx-typography-interface-display1-font-size: 34px;

packages/lumx-core/src/js/constants/design-tokens.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Do not edit directly
3-
* Generated on Fri, 01 Dec 2023 09:07:37 GMT
3+
* Generated on Thu, 04 Jan 2024 13:59:14 GMT
44
*/
55

66
export const DESIGN_TOKENS = {
@@ -2041,7 +2041,12 @@ export const DESIGN_TOKENS = {
20412041
value:
20422042
"'-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'sans-serif'",
20432043
},
2044-
'font-weight': { regular: { value: '400' }, bold: { value: '700' }, light: { value: '300' } },
2044+
'font-weight': {
2045+
regular: { value: '400' },
2046+
medium: { value: '500' },
2047+
bold: { value: '700' },
2048+
light: { value: '300' },
2049+
},
20452050
interface: {
20462051
display1: {
20472052
'font-size': { value: '34px' },

packages/lumx-core/src/scss/_design-tokens.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* Do not edit directly
5-
* Generated on Fri, 01 Dec 2023 09:07:37 GMT
5+
* Generated on Thu, 04 Jan 2024 13:59:14 GMT
66
*/
77

88
$lumx-button-height: 36px !default;
@@ -466,6 +466,7 @@ $lumx-spacing-unit-big: 16px !default;
466466
$lumx-spacing-unit-huge: 24px !default;
467467
$lumx-typography-font-family: "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif" !default;
468468
$lumx-typography-font-weight-regular: 400 !default;
469+
$lumx-typography-font-weight-medium: 500 !default;
469470
$lumx-typography-font-weight-bold: 700 !default;
470471
$lumx-typography-font-weight-light: 300 !default;
471472
$lumx-typography-interface-display1-font-size: 34px !default;
@@ -1514,6 +1515,7 @@ $lumx-design-tokens: (
15141515
"font-family": $lumx-typography-font-family,
15151516
"font-weight": (
15161517
"regular": $lumx-typography-font-weight-regular,
1518+
"medium": $lumx-typography-font-weight-medium,
15171519
"bold": $lumx-typography-font-weight-bold,
15181520
"light": $lumx-typography-font-weight-light
15191521
),

packages/lumx-core/style-dictionary/properties/core/typography.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
},
66
"font-weight": {
77
"regular": { "value": "400" },
8+
"medium": { "value": "500" },
89
"bold": { "value": "700" },
910
"light": { "value": "300" }
1011
},

0 commit comments

Comments
 (0)