@skyscanner/backpack-web 38.22.0 → 39.0.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.
Files changed (44) hide show
  1. package/bpk-mixins/_badges-v2.scss +37 -36
  2. package/bpk-mixins/_badges.scss +37 -36
  3. package/bpk-mixins/_borders.scss +16 -16
  4. package/bpk-mixins/_breakpoints.scss +11 -11
  5. package/bpk-mixins/_buttons.scss +141 -137
  6. package/bpk-mixins/_cards.scss +13 -13
  7. package/bpk-mixins/_chips.scss +66 -66
  8. package/bpk-mixins/_forms.scss +214 -202
  9. package/bpk-mixins/_icons.scss +7 -4
  10. package/bpk-mixins/_index.scss +19 -19
  11. package/bpk-mixins/_layers.scss +34 -34
  12. package/bpk-mixins/_margins.scss +3 -3
  13. package/bpk-mixins/_panels.scss +9 -9
  14. package/bpk-mixins/_radii.scss +6 -6
  15. package/bpk-mixins/_scroll-indicators.scss +2 -2
  16. package/bpk-mixins/_shadows.scss +4 -4
  17. package/bpk-mixins/_spinners.scss +10 -10
  18. package/bpk-mixins/_tokens.scss +1 -3
  19. package/bpk-mixins/_typography.scss +204 -195
  20. package/bpk-mixins/_utils.scss +17 -12
  21. package/bpk-stylesheets/index.scss +13 -14
  22. package/bpk-stylesheets/normalize.css +18 -422
  23. package/bpk-stylesheets/normalize.scss +422 -0
  24. package/package.json +1 -5
  25. package/unstable__bpk-mixins/_badges-v2.scss +0 -240
  26. package/unstable__bpk-mixins/_badges.scss +0 -240
  27. package/unstable__bpk-mixins/_borders.scss +0 -268
  28. package/unstable__bpk-mixins/_breakpoints.scss +0 -221
  29. package/unstable__bpk-mixins/_buttons.scss +0 -587
  30. package/unstable__bpk-mixins/_cards.scss +0 -94
  31. package/unstable__bpk-mixins/_chips.scss +0 -249
  32. package/unstable__bpk-mixins/_forms.scss +0 -1045
  33. package/unstable__bpk-mixins/_icons.scss +0 -88
  34. package/unstable__bpk-mixins/_index.scss +0 -38
  35. package/unstable__bpk-mixins/_layers.scss +0 -199
  36. package/unstable__bpk-mixins/_margins.scss +0 -75
  37. package/unstable__bpk-mixins/_panels.scss +0 -96
  38. package/unstable__bpk-mixins/_radii.scss +0 -80
  39. package/unstable__bpk-mixins/_scroll-indicators.scss +0 -79
  40. package/unstable__bpk-mixins/_shadows.scss +0 -58
  41. package/unstable__bpk-mixins/_spinners.scss +0 -102
  42. package/unstable__bpk-mixins/_tokens.scss +0 -19
  43. package/unstable__bpk-mixins/_typography.scss +0 -1225
  44. package/unstable__bpk-mixins/_utils.scss +0 -267
@@ -18,10 +18,10 @@
18
18
 
19
19
  /* stylelint-disable at-rule-disallowed-list */
20
20
 
21
- @import 'tokens.scss';
22
- @import 'borders.scss';
23
- @import 'radii.scss';
24
- @import 'utils.scss';
21
+ @use 'tokens';
22
+ @use 'borders';
23
+ @use 'radii';
24
+ @use 'utils';
25
25
 
26
26
  ////
27
27
  /// @group typography
@@ -77,9 +77,9 @@
77
77
 
78
78
  @mixin bpk-text--xs {
79
79
  @include _bpk-text-factory(
80
- $bpk-font-size-xs,
81
- $bpk-line-height-xs,
82
- $bpk-font-weight-book
80
+ tokens.$bpk-font-size-xs,
81
+ tokens.$bpk-line-height-xs,
82
+ tokens.$bpk-font-weight-book
83
83
  );
84
84
  }
85
85
 
@@ -106,9 +106,9 @@
106
106
 
107
107
  @mixin bpk-text--sm {
108
108
  @include _bpk-text-factory(
109
- $bpk-font-size-sm,
110
- $bpk-line-height-sm,
111
- $bpk-font-weight-book
109
+ tokens.$bpk-font-size-sm,
110
+ tokens.$bpk-line-height-sm,
111
+ tokens.$bpk-font-weight-book
112
112
  );
113
113
  }
114
114
 
@@ -135,9 +135,9 @@
135
135
 
