@primer/css 20.6.1 → 20.7.0-rc.434deca0
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 +10 -0
- package/base/base.scss +2 -2
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/alerts.css +1 -1
- package/dist/alerts.css.map +1 -1
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.css.map +1 -1
- package/dist/avatars.css.map +1 -1
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/blankslate.css.map +1 -1
- package/dist/box.css +1 -1
- package/dist/box.css.map +1 -1
- package/dist/branch-name.css.map +1 -1
- package/dist/breadcrumb.css.map +1 -1
- package/dist/buttons.css +1 -1
- package/dist/buttons.css.map +1 -1
- package/dist/color-modes.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/dropdown.css.map +1 -1
- package/dist/forms.css +1 -1
- package/dist/forms.css.map +1 -1
- package/dist/header.css +1 -1
- package/dist/header.css.map +1 -1
- package/dist/labels.css +1 -1
- package/dist/labels.css.map +1 -1
- package/dist/layout.css.map +1 -1
- package/dist/links.css.map +1 -1
- package/dist/loaders.css.map +1 -1
- package/dist/markdown.css +1 -1
- package/dist/markdown.css.map +1 -1
- package/dist/marketing-buttons.css +1 -1
- package/dist/marketing-buttons.css.map +1 -1
- package/dist/marketing-links.css.map +1 -1
- package/dist/marketing-type.css +1 -1
- package/dist/marketing-type.css.map +1 -1
- package/dist/marketing-utilities.css.map +1 -1
- package/dist/marketing.css +1 -1
- package/dist/marketing.css.map +1 -1
- package/dist/meta.json +77 -77
- package/dist/navigation.css +1 -1
- package/dist/navigation.css.map +1 -1
- package/dist/overlay.css +1 -1
- package/dist/overlay.css.map +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/popover.css.map +1 -1
- package/dist/primer.css +3 -3
- package/dist/primer.css.map +1 -1
- package/dist/primitives.css +1 -1
- package/dist/primitives.css.map +1 -1
- package/dist/product.css +1 -1
- package/dist/product.css.map +1 -1
- package/dist/progress.css.map +1 -1
- package/dist/select-menu.css +1 -1
- package/dist/select-menu.css.map +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/subhead.css +1 -1
- package/dist/subhead.css.map +1 -1
- package/dist/timeline.css.map +1 -1
- package/dist/toasts.css.map +1 -1
- package/dist/toggle-switch.css.map +1 -1
- package/dist/tooltips.css.map +1 -1
- package/dist/truncate.css.map +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/dist/variables.json +84 -74
- package/package.json +1 -1
- package/primitives/index.scss +1 -0
- package/primitives/temp-typography-tokens.scss +22 -0
- package/support/mixins/typography.scss +18 -12
- package/support/variables/layout.scss +75 -53
- package/support/variables/misc.scss +1 -0
- package/support/variables/typography.scss +4 -4
- package/utilities/borders.scss +18 -19
- package/utilities/margin.scss +9 -9
- package/utilities/padding.scss +9 -9
- package/utilities/typography.scss +152 -70
package/dist/variables.json
CHANGED
|
@@ -141,43 +141,43 @@
|
|
|
141
141
|
},
|
|
142
142
|
"$font-weight-bold": {
|
|
143
143
|
"values": [
|
|
144
|
-
"600"
|
|
144
|
+
"var(--base-text-weight-medium, 600)"
|
|
145
145
|
],
|
|
146
146
|
"source": {
|
|
147
147
|
"path": "src/support/variables/typography.scss",
|
|
148
148
|
"line": 24
|
|
149
149
|
},
|
|
150
|
-
"computed": "600"
|
|
150
|
+
"computed": "calc(var(--base-text-weight-medium, 600))"
|
|
151
151
|
},
|
|
152
152
|
"$font-weight-semibold": {
|
|
153
153
|
"values": [
|
|
154
|
-
"500"
|
|
154
|
+
"var(--base-text-weight-semibold, 500)"
|
|
155
155
|
],
|
|
156
156
|
"source": {
|
|
157
157
|
"path": "src/support/variables/typography.scss",
|
|
158
158
|
"line": 25
|
|
159
159
|
},
|
|
160
|
-
"computed": "500"
|
|
160
|
+
"computed": "calc(var(--base-text-weight-semibold, 500))"
|
|
161
161
|
},
|
|
162
162
|
"$font-weight-normal": {
|
|
163
163
|
"values": [
|
|
164
|
-
"400"
|
|
164
|
+
"var(--base-text-weight-normal, 400)"
|
|
165
165
|
],
|
|
166
166
|
"source": {
|
|
167
167
|
"path": "src/support/variables/typography.scss",
|
|
168
168
|
"line": 26
|
|
169
169
|
},
|
|
170
|
-
"computed": "400"
|
|
170
|
+
"computed": "calc(var(--base-text-weight-normal, 400))"
|
|
171
171
|
},
|
|
172
172
|
"$font-weight-light": {
|
|
173
173
|
"values": [
|
|
174
|
-
"300"
|
|
174
|
+
"var(--base-text-weight-light, 300)"
|
|
175
175
|
],
|
|
176
176
|
"source": {
|
|
177
177
|
"path": "src/support/variables/typography.scss",
|
|
178
178
|
"line": 27
|
|
179
179
|
},
|
|
180
|
-
"computed": "300"
|
|
180
|
+
"computed": "calc(var(--base-text-weight-light, 300))"
|
|
181
181
|
},
|
|
182
182
|
"$lh-condensed-ultra": {
|
|
183
183
|
"values": [
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
],
|
|
257
257
|
"source": {
|
|
258
258
|
"path": "src/support/variables/layout.scss",
|
|
259
|
-
"line":
|
|
259
|
+
"line": 30
|
|
260
260
|
},
|
|
261
261
|
"computed": "8px"
|
|
262
262
|
},
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
],
|
|
267
267
|
"source": {
|
|
268
268
|
"path": "src/support/variables/layout.scss",
|
|
269
|
-
"line":
|
|
269
|
+
"line": 33
|
|
270
270
|
},
|
|
271
271
|
"computed": "0"
|
|
272
272
|
},
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
],
|
|
278
278
|
"source": {
|
|
279
279
|
"path": "src/support/variables/layout.scss",
|
|
280
|
-
"line":
|
|
280
|
+
"line": 34
|
|
281
281
|
},
|
|
282
282
|
"computed": "4px"
|
|
283
283
|
},
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
],
|
|
289
289
|
"source": {
|
|
290
290
|
"path": "src/support/variables/layout.scss",
|
|
291
|
-
"line":
|
|
291
|
+
"line": 35
|
|
292
292
|
},
|
|
293
293
|
"computed": "8px"
|
|
294
294
|
},
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
],
|
|
300
300
|
"source": {
|
|
301
301
|
"path": "src/support/variables/layout.scss",
|
|
302
|
-
"line":
|
|
302
|
+
"line": 36
|
|
303
303
|
},
|
|
304
304
|
"computed": "16px"
|
|
305
305
|
},
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
],
|
|
311
311
|
"source": {
|
|
312
312
|
"path": "src/support/variables/layout.scss",
|
|
313
|
-
"line":
|
|
313
|
+
"line": 37
|
|
314
314
|
},
|
|
315
315
|
"computed": "24px"
|
|
316
316
|
},
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
],
|
|
322
322
|
"source": {
|
|
323
323
|
"path": "src/support/variables/layout.scss",
|
|
324
|
-
"line":
|
|
324
|
+
"line": 38
|
|
325
325
|
},
|
|
326
326
|
"computed": "32px"
|
|
327
327
|
},
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
],
|
|
333
333
|
"source": {
|
|
334
334
|
"path": "src/support/variables/layout.scss",
|
|
335
|
-
"line":
|
|
335
|
+
"line": 39
|
|
336
336
|
},
|
|
337
337
|
"computed": "40px"
|
|
338
338
|
},
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
],
|
|
344
344
|
"source": {
|
|
345
345
|
"path": "src/support/variables/layout.scss",
|
|
346
|
-
"line":
|
|
346
|
+
"line": 67
|
|
347
347
|
},
|
|
348
348
|
"computed": "48px"
|
|
349
349
|
},
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
],
|
|
355
355
|
"source": {
|
|
356
356
|
"path": "src/support/variables/layout.scss",
|
|
357
|
-
"line":
|
|
357
|
+
"line": 68
|
|
358
358
|
},
|
|
359
359
|
"computed": "64px"
|
|
360
360
|
},
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
],
|
|
366
366
|
"source": {
|
|
367
367
|
"path": "src/support/variables/layout.scss",
|
|
368
|
-
"line":
|
|
368
|
+
"line": 69
|
|
369
369
|
},
|
|
370
370
|
"computed": "80px"
|
|
371
371
|
},
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
],
|
|
377
377
|
"source": {
|
|
378
378
|
"path": "src/support/variables/layout.scss",
|
|
379
|
-
"line":
|
|
379
|
+
"line": 70
|
|
380
380
|
},
|
|
381
381
|
"computed": "96px"
|
|
382
382
|
},
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
],
|
|
388
388
|
"source": {
|
|
389
389
|
"path": "src/support/variables/layout.scss",
|
|
390
|
-
"line":
|
|
390
|
+
"line": 71
|
|
391
391
|
},
|
|
392
392
|
"computed": "112px"
|
|
393
393
|
},
|
|
@@ -398,7 +398,7 @@
|
|
|
398
398
|
],
|
|
399
399
|
"source": {
|
|
400
400
|
"path": "src/support/variables/layout.scss",
|
|
401
|
-
"line":
|
|
401
|
+
"line": 72
|
|
402
402
|
},
|
|
403
403
|
"computed": "128px"
|
|
404
404
|
},
|
|
@@ -408,7 +408,7 @@
|
|
|
408
408
|
],
|
|
409
409
|
"source": {
|
|
410
410
|
"path": "src/support/variables/layout.scss",
|
|
411
|
-
"line":
|
|
411
|
+
"line": 96
|
|
412
412
|
},
|
|
413
413
|
"computed": "0.0625em"
|
|
414
414
|
},
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
],
|
|
419
419
|
"source": {
|
|
420
420
|
"path": "src/support/variables/layout.scss",
|
|
421
|
-
"line":
|
|
421
|
+
"line": 97
|
|
422
422
|
},
|
|
423
423
|
"computed": "0.125em"
|
|
424
424
|
},
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
],
|
|
429
429
|
"source": {
|
|
430
430
|
"path": "src/support/variables/layout.scss",
|
|
431
|
-
"line":
|
|
431
|
+
"line": 98
|
|
432
432
|
},
|
|
433
433
|
"computed": "0.25em"
|
|
434
434
|
},
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
],
|
|
439
439
|
"source": {
|
|
440
440
|
"path": "src/support/variables/layout.scss",
|
|
441
|
-
"line":
|
|
441
|
+
"line": 99
|
|
442
442
|
},
|
|
443
443
|
"computed": "0.375em"
|
|
444
444
|
},
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
],
|
|
449
449
|
"source": {
|
|
450
450
|
"path": "src/support/variables/layout.scss",
|
|
451
|
-
"line":
|
|
451
|
+
"line": 100
|
|
452
452
|
},
|
|
453
453
|
"computed": "0.5em"
|
|
454
454
|
},
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
],
|
|
459
459
|
"source": {
|
|
460
460
|
"path": "src/support/variables/layout.scss",
|
|
461
|
-
"line":
|
|
461
|
+
"line": 101
|
|
462
462
|
},
|
|
463
463
|
"computed": "0.75em"
|
|
464
464
|
},
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
],
|
|
469
469
|
"source": {
|
|
470
470
|
"path": "src/support/variables/layout.scss",
|
|
471
|
-
"line":
|
|
471
|
+
"line": 105
|
|
472
472
|
},
|
|
473
473
|
"computed": "16px"
|
|
474
474
|
},
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
],
|
|
479
479
|
"source": {
|
|
480
480
|
"path": "src/support/variables/layout.scss",
|
|
481
|
-
"line":
|
|
481
|
+
"line": 107
|
|
482
482
|
},
|
|
483
483
|
"computed": "0"
|
|
484
484
|
},
|
|
@@ -489,84 +489,84 @@
|
|
|
489
489
|
],
|
|
490
490
|
"source": {
|
|
491
491
|
"path": "src/support/variables/layout.scss",
|
|
492
|
-
"line":
|
|
492
|
+
"line": 108
|
|
493
493
|
},
|
|
494
494
|
"computed": "16px"
|
|
495
495
|
},
|
|
496
496
|
"$size-2": {
|
|
497
497
|
"values": [
|
|
498
|
-
"$size-1 +
|
|
499
|
-
"16px +
|
|
498
|
+
"$size-1 + 4px",
|
|
499
|
+
"16px + 4px"
|
|
500
500
|
],
|
|
501
501
|
"source": {
|
|
502
502
|
"path": "src/support/variables/layout.scss",
|
|
503
|
-
"line":
|
|
503
|
+
"line": 109
|
|
504
504
|
},
|
|
505
505
|
"computed": "20px"
|
|
506
506
|
},
|
|
507
507
|
"$size-3": {
|
|
508
508
|
"values": [
|
|
509
|
-
"$size-2 +
|
|
510
|
-
"16px +
|
|
509
|
+
"$size-2 + 4px",
|
|
510
|
+
"16px + 4px + 4px"
|
|
511
511
|
],
|
|
512
512
|
"source": {
|
|
513
513
|
"path": "src/support/variables/layout.scss",
|
|
514
|
-
"line":
|
|
514
|
+
"line": 110
|
|
515
515
|
},
|
|
516
516
|
"computed": "24px"
|
|
517
517
|
},
|
|
518
518
|
"$size-4": {
|
|
519
519
|
"values": [
|
|
520
|
-
"$size-3 +
|
|
521
|
-
"16px +
|
|
520
|
+
"$size-3 + 4px",
|
|
521
|
+
"16px + 4px + 4px + 4px"
|
|
522
522
|
],
|
|
523
523
|
"source": {
|
|
524
524
|
"path": "src/support/variables/layout.scss",
|
|
525
|
-
"line":
|
|
525
|
+
"line": 111
|
|
526
526
|
},
|
|
527
527
|
"computed": "28px"
|
|
528
528
|
},
|
|
529
529
|
"$size-5": {
|
|
530
530
|
"values": [
|
|
531
|
-
"$size-4 +
|
|
532
|
-
"16px +
|
|
531
|
+
"$size-4 + 4px",
|
|
532
|
+
"16px + 4px + 4px + 4px + 4px"
|
|
533
533
|
],
|
|
534
534
|
"source": {
|
|
535
535
|
"path": "src/support/variables/layout.scss",
|
|
536
|
-
"line":
|
|
536
|
+
"line": 112
|
|
537
537
|
},
|
|
538
538
|
"computed": "32px"
|
|
539
539
|
},
|
|
540
540
|
"$size-6": {
|
|
541
541
|
"values": [
|
|
542
|
-
"$size-5 +
|
|
543
|
-
"16px +
|
|
542
|
+
"$size-5 + 8px",
|
|
543
|
+
"16px + 4px + 4px + 4px + 4px + 8px"
|
|
544
544
|
],
|
|
545
545
|
"source": {
|
|
546
546
|
"path": "src/support/variables/layout.scss",
|
|
547
|
-
"line":
|
|
547
|
+
"line": 113
|
|
548
548
|
},
|
|
549
549
|
"computed": "40px"
|
|
550
550
|
},
|
|
551
551
|
"$size-7": {
|
|
552
552
|
"values": [
|
|
553
|
-
"$size-6 +
|
|
554
|
-
"16px +
|
|
553
|
+
"$size-6 + 8px",
|
|
554
|
+
"16px + 4px + 4px + 4px + 4px + 8px + 8px"
|
|
555
555
|
],
|
|
556
556
|
"source": {
|
|
557
557
|
"path": "src/support/variables/layout.scss",
|
|
558
|
-
"line":
|
|
558
|
+
"line": 114
|
|
559
559
|
},
|
|
560
560
|
"computed": "48px"
|
|
561
561
|
},
|
|
562
562
|
"$size-8": {
|
|
563
563
|
"values": [
|
|
564
564
|
"$size-7 + 16px",
|
|
565
|
-
"16px +
|
|
565
|
+
"16px + 4px + 4px + 4px + 4px + 8px + 8px + 16px"
|
|
566
566
|
],
|
|
567
567
|
"source": {
|
|
568
568
|
"path": "src/support/variables/layout.scss",
|
|
569
|
-
"line":
|
|
569
|
+
"line": 115
|
|
570
570
|
},
|
|
571
571
|
"computed": "64px"
|
|
572
572
|
},
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
],
|
|
577
577
|
"source": {
|
|
578
578
|
"path": "src/support/variables/layout.scss",
|
|
579
|
-
"line":
|
|
579
|
+
"line": 118
|
|
580
580
|
},
|
|
581
581
|
"computed": "980px"
|
|
582
582
|
},
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
],
|
|
587
587
|
"source": {
|
|
588
588
|
"path": "src/support/variables/layout.scss",
|
|
589
|
-
"line":
|
|
589
|
+
"line": 119
|
|
590
590
|
},
|
|
591
591
|
"computed": "10px"
|
|
592
592
|
},
|
|
@@ -596,7 +596,7 @@
|
|
|
596
596
|
],
|
|
597
597
|
"source": {
|
|
598
598
|
"path": "src/support/variables/layout.scss",
|
|
599
|
-
"line":
|
|
599
|
+
"line": 122
|
|
600
600
|
},
|
|
601
601
|
"computed": "0"
|
|
602
602
|
},
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
],
|
|
607
607
|
"source": {
|
|
608
608
|
"path": "src/support/variables/layout.scss",
|
|
609
|
-
"line":
|
|
609
|
+
"line": 124
|
|
610
610
|
},
|
|
611
611
|
"computed": "544px"
|
|
612
612
|
},
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
],
|
|
617
617
|
"source": {
|
|
618
618
|
"path": "src/support/variables/layout.scss",
|
|
619
|
-
"line":
|
|
619
|
+
"line": 126
|
|
620
620
|
},
|
|
621
621
|
"computed": "768px"
|
|
622
622
|
},
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
],
|
|
627
627
|
"source": {
|
|
628
628
|
"path": "src/support/variables/layout.scss",
|
|
629
|
-
"line":
|
|
629
|
+
"line": 128
|
|
630
630
|
},
|
|
631
631
|
"computed": "1012px"
|
|
632
632
|
},
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
],
|
|
637
637
|
"source": {
|
|
638
638
|
"path": "src/support/variables/layout.scss",
|
|
639
|
-
"line":
|
|
639
|
+
"line": 130
|
|
640
640
|
},
|
|
641
641
|
"computed": "1280px"
|
|
642
642
|
},
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
],
|
|
648
648
|
"source": {
|
|
649
649
|
"path": "src/support/variables/layout.scss",
|
|
650
|
-
"line":
|
|
650
|
+
"line": 133
|
|
651
651
|
},
|
|
652
652
|
"computed": "544px"
|
|
653
653
|
},
|
|
@@ -658,7 +658,7 @@
|
|
|
658
658
|
],
|
|
659
659
|
"source": {
|
|
660
660
|
"path": "src/support/variables/layout.scss",
|
|
661
|
-
"line":
|
|
661
|
+
"line": 134
|
|
662
662
|
},
|
|
663
663
|
"computed": "768px"
|
|
664
664
|
},
|
|
@@ -669,7 +669,7 @@
|
|
|
669
669
|
],
|
|
670
670
|
"source": {
|
|
671
671
|
"path": "src/support/variables/layout.scss",
|
|
672
|
-
"line":
|
|
672
|
+
"line": 135
|
|
673
673
|
},
|
|
674
674
|
"computed": "1012px"
|
|
675
675
|
},
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
],
|
|
681
681
|
"source": {
|
|
682
682
|
"path": "src/support/variables/layout.scss",
|
|
683
|
-
"line":
|
|
683
|
+
"line": 136
|
|
684
684
|
},
|
|
685
685
|
"computed": "1280px"
|
|
686
686
|
},
|
|
@@ -691,7 +691,7 @@
|
|
|
691
691
|
],
|
|
692
692
|
"source": {
|
|
693
693
|
"path": "src/support/variables/layout.scss",
|
|
694
|
-
"line":
|
|
694
|
+
"line": 148
|
|
695
695
|
},
|
|
696
696
|
"computed": "calc('max-width: #{768px - 0.02px}')"
|
|
697
697
|
},
|
|
@@ -702,7 +702,7 @@
|
|
|
702
702
|
],
|
|
703
703
|
"source": {
|
|
704
704
|
"path": "src/support/variables/layout.scss",
|
|
705
|
-
"line":
|
|
705
|
+
"line": 149
|
|
706
706
|
},
|
|
707
707
|
"computed": "calc('min-width: #{768px}')"
|
|
708
708
|
},
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
],
|
|
713
713
|
"source": {
|
|
714
714
|
"path": "src/support/variables/layout.scss",
|
|
715
|
-
"line":
|
|
715
|
+
"line": 150
|
|
716
716
|
},
|
|
717
717
|
"computed": "calc('min-width: 1400px')"
|
|
718
718
|
},
|
|
@@ -747,13 +747,23 @@
|
|
|
747
747
|
},
|
|
748
748
|
"computed": "calc(1px solid var(--color-border-default))"
|
|
749
749
|
},
|
|
750
|
+
"$border-rem": {
|
|
751
|
+
"values": [
|
|
752
|
+
"var(--primer-borderWidth-thin, 1px) solid var(--color-border-default)"
|
|
753
|
+
],
|
|
754
|
+
"source": {
|
|
755
|
+
"path": "src/support/variables/misc.scss",
|
|
756
|
+
"line": 7
|
|
757
|
+
},
|
|
758
|
+
"computed": "calc(var(--primer-borderWidth-thin, 1px) solid var(--color-border-default))"
|
|
759
|
+
},
|
|
750
760
|
"$border-radius-1": {
|
|
751
761
|
"values": [
|
|
752
762
|
"4px"
|
|
753
763
|
],
|
|
754
764
|
"source": {
|
|
755
765
|
"path": "src/support/variables/misc.scss",
|
|
756
|
-
"line":
|
|
766
|
+
"line": 10
|
|
757
767
|
},
|
|
758
768
|
"computed": "4px"
|
|
759
769
|
},
|
|
@@ -763,7 +773,7 @@
|
|
|
763
773
|
],
|
|
764
774
|
"source": {
|
|
765
775
|
"path": "src/support/variables/misc.scss",
|
|
766
|
-
"line":
|
|
776
|
+
"line": 11
|
|
767
777
|
},
|
|
768
778
|
"computed": "6px"
|
|
769
779
|
},
|
|
@@ -773,7 +783,7 @@
|
|
|
773
783
|
],
|
|
774
784
|
"source": {
|
|
775
785
|
"path": "src/support/variables/misc.scss",
|
|
776
|
-
"line":
|
|
786
|
+
"line": 12
|
|
777
787
|
},
|
|
778
788
|
"computed": "8px"
|
|
779
789
|
},
|
|
@@ -784,7 +794,7 @@
|
|
|
784
794
|
],
|
|
785
795
|
"source": {
|
|
786
796
|
"path": "src/support/variables/misc.scss",
|
|
787
|
-
"line":
|
|
797
|
+
"line": 13
|
|
788
798
|
},
|
|
789
799
|
"computed": "6px"
|
|
790
800
|
},
|
|
@@ -794,7 +804,7 @@
|
|
|
794
804
|
],
|
|
795
805
|
"source": {
|
|
796
806
|
"path": "src/support/variables/misc.scss",
|
|
797
|
-
"line":
|
|
807
|
+
"line": 16
|
|
798
808
|
},
|
|
799
809
|
"computed": "250px"
|
|
800
810
|
},
|
|
@@ -804,7 +814,7 @@
|
|
|
804
814
|
],
|
|
805
815
|
"source": {
|
|
806
816
|
"path": "src/support/variables/misc.scss",
|
|
807
|
-
"line":
|
|
817
|
+
"line": 17
|
|
808
818
|
},
|
|
809
819
|
"computed": "0.4s"
|
|
810
820
|
},
|
|
@@ -814,7 +824,7 @@
|
|
|
814
824
|
],
|
|
815
825
|
"source": {
|
|
816
826
|
"path": "src/support/variables/misc.scss",
|
|
817
|
-
"line":
|
|
827
|
+
"line": 18
|
|
818
828
|
},
|
|
819
829
|
"computed": "0.1s"
|
|
820
830
|
},
|
|
@@ -913,13 +923,13 @@
|
|
|
913
923
|
"$mktg-header-weight-default": {
|
|
914
924
|
"values": [
|
|
915
925
|
"$font-weight-bold",
|
|
916
|
-
"600"
|
|
926
|
+
"var(--base-text-weight-medium, 600)"
|
|
917
927
|
],
|
|
918
928
|
"source": {
|
|
919
929
|
"path": "src/marketing/support/variables.scss",
|
|
920
930
|
"line": 13
|
|
921
931
|
},
|
|
922
|
-
"computed": "600"
|
|
932
|
+
"computed": "calc(var(--base-text-weight-medium, 600))"
|
|
923
933
|
},
|
|
924
934
|
"$mktg-header-weight-threshold": {
|
|
925
935
|
"values": [
|
package/package.json
CHANGED
package/primitives/index.scss
CHANGED
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/size.css';
|
|
8
8
|
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/size/viewport.css';
|
|
9
9
|
@import '@primer/primitives/tokens-v2-private/css/tokens/functional/typography/typography.css';
|
|
10
|
+
@import './temp-typography-tokens.scss';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Temporary typography vars in rem units variables
|
|
2
|
+
:root {
|
|
3
|
+
// Heading sizes - mobile
|
|
4
|
+
// h4-h6 remain the same size on both mobile & desktop
|
|
5
|
+
--h00-size-mobile: 2.5rem;
|
|
6
|
+
--h0-size-mobile: 2rem;
|
|
7
|
+
--h1-size-mobile: 1.625rem;
|
|
8
|
+
--h2-size-mobile: 1.375rem;
|
|
9
|
+
--h3-size-mobile: 1.125rem;
|
|
10
|
+
|
|
11
|
+
// Heading sizes - desktop
|
|
12
|
+
--h00-size: 3rem;
|
|
13
|
+
--h0-size: 2.5rem;
|
|
14
|
+
--h1-size: 2rem;
|
|
15
|
+
--h2-size: 1.5rem;
|
|
16
|
+
--h3-size: 1.25rem;
|
|
17
|
+
--h4-size: 1rem;
|
|
18
|
+
--h5-size: 0.875rem;
|
|
19
|
+
--h6-size: 0.75rem;
|
|
20
|
+
--body-font-size: 0.875rem;
|
|
21
|
+
--font-size-small: 0.75rem;
|
|
22
|
+
}
|
|
@@ -10,32 +10,32 @@
|
|
|
10
10
|
// Heading mixins for use within components
|
|
11
11
|
// These match heading utilities in utilities/typography
|
|
12
12
|
@mixin h1 {
|
|
13
|
-
font-size: $h1-size;
|
|
13
|
+
font-size: var(--h1-size, $h1-size);
|
|
14
14
|
font-weight: $font-weight-bold;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@mixin h2 {
|
|
18
|
-
font-size: $h2-size;
|
|
18
|
+
font-size: var(--h2-size, $h2-size);
|
|
19
19
|
font-weight: $font-weight-bold;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
@mixin h3 {
|
|
23
|
-
font-size: $h3-size;
|
|
23
|
+
font-size: var(--h3-size, $h3-size);
|
|
24
24
|
font-weight: $font-weight-bold;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@mixin h4 {
|
|
28
|
-
font-size: $h4-size;
|
|
28
|
+
font-size: var(--h4-size, $h4-size);
|
|
29
29
|
font-weight: $font-weight-bold;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
@mixin h5 {
|
|
33
|
-
font-size: $h5-size;
|
|
33
|
+
font-size: var(--h5-size, $h5-size);
|
|
34
34
|
font-weight: $font-weight-bold;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
@mixin h6 {
|
|
38
|
-
font-size: $h6-size;
|
|
38
|
+
font-size: var(--h6-size, $h6-size);
|
|
39
39
|
font-weight: $font-weight-bold;
|
|
40
40
|
}
|
|
41
41
|
|
|
@@ -43,24 +43,30 @@
|
|
|
43
43
|
// There are no responsive mixins for h4-h6 because they are small
|
|
44
44
|
// and don't need to be smaller on mobile.
|
|
45
45
|
@mixin f1-responsive {
|
|
46
|
-
font-size: $h1-size-mobile;
|
|
46
|
+
font-size: var(--h1-size-mobile, $h1-size-mobile);
|
|
47
47
|
|
|
48
48
|
// 32px on desktop
|
|
49
|
-
@include breakpoint(md) {
|
|
49
|
+
@include breakpoint(md) {
|
|
50
|
+
font-size: var(--h1-size, $h1-size);
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
@mixin f2-responsive {
|
|
53
|
-
font-size: $h2-size-mobile;
|
|
55
|
+
font-size: var(--h2-size-mobile, $h2-size-mobile);
|
|
54
56
|
|
|
55
57
|
// 24px on desktop
|
|
56
|
-
@include breakpoint(md) {
|
|
58
|
+
@include breakpoint(md) {
|
|
59
|
+
font-size: var(--h2-size, $h2-size);
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
@mixin f3-responsive {
|
|
60
|
-
font-size: $h3-size-mobile;
|
|
64
|
+
font-size: var(--h3-size-mobile, $h3-size-mobile);
|
|
61
65
|
|
|
62
66
|
// 20px on desktop
|
|
63
|
-
@include breakpoint(md) {
|
|
67
|
+
@include breakpoint(md) {
|
|
68
|
+
font-size: var(--h3-size, $h3-size);
|
|
69
|
+
}
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
// These use the mixins from above for responsive heading sizes.
|