@carbon/type 10.13.0 → 10.15.0

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/src/styles.js CHANGED
@@ -13,48 +13,48 @@ import { scale } from './scale';
13
13
  export const caption01 = {
14
14
  fontSize: rem(scale[0]),
15
15
  fontWeight: fontWeights.regular,
16
- lineHeight: rem(16),
16
+ lineHeight: 1.34,
17
17
  letterSpacing: px(0.32),
18
18
  };
19
19
 
20
20
  export const label01 = {
21
21
  fontSize: rem(scale[0]),
22
22
  fontWeight: fontWeights.regular,
23
- lineHeight: rem(16),
23
+ lineHeight: 1.34,
24
24
  letterSpacing: px(0.32),
25
25
  };
26
26
 
27
27
  export const helperText01 = {
28
28
  fontSize: rem(scale[0]),
29
- lineHeight: rem(16),
29
+ lineHeight: 1.34,
30
30
  letterSpacing: px(0.32),
31
31
  };
32
32
 
33
33
  export const bodyShort01 = {
34
34
  fontSize: rem(scale[1]),
35
35
  fontWeight: fontWeights.regular,
36
- lineHeight: rem(18),
36
+ lineHeight: 1.29,
37
37
  letterSpacing: px(0.16),
38
38
  };
39
39
 
40
40
  export const bodyLong01 = {
41
41
  fontSize: rem(scale[1]),
42
42
  fontWeight: fontWeights.regular,
43
- lineHeight: rem(20),
43
+ lineHeight: 1.43,
44
44
  letterSpacing: px(0.16),
45
45
  };
46
46
 
47
47
  export const bodyShort02 = {
48
48
  fontSize: rem(scale[2]),
49
49
  fontWeight: fontWeights.regular,
50
- lineHeight: rem(22),
50
+ lineHeight: 1.375,
51
51
  letterSpacing: 0,
52
52
  };
53
53
 
54
54
  export const bodyLong02 = {
55
55
  fontSize: rem(scale[2]),
56
56
  fontWeight: fontWeights.regular,
57
- lineHeight: rem(24),
57
+ lineHeight: 1.5,
58
58
  letterSpacing: 0,
59
59
  };
60
60
 
@@ -62,7 +62,7 @@ export const code01 = {
62
62
  fontFamily: fontFamilies.mono,
63
63
  fontSize: rem(scale[0]),
64
64
  fontWeight: fontWeights.regular,
65
- lineHeight: rem(16),
65
+ lineHeight: 1.34,
66
66
  letterSpacing: px(0.32),
67
67
  };
68
68
 
@@ -70,14 +70,14 @@ export const code02 = {
70
70
  fontFamily: fontFamilies.mono,
71
71
  fontSize: rem(scale[1]),
72
72
  fontWeight: fontWeights.regular,
73
- lineHeight: rem(20),
73
+ lineHeight: 1.43,
74
74
  letterSpacing: px(0.32),
75
75
  };
76
76
 
77
77
  export const heading01 = {
78
78
  fontSize: rem(scale[1]),
79
79
  fontWeight: fontWeights.semibold,
80
- lineHeight: rem(18),
80
+ lineHeight: 1.29,
81
81
  letterSpacing: px(0.16),
82
82
  };
83
83
 
@@ -86,7 +86,7 @@ export const productiveHeading01 = heading01;
86
86
  export const heading02 = {
87
87
  fontSize: rem(scale[2]),
88
88
  fontWeight: fontWeights.semibold,
89
- lineHeight: rem(22),
89
+ lineHeight: 1.375,
90
90
  letterSpacing: 0,
91
91
  };
92
92
 
@@ -95,57 +95,57 @@ export const productiveHeading02 = heading02;
95
95
  export const productiveHeading03 = {
96
96
  fontSize: rem(scale[4]),
97
97
  fontWeight: fontWeights.regular,
98
- lineHeight: rem(28),
98
+ lineHeight: 1.4,
99
99
  letterSpacing: 0,
100
100
  };
101
101
 