136
136
  @mixin bpk-text--base {
137
137
  @include _bpk-text-factory(
138
- $bpk-font-size-base,
139
- $bpk-line-height-base,
140
- $bpk-font-weight-book
138
+ tokens.$bpk-font-size-base,
139
+ tokens.$bpk-line-height-base,
140
+ tokens.$bpk-font-weight-book
141
141
  );
142
142
  }
143
143
 
@@ -164,9 +164,9 @@
164
164
 
165
165
  @mixin bpk-text--lg {
166
166
  @include _bpk-text-factory(
167
- $bpk-font-size-lg,
168
- $bpk-line-height-lg,
169
- $bpk-font-weight-book
167
+ tokens.$bpk-font-size-lg,
168
+ tokens.$bpk-line-height-lg,
169
+ tokens.$bpk-font-weight-book
170
170
  );
171
171
  }
172
172
 
@@ -193,9 +193,9 @@
193
193
 
194
194
  @mixin bpk-text--xl {
195
195
  @include _bpk-text-factory(
196
- $bpk-font-size-xl,
197
- $bpk-line-height-xl,
198
- $bpk-font-weight-book
196
+ tokens.$bpk-font-size-xl,
197
+ tokens.$bpk-line-height-xl,
198
+ tokens.$bpk-font-weight-book
199
199
  );
200
200
  }
201
201
 
@@ -222,9 +222,9 @@
222
222
 
223
223
  @mixin bpk-text--xxl {
224
224
  @include _bpk-text-factory(
225
- $bpk-font-size-xxl,
226
- $bpk-line-height-xxl,
227
- $bpk-font-weight-bold
225
+ tokens.$bpk-font-size-xxl,
226
+ tokens.$bpk-line-height-xxl,
227
+ tokens.$bpk-font-weight-bold
228
228
  );
229
229
  }
230
230
 
@@ -251,9 +251,9 @@
251
251
 
252
252
  @mixin bpk-text--xxxl {
253
253
  @include _bpk-text-factory(
254
- $bpk-font-size-xxxl,
255
- $bpk-line-height-xxxl,
256
- $bpk-font-weight-bold
254
+ tokens.$bpk-font-size-xxxl,
255
+ tokens.$bpk-line-height-xxxl,
256
+ tokens.$bpk-font-weight-bold
257
257
  );
258
258
  }
259
259
 
@@ -280,10 +280,10 @@
280
280
 
281
281
  @mixin bpk-text--xxxxl {
282
282
  @include _bpk-text-factory(
283
- $bpk-font-size-xxxxl,
284
- $bpk-line-height-xxxxl,
285
- $bpk-font-weight-bold,
286
- $bpk-letter-spacing-tight
283
+ tokens.$bpk-font-size-xxxxl,
284
+ tokens.$bpk-line-height-xxxxl,
285
+ tokens.$bpk-font-weight-bold,
286
+ tokens.$bpk-letter-spacing-tight
287
287
  );
288
288
  }
289
289
 
@@ -310,10 +310,10 @@
310
310
 
311
311
  @mixin bpk-text--xxxxxl {
312
312
  @include _bpk-text-factory(
313
- $bpk-font-size-xxxxxl,
314
- $bpk-line-height-xxxxxl,
315
- $bpk-font-weight-bold,
316
- $bpk-letter-spacing-tight
313
+ tokens.$bpk-font-size-xxxxxl,
314
+ tokens.$bpk-line-height-xxxxxl,
315
+ tokens.$bpk-font-weight-bold,
316
+ tokens.$bpk-letter-spacing-tight
317
317
  );
318
318
  }
319
319
 
@@ -339,7 +339,7 @@
339
339
  /// }
340
340
 
341
341
  @mixin bpk-text--bold {
342
- font-weight: $bpk-font-weight-bold;
342
+ font-weight: tokens.$bpk-font-weight-bold;
343
343
  }
344
344
 
345
345
  /// Bold text style (without margin reset)
@@ -364,7 +364,7 @@
364
364
  /// }
365
365
 
366
366
  @mixin bpk-text--black {
367
- font-weight: $bpk-font-weight-black;
367
+ font-weight: tokens.$bpk-font-weight-black;
368
368
  }
369
369
 
370
370
  /// Black text style (without margin reset)
@@ -387,9 +387,9 @@
387
387
 
388
388
  @mixin bpk-caption {
389
389
  @include _bpk-text-factory(
390
- $bpk-font-size-xs,
391
- $bpk-line-height-xs,
392
- $bpk-font-weight-book
390
+ tokens.$bpk-font-size-xs,
391
+ tokens.$bpk-line-height-xs,
392
+ tokens.$bpk-font-weight-book
393
393
  );
394
394
  }
395
395
 
@@ -402,9 +402,9 @@
402
402
 
