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

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 (100) hide show
  1. package/dist/class-names.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.css.map +1 -1
  4. package/dist/tokens.json +1 -1
  5. package/dist/tokens.ts +14 -24
  6. package/package.json +2 -2
  7. package/src/atomics/aspect-ratio.scss +2 -2
  8. package/src/atomics/background.scss +2 -2
  9. package/src/atomics/border.scss +26 -26
  10. package/src/atomics/colors.scss +53 -53
  11. package/src/atomics/display.scss +9 -9
  12. package/src/atomics/flex.scss +3 -3
  13. package/src/atomics/gap.scss +14 -14
  14. package/src/atomics/height.scss +2 -2
  15. package/src/atomics/image.scss +2 -2
  16. package/src/atomics/line-clamp.scss +6 -6
  17. package/src/atomics/list.scss +2 -2
  18. package/src/atomics/overflow.scss +3 -3
  19. package/src/atomics/position.scss +6 -6
  20. package/src/atomics/shadow.scss +6 -6
  21. package/src/atomics/spacing-auto.scss +5 -5
  22. package/src/atomics/spacing.scss +14 -14
  23. package/src/atomics/typography.scss +39 -39
  24. package/src/atomics/visually-hidden.scss +3 -3
  25. package/src/atomics/width.scss +4 -4
  26. package/src/components/accordion.scss +18 -17
  27. package/src/components/badge.scss +21 -21
  28. package/src/components/banner.scss +18 -18
  29. package/src/components/breadcrumbs.scss +4 -4
  30. package/src/components/button-reset.scss +3 -3
  31. package/src/components/button.scss +54 -54
  32. package/src/components/buttons.scss +9 -9
  33. package/src/components/card.scss +30 -30
  34. package/src/components/code-block.scss +18 -18
  35. package/src/components/form/checkbox.scss +18 -18
  36. package/src/components/form/form.scss +15 -15
  37. package/src/components/form/help.scss +6 -6
  38. package/src/components/form/input.scss +26 -26
  39. package/src/components/form/label.scss +5 -5
  40. package/src/components/form/radio.scss +18 -18
  41. package/src/components/form/select.scss +28 -26
  42. package/src/components/form/textarea.scss +27 -27
  43. package/src/components/gradient-card.scss +8 -7
  44. package/src/components/gradient.scss +10 -10
  45. package/src/components/hero.scss +31 -31
  46. package/src/components/icon.scss +2 -2
  47. package/src/components/image.scss +4 -4
  48. package/src/components/index.scss +0 -1
  49. package/src/components/layout.scss +206 -96
  50. package/src/components/link-button.scss +8 -8
  51. package/src/components/markdown.scss +15 -15
  52. package/src/components/media.scss +3 -3
  53. package/src/components/message.scss +14 -14
  54. package/src/components/notification.scss +21 -21
  55. package/src/components/pagination.scss +28 -28
  56. package/src/components/persona.scss +14 -14
  57. package/src/components/popover.scss +15 -15
  58. package/src/components/progress-bar.scss +13 -13
  59. package/src/components/scroll.scss +2 -2
  60. package/src/components/segmented-control.scss +31 -31
  61. package/src/components/site-header.scss +37 -37
  62. package/src/components/steps.scss +6 -6
  63. package/src/components/stretched-link.scss +3 -3
  64. package/src/components/table.scss +18 -18
  65. package/src/components/tag.scss +37 -37
  66. package/src/components/timeline.scss +16 -16
  67. package/src/components/toggle.scss +17 -17
  68. package/src/core/animations.scss +4 -4
  69. package/src/core/bare-elements.scss +6 -6
  70. package/src/core/focus.scss +6 -6
  71. package/src/core/font-stack.scss +8 -8
  72. package/src/core/minireset.scss +2 -2
  73. package/src/core/normalize.scss +2 -2
  74. package/src/core/themes.scss +20 -20
  75. package/src/mixins/center.scss +1 -1
  76. package/src/mixins/chevron.scss +5 -5
  77. package/src/mixins/code-block.scss +9 -9
  78. package/src/mixins/colors.scss +1 -1
  79. package/src/mixins/control.scss +5 -5
  80. package/src/mixins/dismiss.scss +4 -4
  81. package/src/mixins/focus.scss +5 -5
  82. package/src/mixins/font-size.scss +4 -4
  83. package/src/mixins/force-colors.scss +1 -1
  84. package/src/mixins/gradient.scss +1 -1
  85. package/src/mixins/layout-gap.scss +5 -5
  86. package/src/mixins/line-clamp.scss +1 -1
  87. package/src/mixins/loader.scss +3 -3
  88. package/src/mixins/media-queries.scss +5 -5
  89. package/src/mixins/overlay.scss +1 -1
  90. package/src/mixins/transparency.scss +1 -1
  91. package/src/mixins/unselectable.scss +1 -1
  92. package/src/mixins/visually-hidden.scss +1 -1
  93. package/src/tokens/breakpoints.scss +1 -1
  94. package/src/tokens/colors.scss +2 -2
  95. package/src/tokens/layout.scss +3 -5
  96. package/src/tokens/shadow.scss +9 -8
  97. package/src/tokens/themes.scss +473 -473
  98. package/src/tokens/typography.scss +1 -5
  99. package/tokens/index.js +4 -1
  100. package/src/components/reading-width.scss +0 -10
