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