403
403
  @mixin bpk-footnote {
404
404
  @include _bpk-text-factory(
405
- $bpk-font-size-sm,
406
- $bpk-line-height-sm,
407
- $bpk-font-weight-book
405
+ tokens.$bpk-font-size-sm,
406
+ tokens.$bpk-line-height-sm,
407
+ tokens.$bpk-font-weight-book
408
408
  );
409
409
  }
410
410
 
@@ -417,9 +417,9 @@
417
417
 
418
418
  @mixin bpk-label-1 {
419
419
  @include _bpk-text-factory(
420
- $bpk-font-size-base,
421
- $bpk-line-height-base,
422
- $bpk-font-weight-bold
420
+ tokens.$bpk-font-size-base,
421
+ tokens.$bpk-line-height-base,
422
+ tokens.$bpk-font-weight-bold
423
423
  );
424
424
  }
425
425
 
@@ -432,9 +432,9 @@
432
432
 
433
433
  @mixin bpk-label-2 {
434
434
  @include _bpk-text-factory(
435
- $bpk-font-size-sm,
436
- $bpk-line-height-sm,
437
- $bpk-font-weight-bold
435
+ tokens.$bpk-font-size-sm,
436
+ tokens.$bpk-line-height-sm,
437
+ tokens.$bpk-font-weight-bold
438
438
  );
439
439
  }
440
440
 
@@ -447,9 +447,9 @@
447
447
 
448
448
  @mixin bpk-label-3 {
449
449
  @include _bpk-text-factory(
450
- $bpk-font-size-xs,
451
- $bpk-line-height-xs,
452
- $bpk-font-weight-bold
450
+ tokens.$bpk-font-size-xs,
451
+ tokens.$bpk-line-height-xs,
452
+ tokens.$bpk-font-weight-bold
453
453
  );
454
454
  }
455
455
 
@@ -462,9 +462,9 @@
462
462
 
463
463
  @mixin bpk-body-default {
464
464
  @include _bpk-text-factory(
465
- $bpk-font-size-base,
466
- $bpk-line-height-base,
467
- $bpk-font-weight-book
465
+ tokens.$bpk-font-size-base,
466
+ tokens.$bpk-line-height-base,
467
+ tokens.$bpk-font-weight-book
468
468
  );
469
469
  }
470
470
 
@@ -477,9 +477,9 @@
477
477
 
478
478
  @mixin bpk-body-longform {
479
479
  @include _bpk-text-factory(
480
- $bpk-font-size-lg,
481
- $bpk-line-height-lg,
482
- $bpk-font-weight-book
480
+ tokens.$bpk-font-size-lg,
481
+ tokens.$bpk-line-height-lg,
482
+ tokens.$bpk-font-weight-book
483
483
  );
484
484
  }
485
485
 
@@ -492,9 +492,9 @@
492
492
 
493
493
  @mixin bpk-subheading {
494
494
  @include _bpk-text-factory(
495
- $bpk-font-size-xl,
496
- $bpk-line-height-xl,
497
- $bpk-font-weight-book
495
+ tokens.$bpk-font-size-xl,
496
+ tokens.$bpk-line-height-xl,
497
+ tokens.$bpk-font-weight-book
498
498
  );
499
499
  }
500
500
 
@@ -506,12 +506,12 @@
506
506
  /// }
507
507
 
508
508
  @mixin bpk-editorial-1 {
509
- font-family: $bpk-font-family-larken;
509
+ font-family: tokens.$bpk-font-family-larken;
510
510
 
511
511
  @include _bpk-text-factory(
512
- $bpk-font-size-xxxxl,
513
- $bpk-line-height-xxxxl,
514
- $bpk-font-weight-light
512
+ tokens.$bpk-font-size-xxxxl,
513
+ tokens.$bpk-line-height-xxxxl,
514
+ tokens.$bpk-font-weight-light
515
515
  );
516
516
  }
517
517
 
@@ -523,12 +523,12 @@
523
523
  /// }
524
524
 
525
525
  @mixin bpk-editorial-2 {
526
- font-family: $bpk-font-family-larken;
526
+ font-family: tokens.$bpk-font-family-larken;
527
527
 
528
528
  @include _bpk-text-factory(
529
- $bpk-font-size-xxl,
530
- $bpk-line-height-xxl,
531
- $bpk-font-weight-light
529
+ tokens.$bpk-font-size-xxl,
530
+ tokens.$bpk-line-height-xxl,
531
+ tokens.$bpk-font-weight-light
532
532
  );
533
533
  }
534
534
 
@@ -540,12 +540,12 @@
540
540
  /// }
541
541
 