102
102
  export const productiveHeading04 = {
103
103
  fontSize: rem(scale[6]),
104
104
  fontWeight: fontWeights.regular,
105
- lineHeight: rem(36),
105
+ lineHeight: 1.29,
106
106
  letterSpacing: 0,
107
107
  };
108
108
 
109
109
  export const productiveHeading05 = {
110
110
  fontSize: rem(scale[7]),
111
111
  fontWeight: fontWeights.regular,
112
- lineHeight: rem(40),
112
+ lineHeight: 1.25,
113
113
  letterSpacing: 0,
114
114
  };
115
115
 
116
116
  export const productiveHeading06 = {
117
117
  fontSize: rem(scale[9]),
118
118
  fontWeight: fontWeights.light,
119
- lineHeight: rem(50),
119
+ lineHeight: 1.199,
120
120
  letterSpacing: 0,
121
121
  };
122
122
 
123
123
  export const productiveHeading07 = {
124
124
  fontSize: rem(scale[11]),
125
125
  fontWeight: fontWeights.light,
126
- lineHeight: rem(64),
126
+ lineHeight: 1.19,
127
127
  letterSpacing: 0,
128
128
  };
129
129
 
130
130
  export const expressiveHeading01 = {
131
131
  ...heading01,
132
- lineHeight: rem(20),
132
+ lineHeight: 1.25,
133
133
  };
134
134
 
135
135
  export const expressiveHeading02 = {
136
136
  ...heading02,
137
- lineHeight: rem(24),
137
+ lineHeight: 1.5,
138
138
  };
139
139
 
