@microsoft/atlas-css 5.0.0-test.1 → 5.0.0-test.3

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 (93) hide show
  1. package/dist/index.css.map +1 -1
  2. package/package.json +2 -2
  3. package/src/atomics/aspect-ratio.scss +0 -3
  4. package/src/atomics/background.scss +0 -3
  5. package/src/atomics/border.scss +26 -26
  6. package/src/atomics/colors.scss +53 -53
  7. package/src/atomics/display.scss +9 -9
  8. package/src/atomics/flex.scss +2 -3
  9. package/src/atomics/gap.scss +14 -14
  10. package/src/atomics/height.scss +0 -3
  11. package/src/atomics/image.scss +0 -3
  12. package/src/atomics/line-clamp.scss +5 -6
  13. package/src/atomics/list.scss +0 -3
  14. package/src/atomics/overflow.scss +2 -3
  15. package/src/atomics/position.scss +6 -6
  16. package/src/atomics/shadow.scss +5 -6
  17. package/src/atomics/spacing-auto.scss +4 -5
  18. package/src/atomics/spacing.scss +14 -14
  19. package/src/atomics/typography.scss +39 -39
  20. package/src/atomics/visually-hidden.scss +2 -3
  21. package/src/atomics/width.scss +3 -4
  22. package/src/components/accordion.scss +18 -17
  23. package/src/components/badge.scss +20 -21
  24. package/src/components/banner.scss +18 -18
  25. package/src/components/breadcrumbs.scss +3 -4
  26. package/src/components/button-reset.scss +2 -3
  27. package/src/components/button.scss +54 -55
  28. package/src/components/buttons.scss +9 -9
  29. package/src/components/card.scss +30 -30
  30. package/src/components/code-block.scss +18 -18
  31. package/src/components/form/checkbox.scss +18 -18
  32. package/src/components/form/form.scss +15 -15
  33. package/src/components/form/help.scss +5 -6
  34. package/src/components/form/input.scss +26 -26
  35. package/src/components/form/label.scss +4 -5
  36. package/src/components/form/radio.scss +18 -18
  37. package/src/components/form/select.scss +28 -26
  38. package/src/components/form/textarea.scss +27 -27
  39. package/src/components/gradient-card.scss +7 -7
  40. package/src/components/gradient.scss +10 -10
  41. package/src/components/hero.scss +31 -31
  42. package/src/components/icon.scss +0 -3
  43. package/src/components/image.scss +3 -4
  44. package/src/components/layout.scss +66 -72
  45. package/src/components/link-button.scss +8 -8
  46. package/src/components/markdown.scss +14 -14
  47. package/src/components/media.scss +2 -3
  48. package/src/components/message.scss +13 -14
  49. package/src/components/notification.scss +21 -21
  50. package/src/components/pagination.scss +28 -28
  51. package/src/components/persona.scss +13 -14
  52. package/src/components/popover.scss +15 -15
  53. package/src/components/progress-bar.scss +13 -13
  54. package/src/components/reading-width.scss +4 -4
  55. package/src/components/scroll.scss +0 -3
  56. package/src/components/segmented-control.scss +31 -31
  57. package/src/components/site-header.scss +36 -36
  58. package/src/components/steps.scss +5 -6
  59. package/src/components/stretched-link.scss +2 -3
  60. package/src/components/table.scss +18 -18
  61. package/src/components/tag.scss +36 -37
  62. package/src/components/timeline.scss +15 -16
  63. package/src/components/toggle.scss +17 -17
  64. package/src/core/animations.scss +3 -4
  65. package/src/core/bare-elements.scss +5 -6
  66. package/src/core/focus.scss +6 -6
  67. package/src/core/font-stack.scss +7 -8
  68. package/src/core/minireset.scss +0 -3
  69. package/src/core/normalize.scss +0 -3
  70. package/src/core/themes.scss +19 -20
  71. package/src/mixins/center.scss +0 -2
  72. package/src/mixins/chevron.scss +5 -5
  73. package/src/mixins/code-block.scss +9 -9
  74. package/src/mixins/colors.scss +0 -2
  75. package/src/mixins/control.scss +5 -5
  76. package/src/mixins/dismiss.scss +4 -4
  77. package/src/mixins/focus.scss +5 -5
  78. package/src/mixins/font-size.scss +4 -4
  79. package/src/mixins/force-colors.scss +0 -2
  80. package/src/mixins/gradient.scss +0 -2
  81. package/src/mixins/layout-gap.scss +5 -5
  82. package/src/mixins/line-clamp.scss +0 -2
  83. package/src/mixins/loader.scss +3 -3
  84. package/src/mixins/media-queries.scss +5 -5
  85. package/src/mixins/overlay.scss +0 -2
  86. package/src/mixins/transparency.scss +0 -2
  87. package/src/mixins/unselectable.scss +0 -2
  88. package/src/mixins/visually-hidden.scss +0 -2
  89. package/src/tokens/colors.scss +2 -2
  90. package/src/tokens/layout.scss +2 -2
  91. package/src/tokens/shadow.scss +9 -8
  92. package/src/tokens/themes.scss +473 -473
  93. package/tokens/index.js +4 -1