542
542
  @mixin bpk-editorial-3 {
543
- font-family: $bpk-font-family-larken;
543
+ font-family: tokens.$bpk-font-family-larken;
544
544
 
545
545
  @include _bpk-text-factory(
546
- $bpk-font-size-lg,
547
- $bpk-line-height-lg,
548
- $bpk-font-weight-book
546
+ tokens.$bpk-font-size-lg,
547
+ tokens.$bpk-line-height-lg,
548
+ tokens.$bpk-font-weight-book
549
549
  );
550
550
  }
551
551
 
@@ -558,10 +558,10 @@
558
558
 
559
559
  @mixin bpk-hero-1 {
560
560
  @include _bpk-text-factory(
561
- $bpk-font-size-8-xl,
562
- $bpk-line-height-8-xl,
563
- $bpk-font-weight-black,
564
- $bpk-letter-spacing-hero
561
+ tokens.$bpk-font-size-8-xl,
562
+ tokens.$bpk-line-height-8-xl,
563
+ tokens.$bpk-font-weight-black,
564
+ tokens.$bpk-letter-spacing-hero
565
565
  );
566
566
  }
567
567
 
@@ -574,10 +574,10 @@
574
574
 
575
575
  @mixin bpk-hero-2 {
576
576
  @include _bpk-text-factory(
577
- $bpk-font-size-7-xl,
578
- $bpk-line-height-7-xl,
579
- $bpk-font-weight-black,
580
- $bpk-letter-spacing-hero
577
+ tokens.$bpk-font-size-7-xl,
578
+ tokens.$bpk-line-height-7-xl,
579
+ tokens.$bpk-font-weight-black,
580
+ tokens.$bpk-letter-spacing-hero
581
581
  );
582
582
  }
583
583
 
@@ -590,10 +590,10 @@
590
590
 
591
591
  @mixin bpk-hero-3 {
592
592
  @include _bpk-text-factory(
593
- $bpk-font-size-6-xl,
594
- $bpk-line-height-6-xl,
595
- $bpk-font-weight-black,
596
- $bpk-letter-spacing-hero
593
+ tokens.$bpk-font-size-6-xl,
594
+ tokens.$bpk-line-height-6-xl,
595
+ tokens.$bpk-font-weight-black,
596
+ tokens.$bpk-letter-spacing-hero
597
597
  );
598
598
  }
599
599
 
@@ -606,10 +606,10 @@
606
606
 
607
607
  @mixin bpk-hero-4 {
608
608
  @include _bpk-text-factory(
609
- $bpk-font-size-xxxxxl,
610
- $bpk-line-height-xxxxxl,
611
- $bpk-font-weight-black,
612
- $bpk-letter-spacing-hero
609
+ tokens.$bpk-font-size-xxxxxl,
610
+ tokens.$bpk-line-height-xxxxxl,
611
+ tokens.$bpk-font-weight-black,
612
+ tokens.$bpk-letter-spacing-hero
613
613
  );
614
614
  }
615
615
 
@@ -622,10 +622,10 @@
622
622
 
623
623
  @mixin bpk-hero-5 {
624
624
  @include _bpk-text-factory(
625
- $bpk-font-size-xxxxl,
626
- $bpk-line-height-xxxl,
627
- $bpk-font-weight-black,
628
- $bpk-letter-spacing-hero
625
+ tokens.$bpk-font-size-xxxxl,
626
+ tokens.$bpk-line-height-xxxl,
627
+ tokens.$bpk-font-weight-black,
628
+ tokens.$bpk-letter-spacing-hero
629
629
  );
630
630
  }
631
631
 
@@ -638,10 +638,10 @@
638
638
 
639
639
  @mixin bpk-hero-6 {
640
640
  @include _bpk-text-factory(
641
- $bpk-font-size-xxxl,
642
- $bpk-line-height-xxl,
643
- $bpk-font-weight-black,
644
- $bpk-letter-spacing-hero
641
+ tokens.$bpk-font-size-xxxl,
642
+ tokens.$bpk-line-height-xxl,
643
+ tokens.$bpk-font-weight-black,
644
+ tokens.$bpk-letter-spacing-hero
645
645
  );
646
646
  }
647
647
 
@@ -654,9 +654,9 @@
654
654
 
655
655
  @mixin bpk-heading-1 {
656
656
  @include _bpk-text-factory(
657
- $bpk-font-size-xxxl,
658
- $bpk-line-height-xxxl,
659
- $bpk-font-weight-bold
657
+ tokens.$bpk-font-size-xxxl,
658
+ tokens.$bpk-line-height-xxxl,
659
+ tokens.$bpk-font-weight-bold
660
660
  );
661
661
  }
662
662
 
@@ -669,9 +669,9 @@
669
669
 