@@ -1,40 +1,40 @@
1
1
  @use 'sass:map';
2
- @use '../tokens/index.scss' as *;
3
- @use '../mixins/index.scss' as *;
2
+ @use '../tokens/index.scss' as tokens;
3
+ @use '../mixins/index.scss' as mixins;
4
4
 
5
- $button-color: $text !default;
6
- $button-background-color: $body-background !default;
5
+ $button-color: tokens.$text !default;
6
+ $button-background-color: tokens.$body-background !default;
7
7
 
8
- $button-lg-font-size: $font-size-6 !default;
9
- $button-sm-font-size: $font-size-8 !default;
8
+ $button-lg-font-size: tokens.$font-size-6 !default;
9
+ $button-sm-font-size: tokens.$font-size-8 !default;
10
10
 
11
11
  $button-icon-font-size: 0.875em !default;
12
12
 
13
- $button-border-color: $control-border !default;
14
- $button-border-width: $control-border-width !default;
15
- $button-border-radius: $control-radius !default;
13
+ $button-border-color: tokens.$control-border !default;
14
+ $button-border-width: mixins.$control-border-width !default;
15
+ $button-border-radius: mixins.$control-radius !default;
16
16
 
17
17
  $button-padding-vertical: calc(0.375em - #{$button-border-width}) !default;
18
18
  $button-padding-horizontal: 0.75em !default;
19
19
 
20
- $button-hover-color: $text !default;
21
- $button-hover-border-color: $default-hover !default;
22
- $button-hover-background-color: $default-hover-invert !default;
20
+ $button-hover-color: tokens.$text !default;
21
+ $button-hover-border-color: tokens.$default-hover !default;
22
+ $button-hover-background-color: tokens.$default-hover-invert !default;
23
23
 
24
- $button-disabled-background-color: $body-background-medium !default;
24
+ $button-disabled-background-color: tokens.$body-background-medium !default;
25
25
  $button-disabled-shadow: none !default;
26
26
  $button-disabled-opacity: 0.5 !default;
27
27
 
28
- $button-selected-background-color: $selected-background !default;
29
- $button-selected-border-color: $selected-stroke !default;
30
- $button-selected-color: $selected-foreground !default;
28
+ $button-selected-background-color: tokens.$selected-background !default;
29
+ $button-selected-border-color: tokens.$selected-stroke !default;
30
+ $button-selected-color: tokens.$selected-foreground !default;
31
31
 
32
32
  $button-icon-spacing: 0.375em !default;
33
- $button-font-weight: $weight-semibold !default;
33
+ $button-font-weight: tokens.$weight-semibold !default;
34
34
 
35
35
  .button {
36
- @include control;
37
- @include unselectable;
36
+ @include mixins.control;
37
+ @include mixins.unselectable;
38
38
 
39
39
  justify-content: center;
40
40
  padding-block: $button-padding-vertical;
@@ -116,23 +116,23 @@ $button-font-weight: $weight-semibold !default;
116
116
  pointer-events: none;
117
117
 
118
118
  &::after {
119
- @include loader;
120
- @include center(1em);
119
+ @include mixins.loader;
120
+ @include mixins.center(1em);
121
121
 
122
122
  position: absolute !important;
123
- border-block-end-color: $text;
124
- border-inline-start-color: $text;
123
+ border-block-end-color: tokens.$text;
124
+ border-inline-start-color: tokens.$text;
125
125
  }
126
126
  }
127
127
 
128
- @each $name, $color-set in $colors {
129
- $base: nth($color-set, $color-index-base);
130
- $dark: nth($color-set, $color-index-dark);
131
- $background: nth($color-set, $color-index-background);
132
- $background-selected: nth($color-set, $color-index-background-selected);
133
- $selected: nth($color-set, $color-index-selected);
134
- $foreground-selected: nth($color-set, $color-index-foreground-selected);
135
- $border-selected: nth($color-set, $color-index-stroke-selected);
128
+ @each $name, $color-set in tokens.$colors {
129
+ $base: nth($color-set, tokens.$color-index-base);
130
+ $dark: nth($color-set, tokens.$color-index-dark);
131
+ $background: nth($color-set, tokens.$color-index-background);
132
+ $background-selected: nth($color-set, tokens.$color-index-background-selected);
133
+ $selected: nth($color-set, tokens.$color-index-selected);
134
+ $foreground-selected: nth($color-set, tokens.$color-index-foreground-selected);
135
+ $border-selected: nth($color-set, tokens.$color-index-stroke-selected);
136
136
 
137
137
  &.button-#{$name} {
138
138
  @if $name == 'warning' {
@@ -167,7 +167,7 @@ $button-font-weight: $weight-semibold !default;
167
167
  }
168
168
 
169
169
  $button-clear-hover-background-color: transparentize(#8e8e8e, 0.95) !default;
170
- $button-clear-selected-background-color: $selected-background-subtle !default;
170
+ $button-clear-selected-background-color: tokens.$selected-background-subtle !default;
171
171
 
172
172
  .button.button-clear {
173
173
  border-color: transparent;
@@ -196,13 +196,13 @@ $button-clear-selected-background-color: $selected-background-subtle !default;
196
196
  color: $button-selected-color;
197
197
  }
198
198
 
199
- @each $name, $color-set in $colors {
200
- $base: nth($color-set, $color-index-base);
201
- $dark: nth($color-set, $color-index-dark);
202
- $background: nth($color-set, $color-index-background);
203
- $background-selected: nth($color-set, $color-index-background-selected);
204
- $selected: nth($color-set, $color-index-selected);
205
- $foreground-selected: nth($color-set, $color-index-foreground-selected);
199
+ @each $name, $color-set in tokens.$colors {
200
+ $base: nth($color-set, tokens.$color-index-base);
201
+ $dark: nth($color-set, tokens.$color-index-dark);
202
+ $background: nth($color-set, tokens.$color-index-background);
203
+ $background-selected: nth($color-set, tokens.$color-index-background-selected);
204
+ $selected: nth($color-set, tokens.$color-index-selected);
205
+ $foreground-selected: nth($color-set, tokens.$color-index-foreground-selected);
206
206
 
207
207
  &.button-#{$name} {
208
208
  color: $base;
@@ -232,10 +232,10 @@ $button-clear-selected-background-color: $selected-background-subtle !default;
232
232
  }
233
233
  }
234
234
 
235
- $button-filled-background-color: $alternate-background-medium !default;
236
- $button-filled-background-color-hover: $alternate-background !default;
237
- $button-filled-text-color: $text-invert !default;
238
- $button-filled-background-color-selected: $secondary-selected !default;
235
+ $button-filled-background-color: tokens.$alternate-background-medium !default;
236
+ $button-filled-background-color-hover: tokens.$alternate-background !default;
237
+ $button-filled-text-color: tokens.$text-invert !default;
238
+ $button-filled-background-color-selected: tokens.$secondary-selected !default;
239
239
 
240
240
  .button.button-filled {
241
241
  border-color: $button-filled-background-color;
@@ -254,19 +254,19 @@ $button-filled-background-color-selected: $secondary-selected !default;
254
254
  }
255
255
 
256
256
  &.is-loading::after {
257
- @include loader;
257
+ @include mixins.loader;
258
258
 
259
259
  border-color: transparent transparent $button-filled-text-color $button-filled-text-color !important;
260
260
  }
261
261
 
262
- @each $name, $color-set in $colors {
263
- $base: nth($color-set, $color-index-base);
264
- $hover: nth($color-set, $color-index-hover);
265
- $active: nth($color-set, $color-index-active);
266
- $invert: nth($color-set, $color-index-invert);
267
- $background: nth($color-set, $color-index-background);
268
- $selected: nth($color-set, $color-index-selected);
269
- $selected-invert: nth($color-set, $color-index-foreground-selected-invert);
262
+ @each $name, $color-set in tokens.$colors {
263
+ $base: nth($color-set, tokens.$color-index-base);
264
+ $hover: nth($color-set, tokens.$color-index-hover);
265
+ $active: nth($color-set, tokens.$color-index-active);
266
+ $invert: nth($color-set, tokens.$color-index-invert);
267
+ $background: nth($color-set, tokens.$color-index-background);
268
+ $selected: nth($color-set, tokens.$color-index-selected);
269
+ $selected-invert: nth($color-set, tokens.$color-index-foreground-selected-invert);
270
270
 
271
271
  &.button-#{$name} {
272
272
  border-color: $base;
@@ -287,13 +287,13 @@ $button-filled-background-color-selected: $secondary-selected !default;
287
287
  }
288
288
 
289
289
  &.is-selected.is-loading::after {
290
- @include loader;
290
+ @include mixins.loader;
291
291
 
292
292
  border-color: transparent transparent $selected-invert $selected-invert !important;
293
293
  }
294
294
 
295
295
  &.is-loading::after {
296
- @include loader;
296
+ @include mixins.loader;
297
297
 
298
298
  border-color: transparent transparent $invert $invert !important;
299
299
  }
@@ -1,5 +1,5 @@
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
4
  /* stylelint-disable selector-max-specificity, max-nesting-depth */
5
5
 
@@ -31,7 +31,7 @@
31
31
  &.is-fullwidth-mobile {
32
32
  margin-inline-end: 0;
33
33
 
34
- @include tablet {
34
+ @include mixins.tablet {
35
35
  margin-inline-end: 0.5rem;
36
36
  }
37
37
  }
@@ -64,25 +64,25 @@
64
64
 
65
65
  &:hover,
66
66
  &.is-hovered {
67
- z-index: $zindex-hover;
67
+ z-index: tokens.$zindex-hover;
68
68
  }
69
69
 
70
70
  &.is-focused,
71
71
  &:active,
72
72
  &.is-active,
73
73
  &.is-selected {
74
- z-index: $zindex-focus;
74
+ z-index: tokens.$zindex-focus;
75
75
 
76
76
  &:hover {
77
- z-index: $zindex-multi;
77
+ z-index: tokens.$zindex-multi;
78
78
  }
79
79
  }
80
80
 
81
- @include focus-visible {
82
- z-index: $zindex-focus;
81
+ @include mixins.focus-visible {
82
+ z-index: tokens.$zindex-focus;
83
83
 
84
84
  &:hover {
85
- z-index: $zindex-multi;
85
+ z-index: tokens.$zindex-multi;
86
86
  }
87
87
  }
88
88
 
@@ -1,12 +1,12 @@
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
- $card-color: $text !default;
5
- $card-shadow: $box-shadow-light;
6
- $card-padding: $spacer-5;
7
- $card-border-radius: $border-radius-sm;
8
- $card-row-gap: $spacer-3 !default;
9
- $card-column-gap: $spacer-5 !default;
4
+ $card-color: tokens.$text !default;
5
+ $card-shadow: tokens.$box-shadow-light;
6
+ $card-padding: tokens.$spacer-5;
7
+ $card-border-radius: tokens.$border-radius-sm;
8
+ $card-row-gap: tokens.$spacer-3 !default;
9
+ $card-column-gap: tokens.$spacer-5 !default;
10
10
 
11
11
  .card {
12
12
  display: flex;
@@ -15,10 +15,10 @@ $card-column-gap: $spacer-5 !default;
15
15
  justify-content: flex-start;
16
16
  max-width: 100%;
17
17
  padding: $card-padding 0 0;
18
- border: 1px solid $border-white-high-contrast;
18
+ border: 1px solid tokens.$border-white-high-contrast;
19
19
  border-radius: $card-border-radius;
20
- outline-color: $text;
21
- background-color: $card-background;
20
+ outline-color: tokens.$text;
21
+ background-color: tokens.$card-background;
22
22
  color: $card-color;
23
23
  box-shadow: $card-shadow;
24
24
 
@@ -36,7 +36,7 @@ $card-column-gap: $spacer-5 !default;
36
36
  display: grid;
37
37
  flex-grow: 1;
38
38
  padding: $card-padding;
39
- grid-template: auto / 1fr $spacer-10;
39
+ grid-template: auto / 1fr tokens.$spacer-10;
40
40
  gap: $card-row-gap $card-column-gap;
41
41
  grid-template-areas:
42
42
  'supertitle supertitle'
@@ -46,15 +46,15 @@ $card-column-gap: $spacer-5 !default;
46
46
  /* stylelint-disable no-descending-specificity */
47
47
 
48
48
  .card-title {
49
- margin-block-end: $spacer-5;
49
+ margin-block-end: tokens.$spacer-5;
50
50
  }
51
51
  }
52
52
 
53
53
  .card-template-icon {
54
54
  margin-block-start: auto;
55
55
  grid-area: icon;
56
- width: $spacer-10;
57
- height: $spacer-10;
56
+ width: tokens.$spacer-10;
57
+ height: tokens.$spacer-10;
58
58
  }
59
59
 
60
60
  .card-template-detail {
@@ -62,7 +62,7 @@ $card-column-gap: $spacer-5 !default;
62
62
  flex-direction: column;
63
63
  align-self: stretch;
64
64
  justify-content: flex-end;
65
- font-size: $font-size-9;
65
+ font-size: tokens.$font-size-9;
66
66
  line-height: 1.25;
67
67
  grid-area: detail;
68
68
  }
@@ -78,7 +78,7 @@ $card-column-gap: $spacer-5 !default;
78
78
 
79
79
  img,
80
80
  svg {
81
- @include overlay;
81
+ @include mixins.overlay;
82
82
 
83
83
  display: block;
84
84
  width: 100%;
@@ -101,10 +101,10 @@ $card-column-gap: $spacer-5 !default;
101
101
  // optional prescriptive inner elements
102
102
 
103
103
  .card-supertitle {
104
- @include line-clamp(1);
104
+ @include mixins.line-clamp(1);
105
105
 
106
- font-size: $font-size-9;
107
- letter-spacing: $letter-spacing-wide;
106
+ font-size: tokens.$font-size-9;
107
+ letter-spacing: tokens.$letter-spacing-wide;
108
108
  line-height: 1;
109
109
  text-transform: uppercase;
110
110
  grid-area: supertitle;
@@ -113,15 +113,15 @@ $card-column-gap: $spacer-5 !default;
113
113
  // includes some resets for <a> and <button>
114
114
 
115
115
  .card-title {
116
- @include line-clamp(3);
116
+ @include mixins.line-clamp(3);
117
117
 
118
118
  flex-grow: 1;
119
119
  margin: 0;
120
120
  padding: 0;
121
121
  border: none;
122
- color: $primary;
123
- font-size: $font-size-7;
124
- font-weight: $weight-semibold;
122
+ color: tokens.$primary;
123
+ font-size: tokens.$font-size-7;
124
+ font-weight: tokens.$weight-semibold;
125
125
  line-height: 1.25;
126
126
  text-align: start;
127
127
  text-decoration: none;
@@ -137,7 +137,7 @@ $card-column-gap: $spacer-5 !default;
137
137
  }
138
138
 
139
139
  &:visited {
140
- color: $visited;
140
+ color: tokens.$visited;
141
141
  }
142
142
  }
143
143
 
@@ -159,11 +159,11 @@ $card-column-gap: $spacer-5 !default;
159
159
  }
160
160
 
161
161
  .card-content-description {
162
- @include line-clamp(4);
162
+ @include mixins.line-clamp(4);
163
163
 
164
164
  max-height: inherit;
165
165
  padding-block-end: 0;
166
- font-size: $font-size-8;
166
+ font-size: tokens.$font-size-8;
167
167
  line-height: 1.25;
168
168
  }
169
169
 
@@ -171,7 +171,7 @@ $card-column-gap: $spacer-5 !default;
171
171
  display: flex;
172
172
  flex-wrap: nowrap;
173
173
  justify-content: space-between;
174
- border-block-start: 1px solid $border;
174
+ border-block-start: 1px solid tokens.$border;
175
175
  margin-inline: $card-padding;
176
176
 
177
177
  // Artificial alignment of card item, intended for use on when there's only a single .card-footer-items
@@ -235,14 +235,14 @@ $card-column-gap: $spacer-5 !default;
235
235
  }
236
236
  }
237
237
 
238
- @include tablet {
238
+ @include mixins.tablet {
239
239
  &.card-horizontal {
240
240
  flex-flow: row wrap;
241
241
 
242
242
  .card-content {
243
243
  padding-inline-start: 0;
244
244
  max-width: calc(100% - 7rem);
245
- padding-inline-end: $spacer-10 + $spacer-5;
245
+ padding-inline-end: tokens.$spacer-10 + tokens.$spacer-5;
246
246
  }
247
247
 
248
248
  .card-footer {
@@ -1,21 +1,21 @@
1
- @use '../tokens/index.scss' as *;
2
- @use '../mixins/index.scss' as *;
3
- @use './button.scss' as *;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+ @use './button.scss' as button;
4
4
 
5
- $code-block-font-size: $font-size-8 !default;
6
- $code-block-border-color: $code-block-border !default;
7
- $code-block-border-width: $border-width !default;
8
- $code-block-border-radius: $border-radius !default;
5
+ $code-block-font-size: tokens.$font-size-8 !default;
6
+ $code-block-border-color: tokens.$code-block-border !default;
7
+ $code-block-border-width: tokens.$border-width !default;
8
+ $code-block-border-radius: tokens.$border-radius !default;
9
9
 
10
10
  $code-block-header-min-height: 2rem !default;
11
- $code-block-header-color: $text !default;
12
- $code-block-header-background-color: $code-header !default;
13
- $code-block-header-font-weight: $weight-semibold !default;
14
- $code-block-header-gap: $spacer-2 !default;
15
- $code-block-header-padding-vertical: $spacer-1 !default;
16
- $code-block-header-padding-horizontal: $spacer-4 $spacer-3 !default;
11
+ $code-block-header-color: tokens.$text !default;
12
+ $code-block-header-background-color: tokens.$code-header !default;
13
+ $code-block-header-font-weight: tokens.$weight-semibold !default;
14
+ $code-block-header-gap: tokens.$spacer-2 !default;
15
+ $code-block-header-padding-vertical: tokens.$spacer-1 !default;
16
+ $code-block-header-padding-horizontal: tokens.$spacer-4 tokens.$spacer-3 !default;
17
17
 
18
- $code-block-control-padding: calc(0.125em - #{$button-border-width}) !default;
18
+ $code-block-control-padding: calc(0.125em - #{button.$button-border-width}) !default;
19
19
 
20
20
  .code-block {
21
21
  position: relative;
@@ -37,7 +37,7 @@ $code-block-control-padding: calc(0.125em - #{$button-border-width}) !default;
37
37
  padding-block: $code-block-header-padding-vertical;
38
38
  padding-inline: $code-block-header-padding-horizontal;
39
39
 
40
- @include tablet {
40
+ @include mixins.tablet {
41
41
  flex-wrap: nowrap;
42
42
  }
43
43
 
@@ -53,14 +53,14 @@ $code-block-control-padding: calc(0.125em - #{$button-border-width}) !default;
53
53
  .button {
54
54
  min-height: auto;
55
55
  outline-color: currentColor;
56
- outline-offset: -$focus-width;
57
- font-size: $button-sm-font-size;
56
+ outline-offset: -(tokens.$focus-width);
57
+ font-size: button.$button-sm-font-size;
58
58
  padding-block: $code-block-control-padding;
59
59
  }
60
60
  }
61
61
  }
62
62
 
63
63
  .code-block-body {
64
- @include code-block(true);
64
+ @include mixins.code-block(true);
65
65
  }
66
66
  }
@@ -1,23 +1,23 @@
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
4
  /* stylelint-disable selector-max-specificity, max-nesting-depth, selector-no-qualifying-type */
5
5
 
6
- $checkbox-border-radius: $border-radius !default;
6
+ $checkbox-border-radius: tokens.$border-radius !default;
7
7
  $checkbox-border-width: 0.0625em !default;
8
- $checkbox-unchecked-border-color: $control-border !default;
9
- $checkbox-invalid-border-color: $danger !default;
10
- $checkbox-color: $primary !default;
11
- $checkbox-check-color: $primary-invert !default;
12
- $checkbox-check-hover-color: $text-subtle !default;
8
+ $checkbox-unchecked-border-color: tokens.$control-border !default;
9
+ $checkbox-invalid-border-color: tokens.$danger !default;
10
+ $checkbox-color: tokens.$primary !default;
11
+ $checkbox-check-color: tokens.$primary-invert !default;
12
+ $checkbox-check-hover-color: tokens.$text-subtle !default;
13
13
  $checkbox-size: 1.25em !default;
14
14
  $checkbox-check-height: 0.75em !default;
15
15
  $checkbox-check-top: 0.125em !default;
16
16
  $checkbox-check-width: 0.3125em !default;
17
17
  $checkbox-check-thickness: 0.125em !default;
18
- $checkbox-timing-function: $input-timing-function !default;
19
- $checkbox-duration: $input-transition-duration !default;
20
- $checkbox-spacing: $spacer-3 !default;
18
+ $checkbox-timing-function: tokens.$input-timing-function !default;
19
+ $checkbox-duration: tokens.$input-transition-duration !default;
20
+ $checkbox-spacing: tokens.$spacer-3 !default;
21
21
 
22
22
  @mixin checkmark {
23
23
  display: block;
@@ -66,15 +66,15 @@ $checkbox-spacing: $spacer-3 !default;
66
66
  }
67
67
 
68
68
  &.checkbox-sm {
69
- @include control-sm;
69
+ @include mixins.control-sm;
70
70
  }
71
71
 
72
72
  &.checkbox-lg {
73
- @include control-lg;
73
+ @include mixins.control-lg;
74
74
  }
75
75
 
76
76
  input[type='checkbox'] {
77
- @include visually-hidden();
77
+ @include mixins.visually-hidden();
78
78
 
79
79
  &:checked + .checkbox-check {
80
80
  border-color: $checkbox-color;
@@ -99,7 +99,7 @@ $checkbox-spacing: $spacer-3 !default;
99
99
  }
100
100
  }
101
101
 
102
- @include focus-visible {
102
+ @include mixins.focus-visible {
103
103
  + .checkbox-check {
104
104
  @extend %focus;
105
105
  }
@@ -109,11 +109,11 @@ $checkbox-spacing: $spacer-3 !default;
109
109
  &.checkbox-muted {
110
110
  input[type='checkbox'] {
111
111
  &:checked + .checkbox-check {
112
- border-color: $text-subtle;
113
- background-color: $text-subtle;
112
+ border-color: tokens.$text-subtle;
113
+ background-color: tokens.$text-subtle;
114
114
 
115
115
  &::before {
116
- border-color: $text-invert;
116
+ border-color: tokens.$text-invert;
117
117
  }
118
118
  }
119
119
  }
@@ -1,26 +1,26 @@
1
- @use '../../tokens/index.scss' as *;
2
- @use '../../mixins/index.scss' as *;
3
- @use './label.scss' as *;
1
+ @use '../../tokens/index.scss' as tokens;
2
+ @use '../../mixins/index.scss' as mixins;
3
+ @use './label.scss' as label;
4
4
 
5
5
  /* stylelint-disable max-nesting-depth, selector-max-specificity */
6
6
 
7
7
  $field-line-height: 1.5 !default;
8
- $field-error-color: $danger !default;
8
+ $field-error-color: tokens.$danger !default;
9
9
 
10
10
  .field {
11
11
  &:not(:last-child) {
12
- margin-block-end: $spacer-4;
12
+ margin-block-end: tokens.$spacer-4;
13
13
  }
14
14
 
15
15
  .field-description {
16
- margin-block-end: $spacer-3;
17
- font-size: $font-size-8;
16
+ margin-block-end: tokens.$spacer-3;
17
+ font-size: tokens.$font-size-8;
18
18
  }
19
19
 
20
20
  .field-label {
21
- @include label;
21
+ @include label.label;
22
22
 
23
- margin-block-end: $spacer-3;
23
+ margin-block-end: tokens.$spacer-3;
24
24
 
25
25
  &.field-label-inline {
26
26
  display: inline-flex;
@@ -28,16 +28,16 @@ $field-error-color: $danger !default;
28
28
  align-self: flex-end;
29
29
  }
30
30
 
31
- @include tablet {
31
+ @include mixins.tablet {
32
32
  flex: 1 0 0;
33
33
  }
34
34
 
35
35
  &.field-label-sm {
36
- font-size: $font-size-8;
36
+ font-size: tokens.$font-size-8;
37
37
  }
38
38
 
39
39
  &.field-label-lg {
40
- font-size: $font-size-6;
40
+ font-size: tokens.$font-size-6;
41
41
  }
42
42
  }
43
43
 
@@ -47,7 +47,7 @@ $field-error-color: $danger !default;
47
47
  }
48
48
 
49
49
  &:not(:first-child) {
50
- margin-block-start: $spacer-3;
50
+ margin-block-start: tokens.$spacer-3;
51
51
 
52
52
  &.field-body-inline {
53
53
  display: inline-flex;
@@ -58,14 +58,14 @@ $field-error-color: $danger !default;
58
58
 
59
59
  .field-error {
60
60
  color: $field-error-color;
61
- font-size: $font-size-8;
61
+ font-size: tokens.$font-size-8;
62
62
  line-height: $field-line-height;
63
63
  }
64
64
  }
65
65
 
66
66
  .required-indicator::after,
67
67
  ::part(required-indicator)::after {
68
- color: $danger;
68
+ color: tokens.$danger;
69
69
  content: '*';
70
70
  vertical-align: top;
71
71
  }
@@ -1,10 +1,10 @@
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
- $help-color: $text !default;
5
- $help-danger-color: $danger !default;
6
- $help-success-color: $success !default;
7
- $help-font-size: $font-size-8 !default;
4
+ $help-color: tokens.$text !default;
5
+ $help-danger-color: tokens.$danger !default;
6
+ $help-success-color: tokens.$success !default;
7
+ $help-font-size: tokens.$font-size-8 !default;
8
8
 
9
9
  .help {
10
10
  display: block;