@carbon/type 11.64.0 → 11.65.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/lib/index.js CHANGED
@@ -19,8 +19,8 @@ let _carbon_layout = require("@carbon/layout");
19
19
  * This source code is licensed under the Apache-2.0 license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
21
  */
22
- const breakpointNames = Object.keys(_carbon_layout.breakpoints);
23
22
  const next = (name) => {
23
+ const breakpointNames = Object.keys(_carbon_layout.breakpoints);
24
24
  return breakpointNames[breakpointNames.indexOf(name) + 1];
25
25
  };
26
26
  const fluid = (selector) => {
@@ -78,25 +78,22 @@ const subtract = (a, b) => {
78
78
  * This source code is licensed under the Apache-2.0 license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */
81
+ const mono = "'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace";
82
+ const sans = "'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif";
83
+ const sansCondensed = "'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif";
84
+ const sansHebrew = "'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif";
85
+ const serif = "'IBM Plex Serif', 'Georgia', Times, serif";
81
86
  const fontFamilies = {
82
- mono: "'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace",
83
- sans: "'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, '.SFNSText-Regular', sans-serif",
84
- sansCondensed: "'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif",
85
- sansHebrew: "'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif",
86
- serif: "'IBM Plex Serif', 'Georgia', Times, serif"
87
+ mono,
88
+ sans,
89
+ sansCondensed,
90
+ sansHebrew,
91
+ serif
87
92
  };
88
93
  const fontFamily = (name) => {
89
94
  if (!(name in fontFamilies)) throw new Error(`Unable to find font family: \`${name}\`. Expected one of: [${Object.keys(fontFamilies).join(", ")}]`);
90
95
  return { fontFamily: fontFamilies[name] };
91
96
  };
92
- //#endregion
93
- //#region src/fontWeight.ts
94
- /**
95
- * Copyright IBM Corp. 2018, 2026
96
- *
97
- * This source code is licensed under the Apache-2.0 license found in the
98
- * LICENSE file in the root directory of this source tree.
99
- */
100
97
  const fontWeights = {
101
98
  light: 300,
102
99
  regular: 400,
@@ -137,16 +134,16 @@ const paramCase = (string) => {
137
134
  * LICENSE file in the root directory of this source tree.
138
135
  */
139
136
  const reset = {
140
- html: { fontSize: (0, _carbon_layout.px)(_carbon_layout.baseFontSize) },
137
+ html: { fontSize: /*#__PURE__*/ (0, _carbon_layout.px)(_carbon_layout.baseFontSize) },
141
138
  body: {
142
- fontFamily: fontFamilies.sans,
143
- fontWeight: fontWeights.regular,
139
+ fontFamily: sans,
140
+ fontWeight: 400,
144
141
  textRendering: "optimizeLegibility",
145
142
  "-webkit-font-smoothing": "antialiased",
146
143
  "-moz-osx-font-smoothing": "grayscale"
147
144
  },
148
- strong: { fontWeight: fontWeights.semibold },
149
- code: { fontFamily: fontFamilies.mono }
145
+ strong: { fontWeight: 600 },
146
+ code: { fontFamily: mono }
150
147
  };
151
148
  //#endregion
152
149
  //#region src/scale.ts
@@ -262,401 +259,405 @@ var styles_exports = /* @__PURE__ */ __exportAll({
262
259
  quotation02: () => quotation02
263
260
  });
264
261
  const caption01 = {
265
- fontSize: (0, _carbon_layout.rem)(scale[0]),
266
- fontWeight: fontWeights.regular,
262
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(12),
263
+ fontWeight: 400,
267
264
  lineHeight: 1.33333,
268
- letterSpacing: (0, _carbon_layout.px)(.32)
265
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
269
266
  };
270
267
  const caption02 = {
271
- fontSize: (0, _carbon_layout.rem)(scale[1]),
272
- fontWeight: fontWeights.regular,
268
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
269
+ fontWeight: 400,
273
270
  lineHeight: 1.28572,
274
- letterSpacing: (0, _carbon_layout.px)(.32)
271
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
275
272
  };
276
273
  const label01 = {
277
- fontSize: (0, _carbon_layout.rem)(scale[0]),
278
- fontWeight: fontWeights.regular,
274
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(12),
275
+ fontWeight: 400,
279
276
  lineHeight: 1.33333,
280
- letterSpacing: (0, _carbon_layout.px)(.32)
277
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
281
278
  };
282
279
  const label02 = {
283
- fontSize: (0, _carbon_layout.rem)(scale[1]),
284
- fontWeight: fontWeights.regular,
280
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
281
+ fontWeight: 400,
285
282
  lineHeight: 1.28572,
286
- letterSpacing: (0, _carbon_layout.px)(.16)
283
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
287
284
  };
288
285
  const helperText01 = {
289
- fontSize: (0, _carbon_layout.rem)(scale[0]),
286
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(12),
290
287
  lineHeight: 1.33333,
291
- letterSpacing: (0, _carbon_layout.px)(.32)
288
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
292
289
  };
293
290
  const helperText02 = {
294
- fontSize: (0, _carbon_layout.rem)(scale[1]),
291
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
295
292
  lineHeight: 1.28572,
296
- letterSpacing: (0, _carbon_layout.px)(.16)
293
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
297
294
  };
298
295
  const bodyShort01 = {
299
- fontSize: (0, _carbon_layout.rem)(scale[1]),
300
- fontWeight: fontWeights.regular,
296
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
297
+ fontWeight: 400,
301
298
  lineHeight: 1.28572,
302
- letterSpacing: (0, _carbon_layout.px)(.16)
299
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
303
300
  };
304
301
  const bodyLong01 = {
305
- fontSize: (0, _carbon_layout.rem)(scale[1]),
306
- fontWeight: fontWeights.regular,
302
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
303
+ fontWeight: 400,
307
304
  lineHeight: 1.42857,
308
- letterSpacing: (0, _carbon_layout.px)(.16)
305
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
309
306
  };
310
307
  const bodyShort02 = {
311
- fontSize: (0, _carbon_layout.rem)(scale[2]),
312
- fontWeight: fontWeights.regular,
308
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(16),
309
+ fontWeight: 400,
313
310
  lineHeight: 1.375,
314
311
  letterSpacing: 0
315
312
  };
316
313
  const bodyLong02 = {
317
- fontSize: (0, _carbon_layout.rem)(scale[2]),
318
- fontWeight: fontWeights.regular,
314
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(16),
315
+ fontWeight: 400,
319
316
  lineHeight: 1.5,
320
317
  letterSpacing: 0
321
318
  };
322
319
  const code01 = {
323
- fontFamily: fontFamilies.mono,
324
- fontSize: (0, _carbon_layout.rem)(scale[0]),
325
- fontWeight: fontWeights.regular,
320
+ fontFamily: mono,
321
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(12),
322
+ fontWeight: 400,
326
323
  lineHeight: 1.33333,
327
- letterSpacing: (0, _carbon_layout.px)(.32)
324
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
328
325
  };
329
326
  const code02 = {
330
- fontFamily: fontFamilies.mono,
331
- fontSize: (0, _carbon_layout.rem)(scale[1]),
332
- fontWeight: fontWeights.regular,
327
+ fontFamily: mono,
328
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
329
+ fontWeight: 400,
333
330
  lineHeight: 1.42857,
334
- letterSpacing: (0, _carbon_layout.px)(.32)
331
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
335
332
  };
336
333
  const heading01 = {
337
- fontSize: (0, _carbon_layout.rem)(scale[1]),
338
- fontWeight: fontWeights.semibold,
334
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
335
+ fontWeight: 600,
339
336
  lineHeight: 1.42857,
340
- letterSpacing: (0, _carbon_layout.px)(.16)
337
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
341
338
  };
342
339
  const productiveHeading01 = {
343
- fontSize: (0, _carbon_layout.rem)(scale[1]),
344
- fontWeight: fontWeights.semibold,
340
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
341
+ fontWeight: 600,
345
342
  lineHeight: 1.28572,
346
- letterSpacing: (0, _carbon_layout.px)(.16)
343
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
347
344
  };
348
345
  const heading02 = {
349
- fontSize: (0, _carbon_layout.rem)(scale[2]),
350
- fontWeight: fontWeights.semibold,
346
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(16),
347
+ fontWeight: 600,
351
348
  lineHeight: 1.5,
352
349
  letterSpacing: 0
353
350
  };
354
351
  const productiveHeading02 = {
355
- fontSize: (0, _carbon_layout.rem)(scale[2]),
356
- fontWeight: fontWeights.semibold,
352
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(16),
353
+ fontWeight: 600,
357
354
  lineHeight: 1.375,
358
355
  letterSpacing: 0
359
356
  };
360
357
  const productiveHeading03 = {
361
- fontSize: (0, _carbon_layout.rem)(scale[4]),
362
- fontWeight: fontWeights.regular,
358
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(20),
359
+ fontWeight: 400,
363
360
  lineHeight: 1.4,
364
361
  letterSpacing: 0
365
362
  };
366
363
  const productiveHeading04 = {
367
- fontSize: (0, _carbon_layout.rem)(scale[6]),
368
- fontWeight: fontWeights.regular,
364
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(28),
365
+ fontWeight: 400,
369
366
  lineHeight: 1.28572,
370
367
  letterSpacing: 0
371
368
  };
372
369
  const productiveHeading05 = {
373
- fontSize: (0, _carbon_layout.rem)(scale[7]),
374
- fontWeight: fontWeights.regular,
370
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
371
+ fontWeight: 400,
375
372
  lineHeight: 1.25,
376
373
  letterSpacing: 0
377
374
  };
378
375
  const productiveHeading06 = {
379
- fontSize: (0, _carbon_layout.rem)(scale[9]),
380
- fontWeight: fontWeights.light,
376
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
377
+ fontWeight: 300,
381
378
  lineHeight: 1.199,
382
379
  letterSpacing: 0
383
380
  };
384
381
  const productiveHeading07 = {
385
- fontSize: (0, _carbon_layout.rem)(scale[11]),
386
- fontWeight: fontWeights.light,
382
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(54),
383
+ fontWeight: 300,
387
384
  lineHeight: 1.199,
388
385
  letterSpacing: 0
389
386
  };
390
387
  const expressiveHeading01 = {
391
- ...heading01,
392
- lineHeight: 1.25
388
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
389
+ fontWeight: 600,
390
+ lineHeight: 1.25,
391
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
393
392
  };
394
393
  const expressiveHeading02 = {
395
- ...heading02,
396
- lineHeight: 1.5
394
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(16),
395
+ fontWeight: 600,
396
+ lineHeight: 1.5,
397
+ letterSpacing: 0
397
398
  };
398
399
  const expressiveHeading03 = {
399
- fontSize: (0, _carbon_layout.rem)(scale[4]),
400
- fontWeight: fontWeights.regular,
400
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(20),
401
+ fontWeight: 400,
401
402
  lineHeight: 1.4,
402
403
  letterSpacing: 0,
403
404
  breakpoints: {
404
405
  xlg: {
405
- fontSize: (0, _carbon_layout.rem)(scale[4]),
406
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(20),
406
407
  lineHeight: 1.4
407
408
  },
408
409
  max: {
409
- fontSize: (0, _carbon_layout.rem)(scale[5]),
410
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(24),
410
411
  lineHeight: 1.334
411
412
  }
412
413
  }
413
414
  };
414
415
  const expressiveHeading04 = {
415
- fontSize: (0, _carbon_layout.rem)(scale[6]),
416
- fontWeight: fontWeights.regular,
416
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(28),
417
+ fontWeight: 400,
417
418
  lineHeight: 1.28572,
418
419
  letterSpacing: 0,
419
420
  breakpoints: {
420
421
  xlg: {
421
- fontSize: (0, _carbon_layout.rem)(scale[7]),
422
- fontWeight: fontWeights.regular,
422
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
423
+ fontWeight: 400,
423
424
  lineHeight: 1.25
424
425
  },
425
426
  max: {
426
- fontSize: (0, _carbon_layout.rem)(scale[7]),
427
- fontWeight: fontWeights.regular
427
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
428
+ fontWeight: 400
428
429
  }
429
430
  }
430
431
  };
431
432
  const expressiveHeading05 = {
432
- fontSize: (0, _carbon_layout.rem)(scale[7]),
433
- fontWeight: fontWeights.regular,
433
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
434
+ fontWeight: 400,
434
435
  lineHeight: 1.25,
435
436
  letterSpacing: 0,
436
437
  breakpoints: {
437
438
  md: {
438
- fontSize: (0, _carbon_layout.rem)(scale[8]),
439
- fontWeight: fontWeights.light,
439
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(36),
440
+ fontWeight: 300,
440
441
  lineHeight: 1.22,
441
442
  letterSpacing: 0
442
443
  },
443
444
  lg: {
444
- fontSize: (0, _carbon_layout.rem)(scale[9]),
445
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
445
446
  lineHeight: 1.19,
446
447
  letterSpacing: 0
447
448
  },
448
449
  xlg: {
449
- fontSize: (0, _carbon_layout.rem)(scale[10]),
450
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(48),
450
451
  lineHeight: 1.17,
451
452
  letterSpacing: 0
452
453
  },
453
454
  max: {
454
- fontSize: (0, _carbon_layout.rem)(scale[12]),
455
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60),
455
456
  letterSpacing: 0
456
457
  }
457
458
  }
458
459
  };
459
460
  const expressiveHeading06 = {
460
- fontSize: (0, _carbon_layout.rem)(scale[7]),
461
- fontWeight: fontWeights.semibold,
461
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
462
+ fontWeight: 600,
462
463
  lineHeight: 1.25,
463
464
  letterSpacing: 0,
464
465
  breakpoints: {
465
466
  md: {
466
- fontSize: (0, _carbon_layout.rem)(scale[8]),
467
- fontWeight: fontWeights.semibold,
467
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(36),
468
+ fontWeight: 600,
468
469
  lineHeight: 1.22,
469
470
  letterSpacing: 0
470
471
  },
471
472
  lg: {
472
- fontSize: (0, _carbon_layout.rem)(scale[9]),
473
- fontWeight: fontWeights.semibold,
473
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
474
+ fontWeight: 600,
474
475
  lineHeight: 1.19,
475
476
  letterSpacing: 0
476
477
  },
477
478
  xlg: {
478
- fontSize: (0, _carbon_layout.rem)(scale[10]),
479
- fontWeight: fontWeights.semibold,
479
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(48),
480
+ fontWeight: 600,
480
481
  lineHeight: 1.17,
481
482
  letterSpacing: 0
482
483
  },
483
484
  max: {
484
- fontSize: (0, _carbon_layout.rem)(scale[12]),
485
- fontWeight: fontWeights.semibold,
485
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60),
486
+ fontWeight: 600,
486
487
  letterSpacing: 0
487
488
  }
488
489
  }
489
490
  };
490
491
  const expressiveParagraph01 = {
491
- fontSize: (0, _carbon_layout.rem)(scale[5]),
492
- fontWeight: fontWeights.light,
492
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(24),
493
+ fontWeight: 300,
493
494
  lineHeight: 1.334,
494
495
  letterSpacing: 0,
495
496
  breakpoints: {
496
497
  lg: {
497
- fontSize: (0, _carbon_layout.rem)(scale[6]),
498
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(28),
498
499
  lineHeight: 1.28572
499
500
  },
500
501
  max: {
501
- fontSize: (0, _carbon_layout.rem)(scale[7]),
502
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
502
503
  lineHeight: 1.25
503
504
  }
504
505
  }
505
506
  };
506
507
  const quotation01 = {
507
- fontFamily: fontFamilies.serif,
508
- fontSize: (0, _carbon_layout.rem)(scale[4]),
509
- fontWeight: fontWeights.regular,
508
+ fontFamily: serif,
509
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(20),
510
+ fontWeight: 400,
510
511
  lineHeight: 1.3,
511
512
  letterSpacing: 0,
512
513
  breakpoints: {
513
514
  md: {
514
- fontSize: (0, _carbon_layout.rem)(scale[4]),
515
- fontWeight: fontWeights.regular,
515
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(20),
516
+ fontWeight: 400,
516
517
  letterSpacing: 0
517
518
  },
518
519
  lg: {
519
- fontSize: (0, _carbon_layout.rem)(scale[5]),
520
- fontWeight: fontWeights.regular,
520
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(24),
521
+ fontWeight: 400,
521
522
  lineHeight: 1.334,
522
523
  letterSpacing: 0
523
524
  },
524
525
  xlg: {
525
- fontSize: (0, _carbon_layout.rem)(scale[6]),
526
- fontWeight: fontWeights.regular,
526
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(28),
527
+ fontWeight: 400,
527
528
  lineHeight: 1.28572,
528
529
  letterSpacing: 0
529
530
  },
530
531
  max: {
531
- fontSize: (0, _carbon_layout.rem)(scale[7]),
532
- fontWeight: fontWeights.regular,
532
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
533
+ fontWeight: 400,
533
534
  lineHeight: 1.25,
534
535
  letterSpacing: 0
535
536
  }
536
537
  }
537
538
  };
538
539
  const quotation02 = {
539
- fontFamily: fontFamilies.serif,
540
- fontSize: (0, _carbon_layout.rem)(scale[7]),
541
- fontWeight: fontWeights.light,
540
+ fontFamily: serif,
541
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(32),
542
+ fontWeight: 300,
542
543
  lineHeight: 1.25,
543
544
  letterSpacing: 0,
544
545
  breakpoints: {
545
546
  md: {
546
- fontSize: (0, _carbon_layout.rem)(scale[8]),
547
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(36),
547
548
  lineHeight: 1.22
548
549
  },
549
550
  lg: {
550
- fontSize: (0, _carbon_layout.rem)(scale[9]),
551
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
551
552
  lineHeight: 1.19
552
553
  },
553
554
  xlg: {
554
- fontSize: (0, _carbon_layout.rem)(scale[10]),
555
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(48),
555
556
  lineHeight: 1.17
556
557
  },
557
- max: { fontSize: (0, _carbon_layout.rem)(scale[12]) }
558
+ max: { fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60) }
558
559
  }
559
560
  };
560
561
  const display01 = {
561
- fontSize: (0, _carbon_layout.rem)(scale[9]),
562
- fontWeight: fontWeights.light,
562
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
563
+ fontWeight: 300,
563
564
  lineHeight: 1.19,
564
565
  letterSpacing: 0,
565
566
  breakpoints: {
566
- md: { fontSize: (0, _carbon_layout.rem)(scale[9]) },
567
- lg: { fontSize: (0, _carbon_layout.rem)(scale[11]) },
567
+ md: { fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42) },
568
+ lg: { fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(54) },
568
569
  xlg: {
569
- fontSize: (0, _carbon_layout.rem)(scale[12]),
570
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60),
570
571
  lineHeight: 1.17
571
572
  },
572
573
  max: {
573
- fontSize: (0, _carbon_layout.rem)(scale[14]),
574
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(76),
574
575
  lineHeight: 1.13
575
576
  }
576
577
  }