670
670
  @mixin bpk-heading-2 {
671
671
  @include _bpk-text-factory(
672
- $bpk-font-size-xxl,
673
- $bpk-line-height-xxl,
674
- $bpk-font-weight-bold
672
+ tokens.$bpk-font-size-xxl,
673
+ tokens.$bpk-line-height-xxl,
674
+ tokens.$bpk-font-weight-bold
675
675
  );
676
676
  }
677
677
 
@@ -684,9 +684,9 @@
684
684
 
685
685
  @mixin bpk-heading-3 {
686
686
  @include _bpk-text-factory(
687
- $bpk-font-size-xl,
688
- $bpk-line-height-xl-tight,
689
- $bpk-font-weight-bold
687
+ tokens.$bpk-font-size-xl,
688
+ tokens.$bpk-line-height-xl-tight,
689
+ tokens.$bpk-font-weight-bold
690
690
  );
691
691
  }
692
692
 
@@ -699,9 +699,9 @@
699
699
 
700
700
  @mixin bpk-heading-4 {
701
701
  @include _bpk-text-factory(
702
- $bpk-font-size-lg,
703
- $bpk-line-height-lg-tight,
704
- $bpk-font-weight-bold
702
+ tokens.$bpk-font-size-lg,
703
+ tokens.$bpk-line-height-lg-tight,
704
+ tokens.$bpk-font-weight-bold
705
705
  );
706
706
  }
707
707
 
@@ -714,9 +714,9 @@
714
714
 
715
715
  @mixin bpk-heading-5 {
716
716
  @include _bpk-text-factory(
717
- $bpk-font-size-base,
718
- $bpk-line-height-base-tight,
719
- $bpk-font-weight-bold
717
+ tokens.$bpk-font-size-base,
718
+ tokens.$bpk-line-height-base-tight,
719
+ tokens.$bpk-font-weight-bold
720
720
  );
721
721
  }
722
722
 
@@ -728,8 +728,8 @@
728
728
  /// }
729
729
 
730
730
  @mixin bpk-paragraph {
731
- margin-top: $bpk-spacing-none;
732
- margin-bottom: bpk-spacing-base();
731
+ margin-top: tokens.$bpk-spacing-none;
732
+ margin-bottom: tokens.bpk-spacing-base();
733
733
  }
734
734
 
735
735
  /// List.
@@ -740,9 +740,9 @@
740
740
  /// }
741
741
 
742
742
  @mixin bpk-list {
743
- margin-top: bpk-spacing-base();
744
- margin-bottom: bpk-spacing-base();
745
- padding-left: bpk-spacing-lg();
743
+ margin-top: tokens.bpk-spacing-base();
744
+ margin-bottom: tokens.bpk-spacing-base();
745
+ padding-left: tokens.bpk-spacing-lg();
746
746
  }
747
747
 
748
748
  /// Nested list. Modifies the bpk-list mixin.
@@ -756,10 +756,10 @@
756
756
  /// }
757
757
 
758
758
  @mixin bpk-list--nested {
759
- margin-top: $bpk-spacing-none;
760
- margin-bottom: $bpk-spacing-none;
761
- padding-top: bpk-spacing-md();
762
- padding-bottom: bpk-spacing-sm();
759
+ margin-top: tokens.$bpk-spacing-none;
760
+ margin-bottom: tokens.$bpk-spacing-none;
761
+ padding-top: tokens.bpk-spacing-md();
762
+ padding-bottom: tokens.bpk-spacing-sm();
763
763
  }
764
764
 
765
765
  /// List item.
@@ -771,7 +771,7 @@
771
771
 
772
772
  @mixin bpk-list-item {
773
773
  margin-top: 0;
774
- margin-bottom: bpk-spacing-sm();
774
+ margin-bottom: tokens.bpk-spacing-sm();
775
775
  }
776
776
 
777
777
  /// Underlined part inside an inline link.
@@ -782,15 +782,18 @@
782
782
  /// }
783
783
 
