@atb-as/theme 15.0.0 → 15.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [15.0.1](https://github.com/AtB-AS/design-system/compare/theme@v15.0.0...theme@v15.0.1) (2025-12-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * explicitly set fontWeight for regular text ([#366](https://github.com/AtB-AS/design-system/issues/366)) ([7c862cf](https://github.com/AtB-AS/design-system/commit/7c862cf6c469fd4426912dd52283a84412c1dd98))
9
+
3
10
  ## [15.0.0](https://github.com/AtB-AS/design-system/compare/theme@v14.4.0...theme@v15.0.0) (2025-11-04)
4
11
 
5
12
 
@@ -9,6 +9,7 @@
9
9
  --baseTypo-body__m-fontSize: 1rem;
10
10
  --baseTypo-body__m-lineHeight: 1.25rem;
11
11
  --baseTypo-body__m-letterSpacing: 0.00625rem;
12
+ --baseTypo-body__m-fontWeight: 400;
12
13
 
13
14
  /* Definitions for body__m__strong */
14
15
  --baseTypo-body__m__strong-fontSize: 1rem;
@@ -21,17 +22,20 @@
21
22
  --baseTypo-body__m__underline-lineHeight: 1.25rem;
22
23
  --baseTypo-body__m__underline-letterSpacing: 0.00625rem;
23
24
  --baseTypo-body__m__underline-textDecorationLine: underline;
25
+ --baseTypo-body__m__underline-fontWeight: 400;
24
26
 
25
27
  /* Definitions for body__m__strike */
26
28
  --baseTypo-body__m__strike-fontSize: 1rem;
27
29
  --baseTypo-body__m__strike-lineHeight: 1.25rem;
28
30
  --baseTypo-body__m__strike-letterSpacing: 0.00625rem;
29
31
  --baseTypo-body__m__strike-textDecorationLine: line-through;
32
+ --baseTypo-body__m__strike-fontWeight: 400;
30
33
 
31
34
  /* Definitions for body__s */
32
35
  --baseTypo-body__s-fontSize: 0.875rem;
33
36
  --baseTypo-body__s-lineHeight: 1.125rem;
34
37
  --baseTypo-body__s-letterSpacing: 0.015625rem;
38
+ --baseTypo-body__s-fontWeight: 400;
35
39
 
36
40
  /* Definitions for body__s__strong */
37
41
  --baseTypo-body__s__strong-fontSize: 0.875rem;
@@ -43,12 +47,14 @@
43
47
  --baseTypo-body__xs-fontSize: 0.75rem;
44
48
  --baseTypo-body__xs-lineHeight: 1rem;
45
49
  --baseTypo-body__xs-letterSpacing: 0.01875rem;
50
+ --baseTypo-body__xs-fontWeight: 400;
46
51
 
47
52
  /* Definitions for body__xs__strike */
48
53
  --baseTypo-body__xs__strike-fontSize: 0.75rem;
49
54
  --baseTypo-body__xs__strike-lineHeight: 1rem;
50
55
  --baseTypo-body__xs__strike-letterSpacing: 0.01875rem;
51
56
  --baseTypo-body__xs__strike-textDecorationLine: line-through;
57
+ --baseTypo-body__xs__strike-fontWeight: 400;
52
58
 
53
59
  /* Definitions for heading__3xl */
54
60
  --baseTypo-heading__3xl-fontSize: 2.25rem;
@@ -109,6 +115,7 @@ html {
109
115
  font-size: var(--baseTypo-body__m-fontSize, 1rem);
110
116
  line-height: var(--baseTypo-body__m-lineHeight, 1.25rem);
111
117
  letter-spacing: var(--baseTypo-body__m-letterSpacing, 0.00625rem);
118
+ font-weight: var(--baseTypo-body__m-fontWeight, 400);
112
119
  }
113
120
  .typo-body__m__strong {
114
121
  font-size: var(--baseTypo-body__m__strong-fontSize, 1rem);
@@ -121,17 +128,20 @@ html {
121
128
  line-height: var(--baseTypo-body__m__underline-lineHeight, 1.25rem);
122
129
  letter-spacing: var(--baseTypo-body__m__underline-letterSpacing, 0.00625rem);
123
130
  text-decoration: var(--baseTypo-body__m__underline-textDecorationLine, underline);
131
+ font-weight: var(--baseTypo-body__m__underline-fontWeight, 400);
124
132
  }
125
133
  .typo-body__m__strike {
126
134
  font-size: var(--baseTypo-body__m__strike-fontSize, 1rem);
127
135
  line-height: var(--baseTypo-body__m__strike-lineHeight, 1.25rem);
128
136
  letter-spacing: var(--baseTypo-body__m__strike-letterSpacing, 0.00625rem);
129
137
  text-decoration: var(--baseTypo-body__m__strike-textDecorationLine, line-through);
138
+ font-weight: var(--baseTypo-body__m__strike-fontWeight, 400);
130
139
  }
131
140
  .typo-body__s {
132
141
  font-size: var(--baseTypo-body__s-fontSize, 0.875rem);
133
142
  line-height: var(--baseTypo-body__s-lineHeight, 1.125rem);
134
143
  letter-spacing: var(--baseTypo-body__s-letterSpacing, 0.015625rem);
144
+ font-weight: var(--baseTypo-body__s-fontWeight, 400);
135
145
  }
136
146
  .typo-body__s__strong {
137
147
  font-size: var(--baseTypo-body__s__strong-fontSize, 0.875rem);
@@ -143,12 +153,14 @@ html {
143
153
  font-size: var(--baseTypo-body__xs-fontSize, 0.75rem);
144
154
  line-height: var(--baseTypo-body__xs-lineHeight, 1rem);
145
155
  letter-spacing: var(--baseTypo-body__xs-letterSpacing, 0.01875rem);
156
+ font-weight: var(--baseTypo-body__xs-fontWeight, 400);
146
157
  }
147
158
  .typo-body__xs__strike {
148
159
  font-size: var(--baseTypo-body__xs__strike-fontSize, 0.75rem);
149
160
  line-height: var(--baseTypo-body__xs__strike-lineHeight, 1rem);
150
161
  letter-spacing: var(--baseTypo-body__xs__strike-letterSpacing, 0.01875rem);
151
162
  text-decoration: var(--baseTypo-body__xs__strike-textDecorationLine, line-through);
163
+ font-weight: var(--baseTypo-body__xs__strike-fontWeight, 400);
152
164
  }
153
165
  .typo-heading__3xl {
154
166
  font-size: var(--baseTypo-heading__3xl-fontSize, 2.25rem);
@@ -9,6 +9,7 @@
9
9
  --baseTypo-body__m-fontSize: 1rem;
10
10
  --baseTypo-body__m-lineHeight: 1.25rem;
11
11
  --baseTypo-body__m-letterSpacing: 0.00625rem;
12
+ --baseTypo-body__m-fontWeight: 400;
12
13
 
13
14
  /* Definitions for body__m__strong */
14
15
  --baseTypo-body__m__strong-fontSize: 1rem;
@@ -21,17 +22,20 @@
21
22
  --baseTypo-body__m__underline-lineHeight: 1.25rem;
22
23
  --baseTypo-body__m__underline-letterSpacing: 0.00625rem;
23
24
  --baseTypo-body__m__underline-textDecorationLine: underline;
25
+ --baseTypo-body__m__underline-fontWeight: 400;
24
26
 
25
27
  /* Definitions for body__m__strike */
26
28
  --baseTypo-body__m__strike-fontSize: 1rem;
27
29
  --baseTypo-body__m__strike-lineHeight: 1.25rem;
28
30
  --baseTypo-body__m__strike-letterSpacing: 0.00625rem;
29
31
  --baseTypo-body__m__strike-textDecorationLine: line-through;
32
+ --baseTypo-body__m__strike-fontWeight: 400;
30
33
 
31
34
  /* Definitions for body__s */
32
35
  --baseTypo-body__s-fontSize: 0.875rem;
33
36
  --baseTypo-body__s-lineHeight: 1.125rem;
34
37
  --baseTypo-body__s-letterSpacing: 0.015625rem;
38
+ --baseTypo-body__s-fontWeight: 400;
35
39
 
36
40
  /* Definitions for body__s__strong */
37
41
  --baseTypo-body__s__strong-fontSize: 0.875rem;
@@ -43,12 +47,14 @@
43
47
  --baseTypo-body__xs-fontSize: 0.75rem;
44
48
  --baseTypo-body__xs-lineHeight: 1rem;
45
49
  --baseTypo-body__xs-letterSpacing: 0.01875rem;
50
+ --baseTypo-body__xs-fontWeight: 400;
46
51
 
47
52
  /* Definitions for body__xs__strike */
48
53
  --baseTypo-body__xs__strike-fontSize: 0.75rem;
49
54
  --baseTypo-body__xs__strike-lineHeight: 1rem;
50
55
  --baseTypo-body__xs__strike-letterSpacing: 0.01875rem;
51
56
  --baseTypo-body__xs__strike-textDecorationLine: line-through;
57
+ --baseTypo-body__xs__strike-fontWeight: 400;
52
58
 
53
59
  /* Definitions for heading__3xl */
54
60
  --baseTypo-heading__3xl-fontSize: 2.25rem;
@@ -109,6 +115,7 @@
109
115
  font-size: var(--baseTypo-body__m-fontSize, 1rem);
110
116
  line-height: var(--baseTypo-body__m-lineHeight, 1.25rem);
111
117
  letter-spacing: var(--baseTypo-body__m-letterSpacing, 0.00625rem);
118
+ font-weight: var(--baseTypo-body__m-fontWeight, 400);
112
119
  }
113
120
  .typo-body__m__strong {
114
121
  font-size: var(--baseTypo-body__m__strong-fontSize, 1rem);
@@ -121,17 +128,20 @@
121
128
  line-height: var(--baseTypo-body__m__underline-lineHeight, 1.25rem);
122
129
  letter-spacing: var(--baseTypo-body__m__underline-letterSpacing, 0.00625rem);
123
130
  text-decoration: var(--baseTypo-body__m__underline-textDecorationLine, underline);
131
+ font-weight: var(--baseTypo-body__m__underline-fontWeight, 400);
124
132
  }
125
133
  .typo-body__m__strike {
126
134
  font-size: var(--baseTypo-body__m__strike-fontSize, 1rem);
127
135
  line-height: var(--baseTypo-body__m__strike-lineHeight, 1.25rem);
128
136
  letter-spacing: var(--baseTypo-body__m__strike-letterSpacing, 0.00625rem);
129
137
  text-decoration: var(--baseTypo-body__m__strike-textDecorationLine, line-through);
138
+ font-weight: var(--baseTypo-body__m__strike-fontWeight, 400);
130
139
  }
131
140
  .typo-body__s {
132
141
  font-size: var(--baseTypo-body__s-fontSize, 0.875rem);
133
142
  line-height: var(--baseTypo-body__s-lineHeight, 1.125rem);
134
143
  letter-spacing: var(--baseTypo-body__s-letterSpacing, 0.015625rem);
144
+ font-weight: var(--baseTypo-body__s-fontWeight, 400);
135
145
  }
136
146
  .typo-body__s__strong {
137
147
  font-size: var(--baseTypo-body__s__strong-fontSize, 0.875rem);
@@ -143,12 +153,14 @@
143
153
  font-size: var(--baseTypo-body__xs-fontSize, 0.75rem);
144
154
  line-height: var(--baseTypo-body__xs-lineHeight, 1rem);
145
155
  letter-spacing: var(--baseTypo-body__xs-letterSpacing, 0.01875rem);
156
+ font-weight: var(--baseTypo-body__xs-fontWeight, 400);
146
157
  }
147
158
  .typo-body__xs__strike {
148
159
  font-size: var(--baseTypo-body__xs__strike-fontSize, 0.75rem);
149
160
  line-height: var(--baseTypo-body__xs__strike-lineHeight, 1rem);
150
161
  letter-spacing: var(--baseTypo-body__xs__strike-letterSpacing, 0.01875rem);
151
162
  text-decoration: var(--baseTypo-body__xs__strike-textDecorationLine, line-through);
163
+ font-weight: var(--baseTypo-body__xs__strike-fontWeight, 400);
152
164
  }
153
165
  .typo-heading__3xl {
154
166
  font-size: var(--baseTypo-heading__3xl-fontSize, 2.25rem);
@@ -12,6 +12,7 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.androidTextTypeStyles = exports.androidFontData = void 0;
15
+ var REGULAR_WEIGHT = '400';
15
16
  var MEDIUM_WEIGHT = '500';
16
17
  var SEMIBOLD_WEIGHT = '600';
17
18
  var xSmallBase = {
@@ -56,14 +57,14 @@ exports.androidFontData = {
56
57
  },
57
58
  };
58
59
  exports.androidTextTypeStyles = {
59
- body__m: __assign({}, mediumBase),
60
+ body__m: __assign(__assign({}, mediumBase), { fontWeight: REGULAR_WEIGHT }),
60
61
  body__m__strong: __assign(__assign({}, mediumBase), { fontWeight: MEDIUM_WEIGHT }),
61
- body__m__underline: __assign(__assign({}, mediumBase), { textDecorationLine: 'underline' }),
62
- body__m__strike: __assign(__assign({}, mediumBase), { textDecorationLine: 'line-through' }),
63
- body__s: __assign({}, smallBase),
62
+ body__m__underline: __assign(__assign({}, mediumBase), { textDecorationLine: 'underline', fontWeight: REGULAR_WEIGHT }),
63
+ body__m__strike: __assign(__assign({}, mediumBase), { textDecorationLine: 'line-through', fontWeight: REGULAR_WEIGHT }),
64
+ body__s: __assign(__assign({}, smallBase), { fontWeight: REGULAR_WEIGHT }),
64
65
  body__s__strong: __assign(__assign({}, smallBase), { fontWeight: MEDIUM_WEIGHT }),
65
- body__xs: __assign({}, xSmallBase),
66
- body__xs__strike: __assign(__assign({}, xSmallBase), { textDecorationLine: 'line-through' }),
66
+ body__xs: __assign(__assign({}, xSmallBase), { fontWeight: REGULAR_WEIGHT }),
67
+ body__xs__strike: __assign(__assign({}, xSmallBase), { textDecorationLine: 'line-through', fontWeight: REGULAR_WEIGHT }),
67
68
  heading__3xl: __assign(__assign({}, xxxLargeBase), { fontWeight: SEMIBOLD_WEIGHT }),
68
69
  heading__2xl: __assign(__assign({}, xxLargeBase), { fontWeight: SEMIBOLD_WEIGHT }),
69
70
  heading__xl: __assign(__assign({}, xLargeBase), { fontWeight: SEMIBOLD_WEIGHT }),
@@ -1 +1 @@
1
- {"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,aAAa,GAAG,KAAK,CAAC;AAC5B,IAAM,eAAe,GAAG,KAAK,CAAC;AAE9B,IAAM,UAAU,GAAc;IAC5B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,IAAM,UAAU,GAAc;IAC5B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,UAAU,GAAc;IAC5B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,WAAW,GAAc;IAC7B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,YAAY,GAAc;IAC9B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AAEW,QAAA,eAAe,GAAa;IACvC,IAAI,EAAE;QACJ,GAAG,EAAE,+EAA+E;QACpF,UAAU,EAAE,sBAAsB;KACnC;CACF,CAAC;AAEW,QAAA,qBAAqB,GAAmB;IACnD,OAAO,eACF,UAAU,CACd;IACD,eAAe,wBACV,UAAU,KACb,UAAU,EAAE,aAAa,GAC1B;IACD,kBAAkB,wBACb,UAAU,KACb,kBAAkB,EAAE,WAAW,GAChC;IACD,eAAe,wBACV,UAAU,KACb,kBAAkB,EAAE,cAAc,GACnC;IACD,OAAO,eACF,SAAS,CACb;IACD,eAAe,wBACV,SAAS,KACZ,UAAU,EAAE,aAAa,GAC1B;IACD,QAAQ,eACH,UAAU,CACd;IACD,gBAAgB,wBACX,UAAU,KACb,kBAAkB,EAAE,cAAc,GACnC;IACD,YAAY,wBACP,YAAY,KACf,UAAU,EAAE,eAAe,GAC5B;IACD,YAAY,wBACP,WAAW,KACd,UAAU,EAAE,eAAe,GAC5B;IACD,WAAW,wBACN,UAAU,KACb,UAAU,EAAE,eAAe,GAC5B;IACD,UAAU,wBACL,SAAS,KACZ,UAAU,EAAE,eAAe,GAC5B;IACD,UAAU,wBACL,UAAU,KACb,UAAU,EAAE,eAAe,GAC5B;IACD,UAAU,wBACL,SAAS,KACZ,UAAU,EAAE,eAAe,GAC5B;IACD,WAAW,wBACN,UAAU,KACb,UAAU,EAAE,eAAe,GAC5B;CACF,CAAC"}
1
+ {"version":3,"file":"android.js","sourceRoot":"","sources":["../../src/typography/android.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,IAAM,cAAc,GAAG,KAAK,CAAC;AAC7B,IAAM,aAAa,GAAG,KAAK,CAAC;AAC5B,IAAM,eAAe,GAAG,KAAK,CAAC;AAE9B,IAAM,UAAU,GAAc;IAC5B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,IAAI;CACpB,CAAC;AACF,IAAM,UAAU,GAAc;IAC5B,QAAQ,EAAE,EAAE;IACZ,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,GAAG;CACnB,CAAC;AACF,IAAM,SAAS,GAAc;IAC3B,QAAQ,EAAE,EAAE;I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AE,eAAe,GAC5B;IACD,UAAU,wBACL,UAAU,KACb,UAAU,EAAE,eAAe,GAC5B;IACD,UAAU,wBACL,SAAS,KACZ,UAAU,EAAE,eAAe,GAC5B;IACD,WAAW,wBACN,UAAU,KACb,UAAU,EAAE,eAAe,GAC5B;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atb-as/theme",
3
- "version": "15.0.0",
3
+ "version": "15.0.1",
4
4
  "private": false,
5
5
  "description": "AtB Design System Colors",
6
6
  "license": "EUPL-1.2",