577
578
  };
578
579
  const display02 = {
579
- fontSize: (0, _carbon_layout.rem)(scale[9]),
580
- fontWeight: fontWeights.semibold,
580
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
581
+ fontWeight: 600,
581
582
  lineHeight: 1.19,
582
583
  letterSpacing: 0,
583
584
  breakpoints: {
584
- md: { fontSize: (0, _carbon_layout.rem)(scale[9]) },
585
- lg: { fontSize: (0, _carbon_layout.rem)(scale[11]) },
585
+ md: { fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42) },
586
+ lg: { fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(54) },
586
587
  xlg: {
587
- fontSize: (0, _carbon_layout.rem)(scale[12]),
588
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60),
588
589
  lineHeight: 1.16
589
590
  },
590
591
  max: {
591
- fontSize: (0, _carbon_layout.rem)(scale[14]),
592
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(76),
592
593
  lineHeight: 1.13
593
594
  }
594
595
  }
595
596
  };
596
597
  const display03 = {
597
- fontSize: (0, _carbon_layout.rem)(scale[9]),
598
- fontWeight: fontWeights.light,
598
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
599
+ fontWeight: 300,
599
600
  lineHeight: 1.19,
600
601
  letterSpacing: 0,
601
602
  breakpoints: {
602
603
  md: {
603
- fontSize: (0, _carbon_layout.rem)(scale[11]),
604
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(54),
604
605
  lineHeight: 1.18
605
606
  },
606
607
  lg: {
607
- fontSize: (0, _carbon_layout.rem)(scale[12]),
608
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(60),
608
609
  lineHeight: 1.16,
609
- letterSpacing: (0, _carbon_layout.px)(-.64)
610
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(-.64)
610
611
  },
611
612
  xlg: {
612
- fontSize: (0, _carbon_layout.rem)(scale[14]),
613
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(76),
613
614
  lineHeight: 1.13
614
615
  },
615
616
  max: {
616
- fontSize: (0, _carbon_layout.rem)(scale[15]),
617
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(84),
617
618
  lineHeight: 1.11,
618
- letterSpacing: (0, _carbon_layout.px)(-.96)
619
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(-.96)
619
620
  }
620
621
  }
621
622
  };