784
784
  @mixin bpk-link-underlined {
785
- padding-bottom: $bpk-one-pixel-rem;
785
+ padding-bottom: tokens.$bpk-one-pixel-rem;
786
786
  transition: background-size 200ms ease;
787
- background: linear-gradient($bpk-text-primary-day, $bpk-text-primary-day);
787
+ background: linear-gradient(
788
+ tokens.$bpk-text-primary-day,
789
+ tokens.$bpk-text-primary-day
790
+ );
788
791
  background-repeat: no-repeat;
789
792
  background-position: 0 100%;
790
- background-size: 100% $bpk-border-size-sm;
793
+ background-size: 100% tokens.$bpk-border-size-sm;
791
794
 
792
- @include bpk-hover {
793
- background-size: 0 $bpk-border-size-sm;
795
+ @include utils.bpk-hover {
796
+ background-size: 0 tokens.$bpk-border-size-sm;
794
797
  }
795
798
  }
796
799
 
@@ -802,10 +805,10 @@
802
805
  /// }
803
806
 
804
807
  @mixin bpk-link-underlined--implicit {
805
- background-size: 0 $bpk-border-size-sm;
808
+ background-size: 0 tokens.$bpk-border-size-sm;
806
809
 
807
- @include bpk-hover {
808
- background-size: 100% $bpk-border-size-sm;
810
+ @include utils.bpk-hover {
811
+ background-size: 100% tokens.$bpk-border-size-sm;
809
812
  }
810
813
  }
811
814
 
@@ -817,13 +820,16 @@
817
820
  /// }
818
821
 
819
822
  @mixin bpk-link-underlined--alternate {
820
- background: linear-gradient($bpk-text-on-dark-day, $bpk-text-on-dark-day);
823
+ background: linear-gradient(
824
+ tokens.$bpk-text-on-dark-day,
825
+ tokens.$bpk-text-on-dark-day
826
+ );
821
827
  background-repeat: no-repeat;
822
828
  background-position: 0 100%;
823
- background-size: 100% $bpk-border-size-sm;
829
+ background-size: 100% tokens.$bpk-border-size-sm;
824
830
 
825
- @include bpk-hover {
826
- background-size: 0 $bpk-border-size-sm;
831
+ @include utils.bpk-hover {
832
+ background-size: 0 tokens.$bpk-border-size-sm;
827
833
  }
828
834
  }
829
835
 
@@ -835,13 +841,16 @@
835
841
  /// }
836
842
 
837
843
  @mixin bpk-link-underlined-implicit--alternate {
838
- background: linear-gradient($bpk-text-on-dark-day, $bpk-text-on-dark-day);
844
+ background: linear-gradient(
845
+ tokens.$bpk-text-on-dark-day,
846
+ tokens.$bpk-text-on-dark-day
847
+ );
839
848
  background-repeat: no-repeat;
840
849
  background-position: 0 100%;
841
- background-size: 0 $bpk-border-size-sm;
850
+ background-size: 0 tokens.$bpk-border-size-sm;
842
851
 
843
- @include bpk-hover {
844
- background-size: 100% $bpk-border-size-sm;
852
+ @include utils.bpk-hover {
853
+ background-size: 100% tokens.$bpk-border-size-sm;
845
854
  }
846
855
  }
847
856
 
@@ -862,35 +871,35 @@
862
871
  cursor: pointer;
863
872
  appearance: none;
864
873
 
865
- @include bpk-themeable-property(
874
+ @include utils.bpk-themeable-property(
866
875
  color,
867
876
  --bpk-link-color,
868
- $bpk-text-primary-day
877
+ tokens.$bpk-text-primary-day
869
878
  );
870
879
 
871
- @include bpk-hover {
880
+ @include utils.bpk-hover {
872
881
  text-decoration: none;
873
882
 
874
- @include bpk-themeable-property(
883
+ @include utils.bpk-themeable-property(
875
884
  color,
876
885
  --bpk-link-hover-color,
877
- $bpk-text-primary-day
886
+ tokens.$bpk-text-primary-day
878
887
  );
879
888
  }
880
889
 
881
890
  &:visited {
882
- @include bpk-themeable-property(
891
+ @include utils.bpk-themeable-property(
883
892
  color,
884
893
  --bpk-link-visited-color,
885
- $bpk-text-primary-day
894
+ tokens.$bpk-text-primary-day
886
895
  );
887
896
  }
888
897
 
889
898
  &:active {
890
- @include bpk-themeable-property(
899
+ @include utils.bpk-themeable-property(
891
900
  color,
892
901
  --bpk-link-active-color,
893
- $bpk-text-primary-day
902
+ tokens.$bpk-text-primary-day
894
903
  );
895
904
  }
896
905
  }
@@ -904,27 +913,27 @@
904
913
  /// }
905
914
 
906
915
  @mixin bpk-link--implicit {
907
- @include bpk-themeable-property(
916
+ @include utils.bpk-themeable-property(
908
917
  color,
909
918
  --bpk-link-color,
910
- $bpk-text-primary-day
919
+ tokens.$bpk-text-primary-day
911
920
  );
912
921
 
913
- @include bpk-hover {
914
- @include bpk-themeable-property(
922
+ @include utils.bpk-hover {
923
+ @include utils.bpk-themeable-property(
915
924
  color,
916
925
  --bpk-link-hover-color,
917
- $bpk-text-primary-day
926
+ tokens.$bpk-text-primary-day
918
927
  );
919
928
  }
920
929
 
921
930
  &:active {
922
931
  text-decoration: none;
923
932
 
924
- @include bpk-themeable-property(
933
+ @include utils.bpk-themeable-property(
925
934
  color,
926
935
  --bpk-link-active-color,
927
- $bpk-text-primary-day
936
+ tokens.$bpk-text-primary-day
928
937
  );
929
938
  }
930
939
  }
@@ -940,33 +949,33 @@
940
949
  /// }
941
950
 
942
951
  @mixin bpk-link--alternate {
943
- @include bpk-themeable-property(
952
+ @include utils.bpk-themeable-property(
944
953
  color,
945
954
  --bpk-link-alternate-color,
946
- $bpk-text-on-dark-day
955
+ tokens.$bpk-text-on-dark-day
947
956
  );
948
957
 
949
- @include bpk-hover {
950
- @include bpk-themeable-property(
958
+ @include utils.bpk-hover {
959
+ @include utils.bpk-themeable-property(
951
960
  color,
952
961
  --bpk-link-alternate-hover-color,
953
- $bpk-text-on-dark-day
962
+ tokens.$bpk-text-on-dark-day
954
963
  );
955
964
  }
956
965
 
957
966
  &:visited {
958
- @include bpk-themeable-property(
967
+ @include utils.bpk-themeable-property(
959
968
  color,
960
969
  --bpk-link-alternate-visited-color,
961
- $bpk-text-on-dark-day
970
+ tokens.$bpk-text-on-dark-day
962
971
  );
963
972
  }
964
973
 
965
974
  &:active {
966
- @include bpk-themeable-property(
975
+ @include utils.bpk-themeable-property(
967
976
  color,
968
977
  --bpk-link-alternate-active-color,
969
- $bpk-text-on-dark-day
978
+ tokens.$bpk-text-on-dark-day
970
979
  );
971
980
  }
972
981
  }
@@ -996,14 +1005,14 @@
996
1005
  /// }
997
1006
 
998
1007
  @mixin bpk-link--active {
999
- color: $bpk-text-primary-day;
1008
+ color: tokens.$bpk-text-primary-day;
1000
1009
 
1001
1010
  &:visited {
1002
- color: $bpk-text-primary-day;
1011
+ color: tokens.$bpk-text-primary-day;
1003
1012
  }
1004
1013
 
1005
1014
  &:active {
1006
- color: $bpk-text-primary-day;
1015
+ color: tokens.$bpk-text-primary-day;
1007
1016
  }
1008
1017
  }
1009
1018
 
@@ -1016,11 +1025,11 @@
1016
1025
 
1017
1026
  @mixin bpk-table {
1018
1027
  width: 100%;
1019
- margin-bottom: bpk-spacing-md();
1028
+ margin-bottom: tokens.bpk-spacing-md();
1020
1029
  border-collapse: collapse;
1021
1030
  table-layout: fixed;
1022
1031
 
1023
- @include bpk-border-sm($bpk-line-day, '');
1032
+ @include borders.bpk-border-sm(tokens.$bpk-line-day, '');
1024
1033
  }
1025
1034
 
1026
1035
  /// Alternate table style.
@@ -1033,7 +1042,7 @@
1033
1042
  /// }
1034
1043
 
1035
1044
  @mixin bpk-table--alternate {
1036
- @include bpk-border-sm($bpk-line-day, '');
1045
+ @include borders.bpk-border-sm(tokens.$bpk-line-day, '');
1037
1046
  }
1038
1047
 
1039
1048
  /// Table cell.
@@ -1044,7 +1053,7 @@
1044
1053
  /// }
1045
1054
 
1046
1055
  @mixin bpk-table__cell {
1047
- padding: bpk-spacing-base();
1056
+ padding: tokens.bpk-spacing-base();
1048
1057
  }
1049
1058
 
1050
1059
  /// Table head cell. Modifies the bpk-table__cell mixin.
@@ -1058,12 +1067,12 @@
1058
1067
  /// }
1059
1068
 
1060
1069
  @mixin bpk-table__cell--head {
1061
- background-color: $bpk-canvas-contrast-day;
1070
+ background-color: tokens.$bpk-canvas-contrast-day;
1062
1071
  text-align: left;
1063
1072
 
1064
1073
  @include bpk-label-1;
1065
1074
 
1066
- @include bpk-rtl {
1075
+ @include utils.bpk-rtl {
1067
1076
  text-align: right;
1068
1077
  }
1069
1078
  }
@@ -1079,12 +1088,12 @@
1079
1088
  /// }
1080
1089
 
1081
1090
  @mixin bpk-table__cell--head-alternate {
1082
- background-color: $bpk-canvas-day;
1091
+ background-color: tokens.$bpk-canvas-day;
1083
1092
  text-align: left;
1084
1093
 
1085
1094
  @include bpk-text--bold;
1086
1095
 
1087
- @include bpk-rtl {
1096
+ @include utils.bpk-rtl {
1088
1097
  text-align: right;
1089
1098
  }
1090
1099
  }
@@ -1098,16 +1107,16 @@
1098
1107
 
1099
1108
  @mixin bpk-code {
1100
1109
  display: inline;
1101
- padding: 0 bpk-spacing-sm();
1102
- background-color: $bpk-surface-highlight-day;
1103
- color: $bpk-text-primary-day;
1110
+ padding: 0 tokens.bpk-spacing-sm();
1111
+ background-color: tokens.$bpk-surface-highlight-day;
1112
+ color: tokens.$bpk-text-primary-day;
1104
1113
  text-align: left;
1105
1114
  white-space: nowrap;
1106
1115
  vertical-align: bottom;
1107
1116
 
1108
- @include bpk-border-radius-xs;
1117
+ @include radii.bpk-border-radius-xs;
1109
1118
 
1110
- @include bpk-rtl {
1119
+ @include utils.bpk-rtl {
1111
1120
  direction: ltr;
1112
1121
  }
1113
1122
  }
@@ -1121,7 +1130,7 @@
1121
1130
  /// }
1122
1131
 
1123
1132
  @mixin bpk-code--alternate {
1124
- background-color: $bpk-canvas-contrast-day;
1133
+ background-color: tokens.$bpk-canvas-contrast-day;
1125
1134
  text-shadow: none;
1126
1135
  }
1127
1136
 
@@ -1157,11 +1166,11 @@
1157
1166
  /// }
1158
1167
 
1159
1168
  @mixin bpk-code__pre {
1160
- margin: 0 0 bpk-spacing-base();
1161
- padding: bpk-spacing-lg();
1162
- background-color: $bpk-surface-highlight-day;
1169
+ margin: 0 0 tokens.bpk-spacing-base();
1170
+ padding: tokens.bpk-spacing-lg();
1171
+ background-color: tokens.$bpk-surface-highlight-day;
1163
1172
 
1164
- @include bpk-border-radius-xs;
1173
+ @include radii.bpk-border-radius-xs;
1165
1174
  }
1166
1175
 
1167
1176
  /// Pre (code block wrapper) alternate style.
@@ -1175,7 +1184,7 @@
1175
1184
  @mixin bpk-code__pre--alternate {
1176
1185
  background-color: transparent;
1177
1186
 
1178
- @include bpk-border-sm($bpk-line-day);
1187
+ @include borders.bpk-border-sm(tokens.$bpk-line-day);
1179
1188
  }
1180
1189
 
1181
1190
  /// Blockquote.
@@ -1186,21 +1195,21 @@
1186
1195
  /// }
1187
1196
 
1188
1197
  @mixin bpk-blockquote {
1189
- margin: 0 0 bpk-spacing-base() 0;
1190
- padding: bpk-spacing-lg();
1198
+ margin: 0 0 tokens.bpk-spacing-base() 0;
1199
+ padding: tokens.bpk-spacing-lg();
1191
1200
 
1192
- @include bpk-border-left-lg($bpk-core-accent-day);
1193
- @include bpk-border-left-lg(
1194
- var(--bpk-blockquote-bar-color, $bpk-core-accent-day)
1201
+ @include borders.bpk-border-left-lg(tokens.$bpk-core-accent-day);
1202
+ @include borders.bpk-border-left-lg(
1203
+ var(--bpk-blockquote-bar-color, tokens.$bpk-core-accent-day)
1195
1204
  );
1196
1205
 
1197
- @include bpk-rtl {
1198
- padding: bpk-spacing-lg();
1206
+ @include utils.bpk-rtl {
1207
+ padding: tokens.bpk-spacing-lg();
1199
1208
  border-left: 0;
1200
1209
 
1201
- @include bpk-border-right-lg($bpk-core-accent-day);
1202
- @include bpk-border-right-lg(
1203
- var(--bpk-blockquote-bar-color, $bpk-core-accent-day)
1210
+ @include borders.bpk-border-right-lg(tokens.$bpk-core-accent-day);
1211
+ @include borders.bpk-border-right-lg(
1212
+ var(--bpk-blockquote-bar-color, tokens.$bpk-core-accent-day)
1204
1213
  );
1205
1214
  }
1206
1215
 
@@ -1220,6 +1229,6 @@
1220
1229
  /// }
1221
1230
 
1222
1231
  @mixin bpk-blockquote--extra-spacing {
1223
- margin-top: bpk-spacing-xl();
1224
- margin-bottom: bpk-spacing-xl();
1232
+ margin-top: tokens.bpk-spacing-xl();
1233
+ margin-bottom: tokens.bpk-spacing-xl();
1225
1234
  }