140
140
  export const expressiveHeading03 = {
141
141
  fontSize: rem(scale[4]),
142
142
  fontWeight: fontWeights.regular,
143
- lineHeight: '140%',
143
+ lineHeight: 1.4,
144
144
  letterSpacing: 0,
145
145
  breakpoints: {
146
146
  xlg: {
147
147
  fontSize: rem(scale[4]),
148
- lineHeight: '125%',
148
+ lineHeight: 1.25,
149
149
  },
150
150
  max: {
151
151
  fontSize: rem(scale[5]),
@@ -156,12 +156,12 @@ export const expressiveHeading03 = {
156
156
  export const expressiveHeading04 = {
157
157
  fontSize: rem(scale[6]),
158
158
  fontWeight: fontWeights.regular,
159
- lineHeight: '129%',
159
+ lineHeight: 1.29,
160
160
  letterSpacing: 0,
161
161
  breakpoints: {
162
162
  xlg: {
163
163
  fontSize: rem(scale[6]),
164
- lineHeight: '125%',
164
+ lineHeight: 1.25,
165
165
  },
166
166
  max: {
167
167
  fontSize: rem(scale[7]),
@@ -172,31 +172,30 @@ export const expressiveHeading04 = {
172
172
  export const expressiveHeading05 = {
173
173
  fontSize: rem(scale[7]),
174
174
  fontWeight: fontWeights.regular,
175
- lineHeight: '125%',
175
+ lineHeight: 1.25,
176
176
  letterSpacing: 0,
177
177
  breakpoints: {
178
178
  md: {
179
179
  fontSize: rem(scale[8]),
180
180
  fontWeight: fontWeights.light,
181
- lineHeight: '122%',
181
+ lineHeight: 1.22,
182
182
  letterSpacing: 0,
183
183
  },
184
184
  lg: {
185
185
  fontSize: rem(scale[9]),
186
186
  fontWeight: fontWeights.light,
187
- lineHeight: '119%',
187
+ lineHeight: 1.19,
188
188
  letterSpacing: 0,
189
189
  },
190
190
  xlg: {
191
191
  fontSize: rem(scale[10]),
192
192
  fontWeight: fontWeights.light,
193
- lineHeight: '117%',
193
+ lineHeight: 1.17,
194
194
  letterSpacing: 0,
195
195
  },
196
196
  max: {
197
197
  fontSize: rem(scale[12]),
198
198
  fontWeight: fontWeights.light,
199
- lineHeight: rem(70),
200
199
  letterSpacing: 0,
201
200
  },
202
201
  },
@@ -205,31 +204,30 @@ export const expressiveHeading05 = {
205
204
  export const expressiveHeading06 = {
206
205
  fontSize: rem(scale[7]),
207
206
  fontWeight: fontWeights.semibold,
208
- lineHeight: '125%',
207
+ lineHeight: 1.25,
209
208
  letterSpacing: 0,
210
209
  breakpoints: {
211
210
  md: {
212
211
  fontSize: rem(scale[8]),
213
212
  fontWeight: fontWeights.semibold,
214
- lineHeight: '122%',
213
+ lineHeight: 1.22,
215
214
  letterSpacing: 0,
216
215
  },
217
216
  lg: {
218
217
  fontSize: rem(scale[9]),
219
218
  fontWeight: fontWeights.semibold,
220
- lineHeight: '119%',
219
+ lineHeight: 1.19,
221
220
  letterSpacing: 0,
222
221
  },
223
222
  xlg: {
224
223
  fontSize: rem(scale[10]),
225
224
  fontWeight: fontWeights.semibold,
226
- lineHeight: '117%',
225
+ lineHeight: 1.17,
227
226
  letterSpacing: 0,
228
227
  },
229
228
  max: {
230
229
  fontSize: rem(scale[12]),
231
230
  fontWeight: fontWeights.semibold,
232
- lineHeight: rem(70),
233
231
  letterSpacing: 0,
234
232
  },
235
233
  },
@@ -238,22 +236,22 @@ export const expressiveHeading06 = {
238
236
  export const expressiveParagraph01 = {
239
237
  fontSize: rem(scale[5]),
240
238
  fontWeight: fontWeights.light,
241
- lineHeight: '125%',
239
+ lineHeight: 1.25,
242
240
  letterSpacing: 0,
243
241
  lg: {
244
242
  fontSize: rem(scale[6]),
245
- lineHeight: '129%',
243
+ lineHeight: 1.29,
246
244
  },
247
245
  max: {
248
246
  fontSize: rem(scale[7]),
249
- lineHeight: '125%',
247
+ lineHeight: 1.25,
250
248
  },
251
249
  };
252
250
 
253
251
  export const quotation01 = {
254
252
  fontSize: rem(scale[4]),
255
253
  fontWeight: fontWeights.regular,
256
- lineHeight: '130%',
254
+ lineHeight: 1.3,
257
255
  letterSpacing: 0,
258
256
  breakpoints: {
259
257
  md: {
@@ -264,19 +262,19 @@ export const quotation01 = {
264
262
  lg: {
265
263
  fontSize: rem(scale[5]),
266
264
  fontWeight: fontWeights.regular,
267
- lineHeight: '125%',
265
+ lineHeight: 1.25,
268
266
  letterSpacing: 0,
269
267
  },
270
268
  xlg: {
271
269
  fontSize: rem(scale[6]),
272
270
  fontWeight: fontWeights.regular,
273
- lineHeight: '129%',
271
+ lineHeight: 1.29,
274
272
  letterSpacing: 0,
275
273
  },
276
274
  max: {
277
275
  fontSize: rem(scale[7]),
278
276
  fontWeight: fontWeights.regular,
279
- lineHeight: '125%',
277
+ lineHeight: 1.25,
280
278
  letterSpacing: 0,
281
279
  },
282
280
  },
@@ -285,20 +283,20 @@ export const quotation01 = {
285
283
  export const quotation02 = {
286
284
  fontSize: rem(scale[7]),
287
285
  fontWeight: fontWeights.light,
288
- lineHeight: '125%',
286
+ lineHeight: 1.25,
289
287
  letterSpacing: 0,
290
288
  breakpoints: {
291
289
  md: {
292
290
  fontSize: rem(scale[8]),
293
- lineHeight: '122%',
291
+ lineHeight: 1.22,
294
292
  },
295
293
  lg: {
296
294
  fontSize: rem(scale[9]),
297
- lineHeight: '119%',
295
+ lineHeight: 1.19,
298
296
  },
299
297
  xlg: {
300
298
  fontSize: rem(scale[10]),
301
- lineHeight: '117%',
299
+ lineHeight: 1.17,
302
300
  },
303
301
  max: {
304
302
  fontSize: rem(scale[12]),
@@ -309,7 +307,7 @@ export const quotation02 = {
309
307
  export const display01 = {
310
308
  fontSize: rem(scale[9]),
311
309
  fontWeight: fontWeights.light,
312
- lineHeight: '119%',
310
+ lineHeight: 1.19,
313
311
  letterSpacing: 0,
314
312
  breakpoints: {
315
313
  md: {
@@ -320,11 +318,11 @@ export const display01 = {
320
318
  },
321
319
  xlg: {
322
320
  fontSize: rem(scale[12]),
323
- lineHeight: '117%',
321
+ lineHeight: 1.17,
324
322
  },
325
323
  max: {
326
324
  fontSize: rem(scale[14]),
327
- lineHeight: '113%',
325
+ lineHeight: 1.13,
328
326
  },
329
327
  },
330
328
  };
@@ -332,7 +330,7 @@ export const display01 = {
332
330
  export const display02 = {
333
331
  fontSize: rem(scale[9]),
334
332
  fontWeight: fontWeights.semibold,
335
- lineHeight: '119%',
333
+ lineHeight: 1.19,
336
334
  letterSpacing: 0,
337
335
  breakpoints: {
338
336
  md: {
@@ -343,11 +341,11 @@ export const display02 = {
343
341
  },
344
342
  xlg: {
345
343
  fontSize: rem(scale[12]),
346
- lineHeight: '116%',
344
+ lineHeight: 1.16,
347
345
  },
348
346
  max: {
349
347
  fontSize: rem(scale[14]),
350
- lineHeight: '113%',
348
+ lineHeight: 1.13,
351
349
  },
352
350
  },
353
351
  };
@@ -355,25 +353,25 @@ export const display02 = {
355
353
  export const display03 = {
356
354
  fontSize: rem(scale[9]),
357
355
  fontWeight: fontWeights.light,
358
- lineHeight: '119%',
356
+ lineHeight: 1.19,
359
357
  letterSpacing: 0,
360
358
  breakpoints: {
361
359
  md: {
362
360
  fontSize: rem(scale[13]),
363
- lineHeight: '115%',
361
+ lineHeight: 1.15,
364
362
  },
365
363
  lg: {
366
364
  fontSize: rem(scale[16]),
367
- lineHeight: '111%',
365
+ lineHeight: 1.11,
368
366
  letterSpacing: px(-0.64),
369
367
  },
370
368
  xlg: {
371
369
  fontSize: rem(scale[19]),
372
- lineHeight: '107%',
370
+ lineHeight: 1.07,
373
371
  },
374
372
  max: {
375
373
  fontSize: rem(scale[22]),
376
- lineHeight: '105%',
374
+ lineHeight: 1.05,
377
375
  letterSpacing: px(-0.96),
378
376
  },
379
377
  },
@@ -382,26 +380,26 @@ export const display03 = {
382
380
  export const display04 = {
383
381
  fontSize: rem(scale[9]),
384
382
  fontWeight: fontWeights.semibold,
385
- lineHeight: '119%',
383
+ lineHeight: 1.19,
386
384
  letterSpacing: 0,
387
385
  breakpoints: {
388
386
  md: {
389
387
  fontSize: rem(scale[13]),
390
- lineHeight: '115%',
388
+ lineHeight: 1.15,
391
389
  },
392
390
  lg: {
393
391
  fontSize: rem(scale[16]),
394
- lineHeight: '111%',
392
+ lineHeight: 1.11,
395
393
  letterSpacing: px(-0.64),
396
394
  },
397
395
  xlg: {
398
396
  fontSize: rem(scale[19]),
399
- lineHeight: '107%',
397
+ lineHeight: 1.07,
400
398
  letterSpacing: px(-0.64),
401
399
  },
402
400
  max: {
403
401
  fontSize: rem(scale[22]),
404
- lineHeight: '105%',
402
+ lineHeight: 1.05,
405
403
  letterSpacing: px(-0.96),
406
404
  },
407
405
  },