@@ -1,14 +1,14 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
- $table-cell-vertical-padding: $spacer-5 !default;
5
- $table-cell-horizontal-padding: $spacer-6 !default;
6
- $table-cell-padding-compact: $spacer-3 !default;
7
- $table-cell-padding-loose: $spacer-8 !default;
4
+ $table-cell-vertical-padding: tokens.$spacer-5 !default;
5
+ $table-cell-horizontal-padding: tokens.$spacer-6 !default;
6
+ $table-cell-padding-compact: tokens.$spacer-3 !default;
7
+ $table-cell-padding-loose: tokens.$spacer-8 !default;
8
8
 
9
- $table-caption-padding: $spacer-6 !default;
10
- $table-caption-size: $font-size-9 !default;
11
- $table-caption-spacing: $letter-spacing-medium !default;
9
+ $table-caption-padding: tokens.$spacer-6 !default;
10
+ $table-caption-size: tokens.$font-size-9 !default;
11
+ $table-caption-spacing: tokens.$letter-spacing-medium !default;
12
12
 
13
13
  .table-wrapper {
14
14
  overflow-x: auto;
@@ -18,18 +18,18 @@ $table-caption-spacing: $letter-spacing-medium !default;
18
18
 
19
19
  .table {
20
20
  width: 100%;
21
- font-size: $font-size-8;
21
+ font-size: tokens.$font-size-8;
22
22
  border-collapse: collapse;
23
23
  table-layout: auto;
24
24
 
25
25
  &:not(.table-simple) {
26
- border: 1px solid $table-border-dark;
26
+ border: 1px solid tokens.$table-border-dark;
27
27
  }
28
28
 
29
29
  caption {
30
30
  padding: $table-caption-padding;
31
31
  font-size: $table-caption-size;
32
- font-weight: $weight-semibold;
32
+ font-weight: tokens.$weight-semibold;
33
33
  letter-spacing: $table-caption-spacing;
34
34
  text-align: end;
35
35
  text-transform: uppercase;
@@ -40,7 +40,7 @@ $table-caption-spacing: $letter-spacing-medium !default;
40
40
  display: table-cell;
41
41
  word-wrap: break-word;
42
42
  padding: $table-cell-vertical-padding $table-cell-horizontal-padding;
43
- border-block-start: 1px solid $table-border-dark;
43
+ border-block-start: 1px solid tokens.$table-border-dark;
44
44
  line-height: 1.5;
45
45
  vertical-align: top;
46
46
  }
@@ -50,7 +50,7 @@ $table-caption-spacing: $letter-spacing-medium !default;
50
50
  }
51
51
 
52
52
  &.table-stacked-mobile {
53
- @include discouraged-mobile {
53
+ @include mixins.discouraged-mobile {
54
54
  th,
55
55
  td {
56
56
  display: block;
@@ -69,7 +69,7 @@ $table-caption-spacing: $letter-spacing-medium !default;
69
69
  }
70
70
 
71
71
  thead tr > th:last-child {
72
- border-block-end: 1px solid $table-border-dark;
72
+ border-block-end: 1px solid tokens.$table-border-dark;
73
73
  }
74
74
  }
75
75
  }
@@ -86,18 +86,18 @@ $table-caption-spacing: $letter-spacing-medium !default;
86
86
  &.table-complex {
87
87
  thead tr,
88
88
  tfoot tr {
89
- background-color: $table-header;
89
+ background-color: tokens.$table-header;
90
90
  }
91
91
 
92
92
  th,
93
93
  td {
94
- border: 1px solid $table-border-dark;
94
+ border: 1px solid tokens.$table-border-dark;
95
95
  }
96
96
  }
97
97
 
98
98
  &.table-striped {
99
99
  tbody tr:nth-of-type(even) {
100
- background-color: $table-row;
100
+ background-color: tokens.$table-row;
101
101
  }
102
102
  }
103
103
 
@@ -1,5 +1,4 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
3
2
 
4
3
  /* stylelint-disable selector-max-specificity, no-descending-specificity */
5
4
 
@@ -8,38 +7,38 @@ $tag-padding-inline: 0.675em !default;
8
7
 
9
8
  $tag-gap-size: 0.375em !default;
10
9
 
11
- $tag-font-size: $font-size-8 !default;
12
- $tag-font-size-sm: $font-size-9 !default;
13
- $tag-font-size-lg: $font-size-7 !default;
14
- $tag-font-weight: $weight-normal !default;
10
+ $tag-font-size: tokens.$font-size-8 !default;
11
+ $tag-font-size-sm: tokens.$font-size-9 !default;
12
+ $tag-font-size-lg: tokens.$font-size-7 !default;
13
+ $tag-font-weight: tokens.$weight-normal !default;
15
14
 
16
15
  $tag-icon-font-size: 0.875em !default;
17
16
 
18
- $tag-border-width: $border-width !default;
19
- $tag-border-radius: $border-radius !default;
20
- $tag-border-radius-rounded: $border-radius-rounded !default;
21
- $tag-border-color: $control-border !default;
22
-
23
- $tag-color: $secondary-dark !default;
24
- $tag-color-hover: $primary-dark !default;
25
- $tag-background-color: $body-background !default;
26
- $tag-background-hover: $secondary-background-glow-high-contrast !default;
27
-
28
- $tag-color-filled: $text !default;
29
- $tag-background-filled: $secondary-background-glow-high-contrast !default;
30
- $tag-color-filled-hover: $primary-hover !default;
31
- $tag-background-filled-hover: $secondary-background-hover !default;
32
- $tag-interactive-divider-color-filled: $control-border !default;
33
- $tag-interactive-color-filled-hover: $secondary-invert !default;
34
- $tag-interactive-color-filled-close-hover: $primary-dark-hover !default;
35
-
36
- $tag-color-primary: $primary-dark !default;
37
- $tag-color-primary-hover: $primary-hover !default;
38
- $tag-background-primary: $primary-background !default;
39
- $tag-background-primary-hover: $primary-background-hover !default;
40
- $tag-border-color-primary: $primary-background-glow-high-contrast !default;
41
- $tag-interactive-divider-color-primary: $primary-box-shadow !default;
42
- $tag-interactive-color-primary-hover: $primary-dark-hover !default;
17
+ $tag-border-width: tokens.$border-width !default;
18
+ $tag-border-radius: tokens.$border-radius !default;
19
+ $tag-border-radius-rounded: tokens.$border-radius-rounded !default;
20
+ $tag-border-color: tokens.$control-border !default;
21
+
22
+ $tag-color: tokens.$secondary-dark !default;
23
+ $tag-color-hover: tokens.$primary-dark !default;
24
+ $tag-background-color: tokens.$body-background !default;
25
+ $tag-background-hover: tokens.$secondary-background-glow-high-contrast !default;
26
+
27
+ $tag-color-filled: tokens.$text !default;
28
+ $tag-background-filled: tokens.$secondary-background-glow-high-contrast !default;
29
+ $tag-color-filled-hover: tokens.$primary-hover !default;
30
+ $tag-background-filled-hover: tokens.$secondary-background-hover !default;
31
+ $tag-interactive-divider-color-filled: tokens.$control-border !default;
32
+ $tag-interactive-color-filled-hover: tokens.$secondary-invert !default;
33
+ $tag-interactive-color-filled-close-hover: tokens.$primary-dark-hover !default;
34
+
35
+ $tag-color-primary: tokens.$primary-dark !default;
36
+ $tag-color-primary-hover: tokens.$primary-hover !default;
37
+ $tag-background-primary: tokens.$primary-background !default;
38
+ $tag-background-primary-hover: tokens.$primary-background-hover !default;
39
+ $tag-border-color-primary: tokens.$primary-background-glow-high-contrast !default;
40
+ $tag-interactive-divider-color-primary: tokens.$primary-box-shadow !default;
41
+ $tag-interactive-color-primary-hover: tokens.$primary-dark-hover !default;
43
42
 
44
43
  $tag-suggestion-radius: 8px !default;
45
44
 
@@ -54,7 +53,7 @@ $tag-suggestion-radius: 8px !default;
54
53
  color: $tag-color;
55
54
  font-size: $tag-font-size;
56
55
  font-weight: $tag-font-weight;
57
- line-height: $line-height-normal;
56
+ line-height: tokens.$line-height-normal;
58
57
  white-space: nowrap;
59
58
  gap: $tag-gap-size;
60
59
 
@@ -95,7 +94,7 @@ $tag-suggestion-radius: 8px !default;
95
94
  align-items: stretch;
96
95
  padding: 0;
97
96
  border: none;
98
- color: $text;
97
+ color: tokens.$text;
99
98
  gap: 0;
100
99
 
101
100
  .tag-popover {
@@ -104,7 +103,7 @@ $tag-suggestion-radius: 8px !default;
104
103
  border: $tag-border-width solid $tag-border-color;
105
104
  border-radius: $tag-border-radius;
106
105
  outline-color: currentColor;
107
- outline-offset: -$focus-width;
106
+ outline-offset: -(tokens.$focus-width);
108
107
  cursor: pointer;
109
108
  overflow: hidden;
110
109
 
@@ -128,7 +127,7 @@ $tag-suggestion-radius: 8px !default;
128
127
  border: $tag-border-width solid $tag-border-color;
129
128
  border-radius: 0 $tag-border-radius $tag-border-radius 0;
130
129
  outline-color: currentColor;
131
- outline-offset: -$focus-width;
130
+ outline-offset: -(tokens.$focus-width);
132
131
  background-color: inherit;
133
132
  color: inherit;
134
133
  cursor: pointer;
@@ -221,7 +220,7 @@ $tag-suggestion-radius: 8px !default;
221
220
 
222
221
  &:hover,
223
222
  &.is-hovered {
224
- background-color: $primary-background;
225
- color: $primary-dark;
223
+ background-color: tokens.$primary-background;
224
+ color: tokens.$primary-dark;
226
225
  }
227
226
  }
@@ -1,16 +1,15 @@
1
1
  @use 'sass:math';
2
- @use '../tokens/index.scss' as *;
3
- @use '../mixins/index.scss' as *;
4
- $timeline-content-font-size: $font-size-8 !default;
5
- $timeline-timestamp-font-size: $font-size-9 !default;
6
- $timeline-timestamp-font-weight: $weight-semilight !default;
7
- $timeline-description-padding-top: $spacer-4 !default;
8
- $timeline-description-line-height: $line-height-normal;
2
+ @use '../tokens/index.scss' as tokens;
3
+ $timeline-content-font-size: tokens.$font-size-8 !default;
4
+ $timeline-timestamp-font-size: tokens.$font-size-9 !default;
5
+ $timeline-timestamp-font-weight: tokens.$weight-semilight !default;
6
+ $timeline-description-padding-top: tokens.$spacer-4 !default;
7
+ $timeline-description-line-height: tokens.$line-height-normal;
9
8
 
10
- $timeline-item-border-left: $border-width solid $border !default;
11
- $timeline-item-min-height: $layout-6 !default;
12
- $timeline-item-padding-bottom: $spacer-7 !default;
13
- $timeline-item-padding-left: $spacer-8 !default;
9
+ $timeline-item-border-left: tokens.$border-width solid tokens.$border !default;
10
+ $timeline-item-min-height: tokens.$layout-6 !default;
11
+ $timeline-item-padding-bottom: tokens.$spacer-7 !default;
12
+ $timeline-item-padding-left: tokens.$spacer-8 !default;
14
13
 
15
14
  $timeline-item-template-gap: 8px !default;
16
15
  $timeline-item-template-width: 100% !default;
@@ -25,7 +24,7 @@ $timeline-item-badge-transform-rtl: translate(
25
24
  );
26
25
 
27
26
  .timeline {
28
- font-size: $document-font-size;
27
+ font-size: tokens.$document-font-size;
29
28
  container-type: inline-size;
30
29
 
31
30
  .timeline-item {
@@ -48,7 +47,7 @@ $timeline-item-badge-transform-rtl: translate(
48
47
  }
49
48
  }
50
49
 
51
- @container (min-width: #{$container-query-md}) {
50
+ @container (min-width: #{tokens.$container-query-md}) {
52
51
  .timeline-item-template {
53
52
  display: grid;
54
53
  width: $timeline-item-template-width;
@@ -62,8 +61,8 @@ $timeline-item-badge-transform-rtl: translate(
62
61
 
63
62
  .timeline-item-template-title {
64
63
  grid-area: title;
65
- font-weight: $weight-semibold;
66
- line-height: $line-height-normal;
64
+ font-weight: tokens.$weight-semibold;
65
+ line-height: tokens.$line-height-normal;
67
66
  }
68
67
 
69
68
  .timeline-item-template-time {
@@ -71,7 +70,7 @@ $timeline-item-badge-transform-rtl: translate(
71
70
  align-content: baseline;
72
71
  font-size: $timeline-timestamp-font-size;
73
72
  font-weight: $timeline-timestamp-font-weight;
74
- line-height: $line-height-normal;
73
+ line-height: tokens.$line-height-normal;
75
74
  }
76
75
 
77
76
  .timeline-item-template-description {
@@ -1,16 +1,16 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
- $toggle-transition: $input-transition-duration cubic-bezier(0.01, 1.23, 0.58, 0.96) !default;
4
+ $toggle-transition: tokens.$input-transition-duration cubic-bezier(0.01, 1.23, 0.58, 0.96) !default;
5
5
  $toggle-circle-size: 0.85em !default;
6
6
  $toggle-circle-top: 0.15em !default;
7
7
  $toggle-circle-distance-from-border: 1em - $toggle-circle-size;
8
8
 
9
- $toggle-unselected-circle-color: $text-subtle !default;
10
- $toggle-unselected-border-color: $text-subtle !default;
11
- $toggle-unselected-background-color: $body-background !default;
12
- $toggle-selected-background-color: $primary !default;
13
- $toggle-circle-selected-background-color: $body-background !default;
9
+ $toggle-unselected-circle-color: tokens.$text-subtle !default;
10
+ $toggle-unselected-border-color: tokens.$text-subtle !default;
11
+ $toggle-unselected-background-color: tokens.$body-background !default;
12
+ $toggle-selected-background-color: tokens.$primary !default;
13
+ $toggle-circle-selected-background-color: tokens.$body-background !default;
14
14
 
15
15
  .toggle {
16
16
  label {
@@ -18,14 +18,14 @@ $toggle-circle-selected-background-color: $body-background !default;
18
18
  position: relative;
19
19
  width: 2.5em;
20
20
  height: 1.25em;
21
- transition: $input-transition-duration linear;
21
+ transition: tokens.$input-transition-duration linear;
22
22
  transition-property: background-color, border-color;
23
23
  border: 0.065em solid $toggle-unselected-border-color;
24
- border-radius: $border-radius-rounded;
24
+ border-radius: tokens.$border-radius-rounded;
25
25
  background-color: $toggle-unselected-background-color;
26
26
  cursor: pointer;
27
27
 
28
- @include forced-colors {
28
+ @include mixins.forced-colors {
29
29
  border-color: CanvasText !important;
30
30
  background-color: Canvas !important;
31
31
  }
@@ -37,13 +37,13 @@ $toggle-circle-selected-background-color: $body-background !default;
37
37
  height: $toggle-circle-size;
38
38
  transition: $toggle-transition;
39
39
  transition-property: inset-inline-start, border-color, background-color;
40
- border-radius: $border-radius-rounded;
40
+ border-radius: tokens.$border-radius-rounded;
41
41
  inset-block-start: $toggle-circle-top;
42
42
  inset-inline-start: $toggle-circle-distance-from-border;
43
43
  background-color: $toggle-unselected-circle-color;
44
44
  content: '';
45
45
 
46
- @include forced-colors {
46
+ @include mixins.forced-colors {
47
47
  background-color: CanvasText !important;
48
48
  }
49
49
  }
@@ -56,7 +56,7 @@ $toggle-circle-selected-background-color: $body-background !default;
56
56
  border-color: $toggle-selected-background-color;
57
57
  background-color: $toggle-selected-background-color;
58
58
 
59
- @include forced-colors {
59
+ @include mixins.forced-colors {
60
60
  border-color: LinkText !important;
61
61
  background-color: LinkText !important;
62
62
  }
@@ -65,7 +65,7 @@ $toggle-circle-selected-background-color: $body-background !default;
65
65
  background-color: $toggle-circle-selected-background-color;
66
66
  inset-inline-start: calc(100% - ($toggle-circle-distance-from-border + $toggle-circle-size));
67
67
 
68
- @include forced-colors {
68
+ @include mixins.forced-colors {
69
69
  background-color: Canvas !important;
70
70
  }
71
71
  }
@@ -73,9 +73,9 @@ $toggle-circle-selected-background-color: $body-background !default;
73
73
 
74
74
  /* stylelint-disable-next-line -- want to keep [type="checkbox"] as a requirement here */
75
75
  input[type='checkbox'] {
76
- @include visually-hidden();
76
+ @include mixins.visually-hidden();
77
77
 
78
- @include focus-visible() {
78
+ @include mixins.focus-visible() {
79
79
  + label {
80
80
  @extend %focus;
81
81
  }
@@ -1,5 +1,4 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../mixins/index.scss' as mixins;
3
2
 
4
3
  // stylelint-disable-next-line keyframes-name-pattern
5
4
  @keyframes spinAround {
@@ -54,7 +53,7 @@
54
53
  .animation-fade {
55
54
  animation: fade-out 0.4s ease-in forwards;
56
55
 
57
- @include prefers-reduced-motion {
56
+ @include mixins.prefers-reduced-motion {
58
57
  animation-duration: 0s;
59
58
  }
60
59
  }
@@ -62,7 +61,7 @@
62
61
  .animation-slide-up {
63
62
  animation: slide-up-fade-out 0.4s ease-in forwards;
64
63
 
65
- @include prefers-reduced-motion {
64
+ @include mixins.prefers-reduced-motion {
66
65
  animation-duration: 0s;
67
66
  }
68
67
  }
@@ -1,5 +1,4 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
3
2
 
4
3
  // https://bugs.chromium.org/p/chromium/issues/detail?id=589475&q=details%20box-sizing&can=2
5
4
 
@@ -16,19 +15,19 @@ details > * {
16
15
  }
17
16
 
18
17
  :where(a) {
19
- color: $hyperlink;
18
+ color: tokens.$hyperlink;
20
19
  text-decoration: none;
21
20
  cursor: pointer;
22
21
  word-wrap: break-word;
23
22
  }
24
23
 
25
24
  :where(a:hover) {
26
- color: $primary-hover;
25
+ color: tokens.$primary-hover;
27
26
  text-decoration: underline;
28
27
  }
29
28
 
30
29
  :where(a:visited) {
31
- color: $visited;
30
+ color: tokens.$visited;
32
31
  }
33
32
 
34
33
  fieldset {
@@ -37,5 +36,5 @@ fieldset {
37
36
  }
38
37
 
39
38
  ::target-text {
40
- background-color: $code-highlight-background;
39
+ background-color: tokens.$code-highlight-background;
41
40
  }
@@ -1,7 +1,7 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
3
 
4
- @if ($focus-visible-use-polyfill) {
4
+ @if (tokens.$focus-visible-use-polyfill) {
5
5
  .js-focus-visible .has-default-focus *:focus:not(.focus-visible),
6
6
  .js-focus-visible .default-focus *:focus:not(.focus-visible) {
7
7
  outline: none;
@@ -9,7 +9,7 @@
9
9
 
10
10
  .focus-visible.has-inner-focus,
11
11
  .focus-visible.inner-focus {
12
- outline-offset: -$focus-width;
12
+ outline-offset: -(tokens.$focus-width);
13
13
  }
14
14
 
15
15
  .has-default-focus,
@@ -32,7 +32,7 @@
32
32
  &.has-inner-focus,
33
33
  &.inner-focus {
34
34
  outline-color: currentColor;
35
- outline-offset: -$focus-width;
35
+ outline-offset: -(tokens.$focus-width);
36
36
  }
37
37
  }
38
38
  }
@@ -43,6 +43,6 @@
43
43
  &.has-inner-focus,
44
44
  &.inner-focus {
45
45
  outline-color: currentColor;
46
- outline-offset: -$focus-width;
46
+ outline-offset: -(tokens.$focus-width);
47
47
  }
48
48
  }
@@ -1,31 +1,30 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
3
2
 
4
3
  html {
5
- font-size: $document-font-size;
4
+ font-size: tokens.$document-font-size;
6
5
  }
7
6
 
8
7
  html,
9
8
  body {
10
- font-family: $normal-font-stack;
9
+ font-family: tokens.$normal-font-stack;
11
10
  -webkit-font-smoothing: antialiased;
12
- font-weight: $weight-normal;
11
+ font-weight: tokens.$weight-normal;
13
12
  text-rendering: optimizeLegibility;
14
13
  }
15
14
 
16
15
  kbd,
17
16
  pre,
18
17
  samp {
19
- font-family: $monospace-font-stack !important;
18
+ font-family: tokens.$monospace-font-stack !important;
20
19
  -moz-osx-font-smoothing: auto;
21
20
  -webkit-font-smoothing: auto;
22
21
  }
23
22
 
24
23
  code {
25
24
  direction: ltr;
26
- font-family: $monospace-font-stack;
25
+ font-family: tokens.$monospace-font-stack;
27
26
  }
28
27
 
29
28
  a > code {
30
- font-family: $normal-font-stack;
29
+ font-family: tokens.$normal-font-stack;
31
30
  }
@@ -1,6 +1,3 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
3
-
4
1
  /* stylelint-disable */
5
2
  /*! minireset.css v0.0.7 | MIT License | github.com/jgthms/minireset.css */
6
3
  html,
@@ -1,6 +1,3 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
3
-
4
1
  /* stylelint-disable */
5
2
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
6
3
 
@@ -1,27 +1,26 @@
1
1
  @use 'sass:map';
2
- @use '../tokens/index.scss' as *;
3
- @use '../mixins/index.scss' as *;
2
+ @use '../tokens/index.scss' as tokens;
4
3
 
5
4
  $root-theme: 'light' !default;
6
5
  $print-theme: 'light' !default;
7
6
 
8
7
  // Ensure that the root theme exists
9
- @if map.has-key($themes, $root-theme) != true {
10
- @error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in $themes map.";
8
+ @if map.has-key(tokens.$themes, $root-theme) != true {
9
+ @error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in tokens.$themes map.";
11
10
  }
12
11
 
13
12
  // Ensure that the print theme exists
14
- @if map.has-key($themes, $print-theme) != true {
15
- @error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in $themes map.";
13
+ @if map.has-key(tokens.$themes, $print-theme) != true {
14
+ @error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in tokens.$themes map.";
16
15
  }
17
16
 
18
- $theme-names: map.keys($themes);
17
+ $theme-names: map.keys(tokens.$themes);
19
18
 
20
19
  // Validation: ensure that all values in the root theme are in the other themes too
21
- @each $root-color-name, $val in map.get($themes, $root-theme) {
20
+ @each $root-color-name, $val in map.get(tokens.$themes, $root-theme) {
22
21
  @each $theme-name in $theme-names {
23
22
  @if $theme-name != $root-theme {
24
- @if map.has-key(map.get($themes, $theme-name), $root-color-name) != true {
23
+ @if map.has-key(map.get(tokens.$themes, $theme-name), $root-color-name) != true {
25
24
  @error '#{$root-color-name} from #{$root-theme} does not exist in theme: #{$theme-name}.';
26
25
  }
27
26
  }
@@ -30,10 +29,10 @@ $theme-names: map.keys($themes);
30
29
 
31
30
  // Validation: ensure all properties in non-root themes exist in root
32
31
  @each $theme-name in $theme-names {
33
- $theme: map.get($themes, $theme-name);
32
+ $theme: map.get(tokens.$themes, $theme-name);
34
33
 
35
34
  @if $theme-name != $root-theme {
36
- $root: map.get($themes, $root-theme);
35
+ $root: map.get(tokens.$themes, $root-theme);
37
36
 
38
37
  @each $color-name, $val in $theme {
39
38
  @if map.has-key($root, $color-name) != true {
@@ -43,11 +42,11 @@ $theme-names: map.keys($themes);
43
42
  }
44
43
  }
45
44
 
46
- @each $key, $value in $themes {
45
+ @each $key, $value in tokens.$themes {
47
46
  // Set the default theme
48
47
  @if $key == $root-theme {
49
48
  :root {
50
- @each $colorName, $colorVal in map.get($themes, $key) {
49
+ @each $colorName, $colorVal in map.get(tokens.$themes, $key) {
51
50
  // stylelint-disable-next-line custom-property-pattern
52
51
  --theme-#{$colorName}: #{$colorVal};
53
52
  }
@@ -56,7 +55,7 @@ $theme-names: map.keys($themes);
56
55
 
57
56
  @if $key == $print-theme {
58
57
  .theme-#{$key} {
59
- @each $colorName, $colorVal in map.get($themes, $key) {
58
+ @each $colorName, $colorVal in map.get(tokens.$themes, $key) {
60
59
  // stylelint-disable-next-line custom-property-pattern
61
60
  --theme-#{$colorName}: #{$colorVal};
62
61
  }
@@ -65,7 +64,7 @@ $theme-names: map.keys($themes);
65
64
  // Set the rest of the themes, exclude them from print styling.
66
65
  @media not print {
67
66
  .theme-#{$key} {
68
- @each $colorName, $colorVal in map-get($themes, $key) {
67
+ @each $colorName, $colorVal in map-get(tokens.$themes, $key) {
69
68
  // stylelint-disable-next-line custom-property-pattern
70
69
  --theme-#{$colorName}: #{$colorVal};
71
70
  }
@@ -77,18 +76,18 @@ $theme-names: map.keys($themes);
77
76
  // End validation
78
77
 
79
78
  %theme-base-styles {
80
- outline-color: $text;
81
- background-color: $body-background;
82
- color: $text;
79
+ outline-color: tokens.$text;
80
+ background-color: tokens.$body-background;
81
+ color: tokens.$text;
83
82
  }
84
83
 
85
- @each $key, $value in $themes {
84
+ @each $key, $value in tokens.$themes {
86
85
  .theme-#{$key} {
87
86
  @extend %theme-base-styles;
88
87
  }
89
88
  }
90
89
 
91
- @each $key, $value in $color-schemes {
90
+ @each $key, $value in tokens.$color-schemes {
92
91
  .theme-#{$key} {
93
92
  color-scheme: #{$value};
94
93
  }
@@ -1,5 +1,3 @@
1
- @use '../tokens/index.scss' as *;
2
-
3
1
  @mixin center($width, $height: 0) {
4
2
  position: absolute;
5
3
 
@@ -1,7 +1,7 @@
1
- @use '../tokens/index.scss' as *;
2
- @use './control.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use './control.scss' as control;
3
3
 
4
- $chevron-color: $text !default;
4
+ $chevron-color: tokens.$text !default;
5
5
  $chevron-arrow-size: 0.525em !default;
6
6
  $chevron-arrow-border-width: 1px !default;
7
7
  $chevron-arrow-actual-width: 0.75em !default;
@@ -22,8 +22,8 @@ $chevron-up-rotate-scale-xy-rtl: $chevron-down-rotate-rtl scaleY(-1) scaleX(-1);
22
22
  border-inline-end: 0;
23
23
  pointer-events: none;
24
24
  content: ' ';
25
- z-index: $zindex-active;
26
- inset-inline-end: $control-padding-horizontal;
25
+ z-index: tokens.$zindex-active;
26
+ inset-inline-end: control.$control-padding-horizontal;
27
27
  }
28
28
 
29
29
  @mixin chevron-right {