@carbon/type 10.14.0 → 10.16.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 +59 -60
- package/lib/index.js +59 -60
- package/package.json +4 -4
- package/scss/_font-family.scss +2 -2
- package/scss/_inlined/_font-family.scss +2 -2
- package/scss/_inlined/_reset.scss +1 -1
- package/scss/_inlined/_scale.scss +2 -2
- package/scss/_inlined/_styles.scss +59 -59
- package/scss/_reset.scss +1 -1
- package/scss/_scale.scss +2 -2
- package/scss/_styles.scss +59 -59
- package/src/__tests__/__snapshots__/styles-test.js.snap +31 -31
- package/src/__tests__/fluid-test.js +26 -26
- package/src/styles.js +58 -59
- package/umd/index.js +59 -60
package/lib/index.js
CHANGED
|
@@ -250,132 +250,133 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
250
250
|
var caption01 = {
|
|
251
251
|
fontSize: layout.rem(scale[0]),
|
|
252
252
|
fontWeight: fontWeights.regular,
|
|
253
|
-
lineHeight:
|
|
253
|
+
lineHeight: 1.34,
|
|
254
254
|
letterSpacing: layout.px(0.32)
|
|
255
255
|
};
|
|
256
256
|
var label01 = {
|
|
257
257
|
fontSize: layout.rem(scale[0]),
|
|
258
258
|
fontWeight: fontWeights.regular,
|
|
259
|
-
lineHeight:
|
|
259
|
+
lineHeight: 1.34,
|
|
260
260
|
letterSpacing: layout.px(0.32)
|
|
261
261
|
};
|
|
262
262
|
var helperText01 = {
|
|
263
263
|
fontSize: layout.rem(scale[0]),
|
|
264
|
-
lineHeight:
|
|
264
|
+
lineHeight: 1.34,
|
|
265
265
|
letterSpacing: layout.px(0.32)
|
|
266
266
|
};
|
|
267
267
|
var bodyShort01 = {
|
|
268
268
|
fontSize: layout.rem(scale[1]),
|
|
269
269
|
fontWeight: fontWeights.regular,
|
|
270
|
-
lineHeight:
|
|
270
|
+
lineHeight: 1.29,
|
|
271
271
|
letterSpacing: layout.px(0.16)
|
|
272
272
|
};
|
|
273
273
|
var bodyLong01 = {
|
|
274
274
|
fontSize: layout.rem(scale[1]),
|
|
275
275
|
fontWeight: fontWeights.regular,
|
|
276
|
-
lineHeight:
|
|
276
|
+
lineHeight: 1.43,
|
|
277
277
|
letterSpacing: layout.px(0.16)
|
|
278
278
|
};
|
|
279
279
|
var bodyShort02 = {
|
|
280
280
|
fontSize: layout.rem(scale[2]),
|
|
281
281
|
fontWeight: fontWeights.regular,
|
|
282
|
-
lineHeight:
|
|
282
|
+
lineHeight: 1.375,
|
|
283
283
|
letterSpacing: 0
|
|
284
284
|
};
|
|
285
285
|
var bodyLong02 = {
|
|
286
286
|
fontSize: layout.rem(scale[2]),
|
|
287
287
|
fontWeight: fontWeights.regular,
|
|
288
|
-
lineHeight:
|
|
288
|
+
lineHeight: 1.5,
|
|
289
289
|
letterSpacing: 0
|
|
290
290
|
};
|
|
291
291
|
var code01 = {
|
|
292
292
|
fontFamily: fontFamilies.mono,
|
|
293
293
|
fontSize: layout.rem(scale[0]),
|
|
294
294
|
fontWeight: fontWeights.regular,
|
|
295
|
-
lineHeight:
|
|
295
|
+
lineHeight: 1.34,
|
|
296
296
|
letterSpacing: layout.px(0.32)
|
|
297
297
|
};
|
|
298
298
|
var code02 = {
|
|
299
299
|
fontFamily: fontFamilies.mono,
|
|
300
300
|
fontSize: layout.rem(scale[1]),
|
|
301
301
|
fontWeight: fontWeights.regular,
|
|
302
|
-
lineHeight:
|
|
302
|
+
lineHeight: 1.43,
|
|
303
303
|
letterSpacing: layout.px(0.32)
|
|
304
304
|
};
|
|
305
305
|
var heading01 = {
|
|
306
306
|
fontSize: layout.rem(scale[1]),
|
|
307
307
|
fontWeight: fontWeights.semibold,
|
|
308
|
-
lineHeight:
|
|
308
|
+
lineHeight: 1.29,
|
|
309
309
|
letterSpacing: layout.px(0.16)
|
|
310
310
|
};
|
|
311
311
|
var productiveHeading01 = heading01;
|
|
312
312
|
var heading02 = {
|
|
313
313
|
fontSize: layout.rem(scale[2]),
|
|
314
314
|
fontWeight: fontWeights.semibold,
|
|
315
|
-
lineHeight:
|
|
315
|
+
lineHeight: 1.375,
|
|
316
316
|
letterSpacing: 0
|
|
317
317
|
};
|
|
318
318
|
var productiveHeading02 = heading02;
|
|
319
319
|
var productiveHeading03 = {
|
|
320
320
|
fontSize: layout.rem(scale[4]),
|
|
321
321
|
fontWeight: fontWeights.regular,
|
|
322
|
-
lineHeight:
|
|
322
|
+
lineHeight: 1.4,
|
|
323
323
|
letterSpacing: 0
|
|
324
324
|
};
|
|
325
325
|
var productiveHeading04 = {
|
|
326
326
|
fontSize: layout.rem(scale[6]),
|
|
327
327
|
fontWeight: fontWeights.regular,
|
|
328
|
-
lineHeight:
|
|
328
|
+
lineHeight: 1.29,
|
|
329
329
|
letterSpacing: 0
|
|
330
330
|
};
|
|
331
331
|
var productiveHeading05 = {
|
|
332
332
|
fontSize: layout.rem(scale[7]),
|
|
333
333
|
fontWeight: fontWeights.regular,
|
|
334
|
-
lineHeight:
|
|
334
|
+
lineHeight: 1.25,
|
|
335
335
|
letterSpacing: 0
|
|
336
336
|
};
|
|
337
337
|
var productiveHeading06 = {
|
|
338
338
|
fontSize: layout.rem(scale[9]),
|
|
339
339
|
fontWeight: fontWeights.light,
|
|
340
|
-
lineHeight:
|
|
340
|
+
lineHeight: 1.199,
|
|
341
341
|
letterSpacing: 0
|
|
342
342
|
};
|
|
343
343
|
var productiveHeading07 = {
|
|
344
344
|
fontSize: layout.rem(scale[11]),
|
|
345
345
|
fontWeight: fontWeights.light,
|
|
346
|
-
lineHeight:
|
|
346
|
+
lineHeight: 1.19,
|
|
347
347
|
letterSpacing: 0
|
|
348
348
|
};
|
|
349
349
|
var expressiveHeading01 = _objectSpread2(_objectSpread2({}, heading01), {}, {
|
|
350
|
-
lineHeight:
|
|
350
|
+
lineHeight: 1.25
|
|
351
351
|
});
|
|
352
352
|
var expressiveHeading02 = _objectSpread2(_objectSpread2({}, heading02), {}, {
|
|
353
|
-
lineHeight:
|
|
353
|
+
lineHeight: 1.5
|
|
354
354
|
});
|
|
355
355
|
var expressiveHeading03 = {
|
|
356
356
|
fontSize: layout.rem(scale[4]),
|
|
357
357
|
fontWeight: fontWeights.regular,
|
|
358
|
-
lineHeight:
|
|
358
|
+
lineHeight: 1.4,
|
|
359
359
|
letterSpacing: 0,
|
|
360
360
|
breakpoints: {
|
|
361
361
|
xlg: {
|
|
362
362
|
fontSize: layout.rem(scale[4]),
|
|
363
|
-
lineHeight:
|
|
363
|
+
lineHeight: 1.25
|
|
364
364
|
},
|
|
365
365
|
max: {
|
|
366
|
-
fontSize: layout.rem(scale[5])
|
|
366
|
+
fontSize: layout.rem(scale[5]),
|
|
367
|
+
lineHeight: 1.334
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
};
|
|
370
371
|
var expressiveHeading04 = {
|
|
371
372
|
fontSize: layout.rem(scale[6]),
|
|
372
373
|
fontWeight: fontWeights.regular,
|
|
373
|
-
lineHeight:
|
|
374
|
+
lineHeight: 1.29,
|
|
374
375
|
letterSpacing: 0,
|
|
375
376
|
breakpoints: {
|
|
376
377
|
xlg: {
|
|
377
378
|
fontSize: layout.rem(scale[6]),
|
|
378
|
-
lineHeight:
|
|
379
|
+
lineHeight: 1.25
|
|
379
380
|
},
|
|
380
381
|
max: {
|
|
381
382
|
fontSize: layout.rem(scale[7])
|
|
@@ -385,31 +386,30 @@ var expressiveHeading04 = {
|
|
|
385
386
|
var expressiveHeading05 = {
|
|
386
387
|
fontSize: layout.rem(scale[7]),
|
|
387
388
|
fontWeight: fontWeights.regular,
|
|
388
|
-
lineHeight:
|
|
389
|
+
lineHeight: 1.25,
|
|
389
390
|
letterSpacing: 0,
|
|
390
391
|
breakpoints: {
|
|
391
392
|
md: {
|
|
392
393
|
fontSize: layout.rem(scale[8]),
|
|
393
394
|
fontWeight: fontWeights.light,
|
|
394
|
-
lineHeight:
|
|
395
|
+
lineHeight: 1.22,
|
|
395
396
|
letterSpacing: 0
|
|
396
397
|
},
|
|
397
398
|
lg: {
|
|
398
399
|
fontSize: layout.rem(scale[9]),
|
|
399
400
|
fontWeight: fontWeights.light,
|
|
400
|
-
lineHeight:
|
|
401
|
+
lineHeight: 1.19,
|
|
401
402
|
letterSpacing: 0
|
|
402
403
|
},
|
|
403
404
|
xlg: {
|
|
404
405
|
fontSize: layout.rem(scale[10]),
|
|
405
406
|
fontWeight: fontWeights.light,
|
|
406
|
-
lineHeight:
|
|
407
|
+
lineHeight: 1.17,
|
|
407
408
|
letterSpacing: 0
|
|
408
409
|
},
|
|
409
410
|
max: {
|
|
410
411
|
fontSize: layout.rem(scale[12]),
|
|
411
412
|
fontWeight: fontWeights.light,
|
|
412
|
-
lineHeight: layout.rem(70),
|
|
413
413
|
letterSpacing: 0
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -417,31 +417,30 @@ var expressiveHeading05 = {
|
|
|
417
417
|
var expressiveHeading06 = {
|
|
418
418
|
fontSize: layout.rem(scale[7]),
|
|
419
419
|
fontWeight: fontWeights.semibold,
|
|
420
|
-
lineHeight:
|
|
420
|
+
lineHeight: 1.25,
|
|
421
421
|
letterSpacing: 0,
|
|
422
422
|
breakpoints: {
|
|
423
423
|
md: {
|
|
424
424
|
fontSize: layout.rem(scale[8]),
|
|
425
425
|
fontWeight: fontWeights.semibold,
|
|
426
|
-
lineHeight:
|
|
426
|
+
lineHeight: 1.22,
|
|
427
427
|
letterSpacing: 0
|
|
428
428
|
},
|
|
429
429
|
lg: {
|
|
430
430
|
fontSize: layout.rem(scale[9]),
|
|
431
431
|
fontWeight: fontWeights.semibold,
|
|
432
|
-
lineHeight:
|
|
432
|
+
lineHeight: 1.19,
|
|
433
433
|
letterSpacing: 0
|
|
434
434
|
},
|
|
435
435
|
xlg: {
|
|
436
436
|
fontSize: layout.rem(scale[10]),
|
|
437
437
|
fontWeight: fontWeights.semibold,
|
|
438
|
-
lineHeight:
|
|
438
|
+
lineHeight: 1.17,
|
|
439
439
|
letterSpacing: 0
|
|
440
440
|
},
|
|
441
441
|
max: {
|
|
442
442
|
fontSize: layout.rem(scale[12]),
|
|
443
443
|
fontWeight: fontWeights.semibold,
|
|
444
|
-
lineHeight: layout.rem(70),
|
|
445
444
|
letterSpacing: 0
|
|
446
445
|
}
|
|
447
446
|
}
|
|
@@ -449,21 +448,21 @@ var expressiveHeading06 = {
|
|
|
449
448
|
var expressiveParagraph01 = {
|
|
450
449
|
fontSize: layout.rem(scale[5]),
|
|
451
450
|
fontWeight: fontWeights.light,
|
|
452
|
-
lineHeight:
|
|
451
|
+
lineHeight: 1.334,
|
|
453
452
|
letterSpacing: 0,
|
|
454
453
|
lg: {
|
|
455
454
|
fontSize: layout.rem(scale[6]),
|
|
456
|
-
lineHeight:
|
|
455
|
+
lineHeight: 1.29
|
|
457
456
|
},
|
|
458
457
|
max: {
|
|
459
458
|
fontSize: layout.rem(scale[7]),
|
|
460
|
-
lineHeight:
|
|
459
|
+
lineHeight: 1.25
|
|
461
460
|
}
|
|
462
461
|
};
|
|
463
462
|
var quotation01 = {
|
|
464
463
|
fontSize: layout.rem(scale[4]),
|
|
465
464
|
fontWeight: fontWeights.regular,
|
|
466
|
-
lineHeight:
|
|
465
|
+
lineHeight: 1.3,
|
|
467
466
|
letterSpacing: 0,
|
|
468
467
|
breakpoints: {
|
|
469
468
|
md: {
|
|
@@ -474,19 +473,19 @@ var quotation01 = {
|
|
|
474
473
|
lg: {
|
|
475
474
|
fontSize: layout.rem(scale[5]),
|
|
476
475
|
fontWeight: fontWeights.regular,
|
|
477
|
-
lineHeight:
|
|
476
|
+
lineHeight: 1.334,
|
|
478
477
|
letterSpacing: 0
|
|
479
478
|
},
|
|
480
479
|
xlg: {
|
|
481
480
|
fontSize: layout.rem(scale[6]),
|
|
482
481
|
fontWeight: fontWeights.regular,
|
|
483
|
-
lineHeight:
|
|
482
|
+
lineHeight: 1.29,
|
|
484
483
|
letterSpacing: 0
|
|
485
484
|
},
|
|
486
485
|
max: {
|
|
487
486
|
fontSize: layout.rem(scale[7]),
|
|
488
487
|
fontWeight: fontWeights.regular,
|
|
489
|
-
lineHeight:
|
|
488
|
+
lineHeight: 1.25,
|
|
490
489
|
letterSpacing: 0
|
|
491
490
|
}
|
|
492
491
|
}
|
|
@@ -494,20 +493,20 @@ var quotation01 = {
|
|
|
494
493
|
var quotation02 = {
|
|
495
494
|
fontSize: layout.rem(scale[7]),
|
|
496
495
|
fontWeight: fontWeights.light,
|
|
497
|
-
lineHeight:
|
|
496
|
+
lineHeight: 1.25,
|
|
498
497
|
letterSpacing: 0,
|
|
499
498
|
breakpoints: {
|
|
500
499
|
md: {
|
|
501
500
|
fontSize: layout.rem(scale[8]),
|
|
502
|
-
lineHeight:
|
|
501
|
+
lineHeight: 1.22
|
|
503
502
|
},
|
|
504
503
|
lg: {
|
|
505
504
|
fontSize: layout.rem(scale[9]),
|
|
506
|
-
lineHeight:
|
|
505
|
+
lineHeight: 1.19
|
|
507
506
|
},
|
|
508
507
|
xlg: {
|
|
509
508
|
fontSize: layout.rem(scale[10]),
|
|
510
|
-
lineHeight:
|
|
509
|
+
lineHeight: 1.17
|
|
511
510
|
},
|
|
512
511
|
max: {
|
|
513
512
|
fontSize: layout.rem(scale[12])
|
|
@@ -517,7 +516,7 @@ var quotation02 = {
|
|
|
517
516
|
var display01 = {
|
|
518
517
|
fontSize: layout.rem(scale[9]),
|
|
519
518
|
fontWeight: fontWeights.light,
|
|
520
|
-
lineHeight:
|
|
519
|
+
lineHeight: 1.19,
|
|
521
520
|
letterSpacing: 0,
|
|
522
521
|
breakpoints: {
|
|
523
522
|
md: {
|
|
@@ -528,18 +527,18 @@ var display01 = {
|
|
|
528
527
|
},
|
|
529
528
|
xlg: {
|
|
530
529
|
fontSize: layout.rem(scale[12]),
|
|
531
|
-
lineHeight:
|
|
530
|
+
lineHeight: 1.17
|
|
532
531
|
},
|
|
533
532
|
max: {
|
|
534
533
|
fontSize: layout.rem(scale[14]),
|
|
535
|
-
lineHeight:
|
|
534
|
+
lineHeight: 1.13
|
|
536
535
|
}
|
|
537
536
|
}
|
|
538
537
|
};
|
|
539
538
|
var display02 = {
|
|
540
539
|
fontSize: layout.rem(scale[9]),
|
|
541
540
|
fontWeight: fontWeights.semibold,
|
|
542
|
-
lineHeight:
|
|
541
|
+
lineHeight: 1.19,
|
|
543
542
|
letterSpacing: 0,
|
|
544
543
|
breakpoints: {
|
|
545
544
|
md: {
|
|
@@ -550,36 +549,36 @@ var display02 = {
|
|
|
550
549
|
},
|
|
551
550
|
xlg: {
|
|
552
551
|
fontSize: layout.rem(scale[12]),
|
|
553
|
-
lineHeight:
|
|
552
|
+
lineHeight: 1.16
|
|
554
553
|
},
|
|
555
554
|
max: {
|
|
556
555
|
fontSize: layout.rem(scale[14]),
|
|
557
|
-
lineHeight:
|
|
556
|
+
lineHeight: 1.13
|
|
558
557
|
}
|
|
559
558
|
}
|
|
560
559
|
};
|
|
561
560
|
var display03 = {
|
|
562
561
|
fontSize: layout.rem(scale[9]),
|
|
563
562
|
fontWeight: fontWeights.light,
|
|
564
|
-
lineHeight:
|
|
563
|
+
lineHeight: 1.19,
|
|
565
564
|
letterSpacing: 0,
|
|
566
565
|
breakpoints: {
|
|
567
566
|
md: {
|
|
568
567
|
fontSize: layout.rem(scale[13]),
|
|
569
|
-
lineHeight:
|
|
568
|
+
lineHeight: 1.15
|
|
570
569
|
},
|
|
571
570
|
lg: {
|
|
572
571
|
fontSize: layout.rem(scale[16]),
|
|
573
|
-
lineHeight:
|
|
572
|
+
lineHeight: 1.11,
|
|
574
573
|
letterSpacing: layout.px(-0.64)
|
|
575
574
|
},
|
|
576
575
|
xlg: {
|
|
577
576
|
fontSize: layout.rem(scale[19]),
|
|
578
|
-
lineHeight:
|
|
577
|
+
lineHeight: 1.07
|
|
579
578
|
},
|
|
580
579
|
max: {
|
|
581
580
|
fontSize: layout.rem(scale[22]),
|
|
582
|
-
lineHeight:
|
|
581
|
+
lineHeight: 1.05,
|
|
583
582
|
letterSpacing: layout.px(-0.96)
|
|
584
583
|
}
|
|
585
584
|
}
|
|
@@ -587,26 +586,26 @@ var display03 = {
|
|
|
587
586
|
var display04 = {
|
|
588
587
|
fontSize: layout.rem(scale[9]),
|
|
589
588
|
fontWeight: fontWeights.semibold,
|
|
590
|
-
lineHeight:
|
|
589
|
+
lineHeight: 1.19,
|
|
591
590
|
letterSpacing: 0,
|
|
592
591
|
breakpoints: {
|
|
593
592
|
md: {
|
|
594
593
|
fontSize: layout.rem(scale[13]),
|
|
595
|
-
lineHeight:
|
|
594
|
+
lineHeight: 1.15
|
|
596
595
|
},
|
|
597
596
|
lg: {
|
|
598
597
|
fontSize: layout.rem(scale[16]),
|
|
599
|
-
lineHeight:
|
|
598
|
+
lineHeight: 1.11,
|
|
600
599
|
letterSpacing: layout.px(-0.64)
|
|
601
600
|
},
|
|
602
601
|
xlg: {
|
|
603
602
|
fontSize: layout.rem(scale[19]),
|
|
604
|
-
lineHeight:
|
|
603
|
+
lineHeight: 1.07,
|
|
605
604
|
letterSpacing: layout.px(-0.64)
|
|
606
605
|
},
|
|
607
606
|
max: {
|
|
608
607
|
fontSize: layout.rem(scale[22]),
|
|
609
|
-
lineHeight:
|
|
608
|
+
lineHeight: 1.05,
|
|
610
609
|
letterSpacing: layout.px(-0.96)
|
|
611
610
|
}
|
|
612
611
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/type",
|
|
3
3
|
"description": "Typography for digital and software products using the Carbon Design System",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.16.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@carbon/import-once": "^10.3.0",
|
|
36
|
-
"@carbon/layout": "^10.
|
|
36
|
+
"@carbon/layout": "^10.13.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@carbon/bundler": "^10.9.0",
|
|
40
|
-
"@carbon/test-utils": "^10.
|
|
40
|
+
"@carbon/test-utils": "^10.11.0",
|
|
41
41
|
"change-case": "^4.1.1",
|
|
42
42
|
"rimraf": "^3.0.0"
|
|
43
43
|
},
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"sassDir": "scss",
|
|
48
48
|
"needs": "^1.3.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "4673aaf1e73fbfab199ff6daf846a0292c14d905"
|
|
51
51
|
}
|
package/scss/_font-family.scss
CHANGED
|
@@ -23,7 +23,7 @@ $carbon--font-families: (
|
|
|
23
23
|
"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif"
|
|
24
24
|
),
|
|
25
25
|
'serif': unquote("'IBM Plex Serif', 'Georgia', Times, serif"),
|
|
26
|
-
);
|
|
26
|
+
) !default;
|
|
27
27
|
|
|
28
28
|
/// Get the font-family for an IBM Plex font
|
|
29
29
|
/// @param {String} $name
|
|
@@ -50,7 +50,7 @@ $carbon--font-weights: (
|
|
|
50
50
|
'light': 300,
|
|
51
51
|
'regular': 400,
|
|
52
52
|
'semibold': 600,
|
|
53
|
-
);
|
|
53
|
+
) !default;
|
|
54
54
|
|
|
55
55
|
/// Retrieve the font-weight value for a given name
|
|
56
56
|
/// @param {String} $weight
|
|
@@ -23,7 +23,7 @@ $carbon--font-families: (
|
|
|
23
23
|
"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif"
|
|
24
24
|
),
|
|
25
25
|
'serif': unquote("'IBM Plex Serif', 'Georgia', Times, serif"),
|
|
26
|
-
);
|
|
26
|
+
) !default;
|
|
27
27
|
|
|
28
28
|
/// Get the font-family for an IBM Plex font
|
|
29
29
|
/// @param {String} $name
|
|
@@ -50,7 +50,7 @@ $carbon--font-weights: (
|
|
|
50
50
|
'light': 300,
|
|
51
51
|
'regular': 400,
|
|
52
52
|
'semibold': 600,
|
|
53
|
-
);
|
|
53
|
+
) !default;
|
|
54
54
|
|
|
55
55
|
/// Retrieve the font-weight value for a given name
|
|
56
56
|
/// @param {String} $weight
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/// @group @carbon/type
|
|
17
17
|
@mixin carbon--type-reset(
|
|
18
18
|
// TODO: remove in next major release. This has been replaced with 100%
|
|
19
|
-
|
|
19
|
+
$base-font-size: $carbon--base-font-size,
|
|
20
20
|
$body-font-family: carbon--font-family('sans'),
|
|
21
21
|
$mono-font-family: carbon--font-family('mono')
|
|
22
22
|
) {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
@return carbon--get-type-size($step - 1) + (floor(($step - 2) / 4) + 1) * 2;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/// Type
|
|
23
|
+
/// Type scale follows a custom formula for determining each step size and supports sizes from 12px to 92px
|
|
24
24
|
/// @type Map
|
|
25
25
|
/// @access public
|
|
26
26
|
/// @group @carbon/type
|
|
@@ -32,7 +32,7 @@ $carbon--type-scale: ();
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
/// Get the value of a specific step in the
|
|
35
|
+
/// Get the value of a specific step in the type scale
|
|
36
36
|
/// @param {Number} $step
|
|
37
37
|
/// @return {Number} In rem
|
|
38
38
|
/// @access public
|