622
623
  const display04 = {
623
- fontSize: (0, _carbon_layout.rem)(scale[9]),
624
- fontWeight: fontWeights.light,
624
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(42),
625
+ fontWeight: 300,
625
626
  lineHeight: 1.19,
626
627
  letterSpacing: 0,
627
628
  breakpoints: {
628
629
  md: {
629
- fontSize: (0, _carbon_layout.rem)(scale[13]),
630
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(68),
630
631
  lineHeight: 1.15
631
632
  },
632
633
  lg: {
633
- fontSize: (0, _carbon_layout.rem)(scale[16]),
634
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(92),
634
635
  lineHeight: 1.11,
635
- letterSpacing: (0, _carbon_layout.px)(-.64)
636
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(-.64)
636
637
  },
637
638
  xlg: {
638
- fontSize: (0, _carbon_layout.rem)(scale[19]),
639
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(122),
639
640
  lineHeight: 1.07,
640
- letterSpacing: (0, _carbon_layout.px)(-.64)
641
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(-.64)
641
642
  },
642
643
  max: {
643
- fontSize: (0, _carbon_layout.rem)(scale[22]),
644
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(156),
644
645
  lineHeight: 1.05,
645
- letterSpacing: (0, _carbon_layout.px)(-.96)
646
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(-.96)
646
647
  }
647
648
  }
648
649
  };
649
650
  const legal01 = {
650
- fontSize: (0, _carbon_layout.rem)(scale[0]),
651
- fontWeight: fontWeights.regular,
651
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(12),
652
+ fontWeight: 400,
652
653
  lineHeight: 1.33333,
653
- letterSpacing: (0, _carbon_layout.px)(.32)
654
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.32)
654
655
  };
655
656
  const legal02 = {
656
- fontSize: (0, _carbon_layout.rem)(scale[1]),
657
- fontWeight: fontWeights.regular,
657
+ fontSize: /*#__PURE__*/ (0, _carbon_layout.rem)(14),
658
+ fontWeight: 400,
658
659
  lineHeight: 1.28572,
659
- letterSpacing: (0, _carbon_layout.px)(.16)
660
+ letterSpacing: /*#__PURE__*/ (0, _carbon_layout.px)(.16)
660
661
  };
661
662
  const bodyCompact01 = bodyShort01;
662
663
  const bodyCompact02 = bodyShort02;
package/lib/scale.d.ts CHANGED
@@ -5,6 +5,29 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  export declare const getTypeSize: (step: number) => number;
8
+ export declare const scale01 = 12;
9
+ export declare const scale02 = 14;
10
+ export declare const scale03 = 16;
11
+ export declare const scale04 = 18;
12
+ export declare const scale05 = 20;
13
+ export declare const scale06 = 24;
14
+ export declare const scale07 = 28;
15
+ export declare const scale08 = 32;
16
+ export declare const scale09 = 36;
17
+ export declare const scale10 = 42;
18
+ export declare const scale11 = 48;
19
+ export declare const scale12 = 54;
20
+ export declare const scale13 = 60;
21
+ export declare const scale14 = 68;
22
+ export declare const scale15 = 76;
23
+ export declare const scale16 = 84;
24
+ export declare const scale17 = 92;
25
+ export declare const scale18 = 102;
26
+ export declare const scale19 = 112;
27
+ export declare const scale20 = 122;
28
+ export declare const scale21 = 132;
29
+ export declare const scale22 = 144;
30
+ export declare const scale23 = 156;
8
31
  /**
9
32
  * Default type scale with 23 steps.
10
33
  *
package/lib/styles.d.ts CHANGED
@@ -131,15 +131,15 @@ export declare const productiveHeading07: {
131
131
  letterSpacing: number;
132
132
  };
133
133
  export declare const expressiveHeading01: {
134
- lineHeight: number;
135
134
  fontSize: string;
136
135
  fontWeight: number;
136
+ lineHeight: number;
137
137
  letterSpacing: string;
138
138
  };
139
139
  export declare const expressiveHeading02: {
140
- lineHeight: number;
141
140
  fontSize: string;
142
141
  fontWeight: number;
142
+ lineHeight: number;
143
143
  letterSpacing: number;
144
144
  };
145
145
  export declare const expressiveHeading03: {