@microsoft/atlas-css 5.0.0-test.0 → 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 (107) 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 +4 -16
  6. package/package.json +2 -2
  7. package/src/atomics/aspect-ratio.scss +3 -0
  8. package/src/atomics/background.scss +3 -0
  9. package/src/atomics/border.scss +27 -24
  10. package/src/atomics/colors.scss +54 -51
  11. package/src/atomics/display.scss +10 -7
  12. package/src/atomics/flex.scss +3 -1
  13. package/src/atomics/gap.scss +15 -12
  14. package/src/atomics/height.scss +3 -0
  15. package/src/atomics/image.scss +3 -0
  16. package/src/atomics/index.scss +19 -19
  17. package/src/atomics/line-clamp.scss +7 -4
  18. package/src/atomics/list.scss +3 -0
  19. package/src/atomics/overflow.scss +4 -1
  20. package/src/atomics/position.scss +7 -4
  21. package/src/atomics/shadow.scss +7 -4
  22. package/src/atomics/spacing-auto.scss +6 -3
  23. package/src/atomics/spacing.scss +15 -12
  24. package/src/atomics/typography.scss +40 -37
  25. package/src/atomics/visually-hidden.scss +4 -1
  26. package/src/atomics/width.scss +4 -2
  27. package/src/components/accordion.scss +20 -16
  28. package/src/components/badge.scss +22 -19
  29. package/src/components/banner.scss +19 -16
  30. package/src/components/breadcrumbs.scss +5 -2
  31. package/src/components/button-reset.scss +4 -1
  32. package/src/components/button.scss +54 -52
  33. package/src/components/buttons.scss +14 -11
  34. package/src/components/card.scss +31 -28
  35. package/src/components/code-block.scss +19 -15
  36. package/src/components/form/checkbox.scss +19 -16
  37. package/src/components/form/form.scss +16 -12
  38. package/src/components/form/help.scss +7 -4
  39. package/src/components/form/index.scss +8 -8
  40. package/src/components/form/input.scss +27 -24
  41. package/src/components/form/label.scss +6 -3
  42. package/src/components/form/radio.scss +19 -16
  43. package/src/components/form/select.scss +29 -24
  44. package/src/components/form/textarea.scss +28 -25
  45. package/src/components/gradient-card.scss +9 -5
  46. package/src/components/gradient.scss +11 -8
  47. package/src/components/hero.scss +32 -29
  48. package/src/components/icon.scss +3 -0
  49. package/src/components/image.scss +5 -2
  50. package/src/components/index.scss +34 -35
  51. package/src/components/layout.scss +108 -94
  52. package/src/components/link-button.scss +9 -6
  53. package/src/components/markdown.scss +16 -13
  54. package/src/components/media.scss +4 -1
  55. package/src/components/message.scss +15 -12
  56. package/src/components/notification.scss +22 -19
  57. package/src/components/pagination.scss +29 -26
  58. package/src/components/persona.scss +15 -12
  59. package/src/components/popover.scss +16 -13
  60. package/src/components/progress-bar.scss +13 -10
  61. package/src/components/scroll.scss +3 -0
  62. package/src/components/segmented-control.scss +32 -29
  63. package/src/components/site-header.scss +37 -33
  64. package/src/components/steps.scss +7 -4
  65. package/src/components/stretched-link.scss +4 -1
  66. package/src/components/table.scss +21 -18
  67. package/src/components/tag.scss +38 -35
  68. package/src/components/timeline.scss +16 -14
  69. package/src/components/toggle.scss +18 -15
  70. package/src/core/animations.scss +5 -2
  71. package/src/core/bare-elements.scss +7 -4
  72. package/src/core/focus.scss +7 -4
  73. package/src/core/font-stack.scss +9 -6
  74. package/src/core/index.scss +7 -7
  75. package/src/core/minireset.scss +3 -0
  76. package/src/core/normalize.scss +3 -0
  77. package/src/core/themes.scss +20 -18
  78. package/src/index.scss +5 -5
  79. package/src/mixins/center.scss +2 -0
  80. package/src/mixins/chevron.scss +6 -3
  81. package/src/mixins/code-block.scss +10 -8
  82. package/src/mixins/colors.scss +2 -0
  83. package/src/mixins/control.scss +6 -4
  84. package/src/mixins/dismiss.scss +5 -2
  85. package/src/mixins/focus.scss +6 -4
  86. package/src/mixins/font-size.scss +4 -3
  87. package/src/mixins/force-colors.scss +2 -0
  88. package/src/mixins/gradient.scss +2 -0
  89. package/src/mixins/index.scss +18 -18
  90. package/src/mixins/layout-gap.scss +6 -3
  91. package/src/mixins/line-clamp.scss +2 -0
  92. package/src/mixins/loader.scss +4 -2
  93. package/src/mixins/media-queries.scss +6 -4
  94. package/src/mixins/overlay.scss +2 -0
  95. package/src/mixins/transparency.scss +2 -0
  96. package/src/mixins/unselectable.scss +2 -0
  97. package/src/mixins/visually-hidden.scss +2 -0
  98. package/src/tokens/breakpoints.scss +1 -1
  99. package/src/tokens/colors.scss +3 -1
  100. package/src/tokens/direction.scss +0 -14
  101. package/src/tokens/index.scss +18 -18
  102. package/src/tokens/layout.scss +3 -1
  103. package/src/tokens/shadow.scss +10 -7
  104. package/src/tokens/themes.scss +474 -471
  105. package/src/tokens/typography.scss +1 -4
  106. package/tokens/index.js +33 -4
  107. package/src/components/reading-width.scss +0 -3
@@ -1,4 +1,7 @@
1
- @if ($focus-visible-use-polyfill) {
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+
4
+ @if (tokens.$focus-visible-use-polyfill) {
2
5
  .js-focus-visible .has-default-focus *:focus:not(.focus-visible),
3
6
  .js-focus-visible .default-focus *:focus:not(.focus-visible) {
4
7
  outline: none;
@@ -6,7 +9,7 @@
6
9
 
7
10
  .focus-visible.has-inner-focus,
8
11
  .focus-visible.inner-focus {
9
- outline-offset: -$focus-width;
12
+ outline-offset: -(tokens.$focus-width);
10
13
  }
11
14
 
12
15
  .has-default-focus,
@@ -29,7 +32,7 @@
29
32
  &.has-inner-focus,
30
33
  &.inner-focus {
31
34
  outline-color: currentColor;
32
- outline-offset: -$focus-width;
35
+ outline-offset: -(tokens.$focus-width);
33
36
  }
34
37
  }
35
38
  }
@@ -40,6 +43,6 @@
40
43
  &.has-inner-focus,
41
44
  &.inner-focus {
42
45
  outline-color: currentColor;
43
- outline-offset: -$focus-width;
46
+ outline-offset: -(tokens.$focus-width);
44
47
  }
45
48
  }
@@ -1,28 +1,31 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+
1
4
  html {
2
- font-size: $document-font-size;
5
+ font-size: tokens.$document-font-size;
3
6
  }
4
7
 
5
8
  html,
6
9
  body {
7
- font-family: $normal-font-stack;
10
+ font-family: tokens.$normal-font-stack;
8
11
  -webkit-font-smoothing: antialiased;
9
- font-weight: $weight-normal;
12
+ font-weight: tokens.$weight-normal;
10
13
  text-rendering: optimizeLegibility;
11
14
  }
12
15
 
13
16
  kbd,
14
17
  pre,
15
18
  samp {
16
- font-family: $monospace-font-stack !important;
19
+ font-family: tokens.$monospace-font-stack !important;
17
20
  -moz-osx-font-smoothing: auto;
18
21
  -webkit-font-smoothing: auto;
19
22
  }
20
23
 
21
24
  code {
22
25
  direction: ltr;
23
- font-family: $monospace-font-stack;
26
+ font-family: tokens.$monospace-font-stack;
24
27
  }
25
28
 
26
29
  a > code {
27
- font-family: $normal-font-stack;
30
+ font-family: tokens.$normal-font-stack;
28
31
  }
@@ -1,7 +1,7 @@
1
- @import './normalize.scss';
2
- @import './minireset.scss';
3
- @import './themes.scss';
4
- @import './font-stack.scss';
5
- @import './animations.scss';
6
- @import './focus.scss';
7
- @import './bare-elements.scss';
1
+ @forward './normalize.scss';
2
+ @forward './minireset.scss';
3
+ @forward './themes.scss';
4
+ @forward './font-stack.scss';
5
+ @forward './animations.scss';
6
+ @forward './focus.scss';
7
+ @forward './bare-elements.scss';
@@ -1,3 +1,6 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+
1
4
  /* stylelint-disable */
2
5
  /*! minireset.css v0.0.7 | MIT License | github.com/jgthms/minireset.css */
3
6
  html,
@@ -1,3 +1,6 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use '../mixins/index.scss' as mixins;
3
+
1
4
  /* stylelint-disable */
2
5
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
3
6
 
@@ -1,25 +1,27 @@
1
1
  @use 'sass:map';
2
+ @use '../tokens/index.scss' as tokens;
3
+ @use '../mixins/index.scss' as mixins;
2
4
 
3
5
  $root-theme: 'light' !default;
4
6
  $print-theme: 'light' !default;
5
7
 
6
8
  // Ensure that the root theme exists
7
- @if map.has-key($themes, $root-theme) != true {
8
- @error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in $themes map.";
9
+ @if map.has-key(tokens.$themes, $root-theme) != true {
10
+ @error "Cannot build themes because $root-theme (#{$root-theme}) is set to a theme that does not exist in tokens.$themes map.";
9
11
  }
10
12
 
11
13
  // Ensure that the print theme exists
12
- @if map.has-key($themes, $print-theme) != true {
13
- @error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in $themes map.";
14
+ @if map.has-key(tokens.$themes, $print-theme) != true {
15
+ @error "Cannot build themes because $print-theme (#{$print-theme}) is set to a theme that does not exist in tokens.$themes map.";
14
16
  }
15
17
 
16
- $theme-names: map.keys($themes);
18
+ $theme-names: map.keys(tokens.$themes);
17
19
 
18
20
  // Validation: ensure that all values in the root theme are in the other themes too
19
- @each $root-color-name, $val in map.get($themes, $root-theme) {
21
+ @each $root-color-name, $val in map.get(tokens.$themes, $root-theme) {
20
22
  @each $theme-name in $theme-names {
21
23
  @if $theme-name != $root-theme {
22
- @if map.has-key(map.get($themes, $theme-name), $root-color-name) != true {
24
+ @if map.has-key(map.get(tokens.$themes, $theme-name), $root-color-name) != true {
23
25
  @error '#{$root-color-name} from #{$root-theme} does not exist in theme: #{$theme-name}.';
24
26
  }
25
27
  }
@@ -28,10 +30,10 @@ $theme-names: map.keys($themes);
28
30
 
29
31
  // Validation: ensure all properties in non-root themes exist in root
30
32
  @each $theme-name in $theme-names {
31
- $theme: map.get($themes, $theme-name);
33
+ $theme: map.get(tokens.$themes, $theme-name);
32
34
 
33
35
  @if $theme-name != $root-theme {
34
- $root: map.get($themes, $root-theme);
36
+ $root: map.get(tokens.$themes, $root-theme);
35
37
 
36
38
  @each $color-name, $val in $theme {
37
39
  @if map.has-key($root, $color-name) != true {
@@ -41,11 +43,11 @@ $theme-names: map.keys($themes);
41
43
  }
42
44
  }
43
45
 
44
- @each $key, $value in $themes {
46
+ @each $key, $value in tokens.$themes {
45
47
  // Set the default theme
46
48
  @if $key == $root-theme {
47
49
  :root {
48
- @each $colorName, $colorVal in map.get($themes, $key) {
50
+ @each $colorName, $colorVal in map.get(tokens.$themes, $key) {
49
51
  // stylelint-disable-next-line custom-property-pattern
50
52
  --theme-#{$colorName}: #{$colorVal};
51
53
  }
@@ -54,7 +56,7 @@ $theme-names: map.keys($themes);
54
56
 
55
57
  @if $key == $print-theme {
56
58
  .theme-#{$key} {
57
- @each $colorName, $colorVal in map.get($themes, $key) {
59
+ @each $colorName, $colorVal in map.get(tokens.$themes, $key) {
58
60
  // stylelint-disable-next-line custom-property-pattern
59
61
  --theme-#{$colorName}: #{$colorVal};
60
62
  }
@@ -63,7 +65,7 @@ $theme-names: map.keys($themes);
63
65
  // Set the rest of the themes, exclude them from print styling.
64
66
  @media not print {
65
67
  .theme-#{$key} {
66
- @each $colorName, $colorVal in map-get($themes, $key) {
68
+ @each $colorName, $colorVal in map-get(tokens.$themes, $key) {
67
69
  // stylelint-disable-next-line custom-property-pattern
68
70
  --theme-#{$colorName}: #{$colorVal};
69
71
  }
@@ -75,18 +77,18 @@ $theme-names: map.keys($themes);
75
77
  // End validation
76
78
 
77
79
  %theme-base-styles {
78
- outline-color: $text;
79
- background-color: $body-background;
80
- color: $text;
80
+ outline-color: tokens.$text;
81
+ background-color: tokens.$body-background;
82
+ color: tokens.$text;
81
83
  }
82
84
 
83
- @each $key, $value in $themes {
85
+ @each $key, $value in tokens.$themes {
84
86
  .theme-#{$key} {
85
87
  @extend %theme-base-styles;
86
88
  }
87
89
  }
88
90
 
89
- @each $key, $value in $color-schemes {
91
+ @each $key, $value in tokens.$color-schemes {
90
92
  .theme-#{$key} {
91
93
  color-scheme: #{$value};
92
94
  }
package/src/index.scss CHANGED
@@ -1,5 +1,5 @@
1
- @import './tokens/index.scss';
2
- @import './mixins/index.scss';
3
- @import './core/index.scss';
4
- @import './components/index.scss';
5
- @import './atomics/index.scss';
1
+ @forward './tokens/index.scss';
2
+ @forward './mixins/index.scss';
3
+ @forward './core/index.scss';
4
+ @forward './components/index.scss';
5
+ @forward './atomics/index.scss';
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  @mixin center($width, $height: 0) {
2
4
  position: absolute;
3
5
 
@@ -1,4 +1,7 @@
1
- $chevron-color: $text !default;
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use './control.scss' as control;
3
+
4
+ $chevron-color: tokens.$text !default;
2
5
  $chevron-arrow-size: 0.525em !default;
3
6
  $chevron-arrow-border-width: 1px !default;
4
7
  $chevron-arrow-actual-width: 0.75em !default;
@@ -19,8 +22,8 @@ $chevron-up-rotate-scale-xy-rtl: $chevron-down-rotate-rtl scaleY(-1) scaleX(-1);
19
22
  border-inline-end: 0;
20
23
  pointer-events: none;
21
24
  content: ' ';
22
- z-index: $zindex-active;
23
- inset-inline-end: $control-padding-horizontal;
25
+ z-index: tokens.$zindex-active;
26
+ inset-inline-end: control.$control-padding-horizontal;
24
27
  }
25
28
 
26
29
  @mixin chevron-right {
@@ -1,12 +1,14 @@
1
- $code-block-pre-font-size: $font-size-8 !default;
1
+ @use '../tokens/index.scss' as tokens;
2
+
3
+ $code-block-pre-font-size: tokens.$font-size-8 !default;
2
4
  $code-block-pre-spacing: 1em !default;
3
5
  $code-block-pre-line-height: 1.3571 !default;
4
- $code-block-pre-border-color: $code-block-border !default;
5
- $code-block-pre-border-width: $border-width !default;
6
- $code-block-pre-border-radius: $border-radius !default;
7
- $code-block-pre-background-color: $code-block !default;
6
+ $code-block-pre-border-color: tokens.$code-block-border !default;
7
+ $code-block-pre-border-width: tokens.$border-width !default;
8
+ $code-block-pre-border-radius: tokens.$border-radius !default;
9
+ $code-block-pre-background-color: tokens.$code-block !default;
8
10
 
9
- $code-block-pre-padding: $spacer-4 !default;
11
+ $code-block-pre-padding: tokens.$spacer-4 !default;
10
12
 
11
13
  @mixin code-block($code-block-component: false) {
12
14
  @if $code-block-component == true {
@@ -20,7 +22,7 @@ $code-block-pre-padding: $spacer-4 !default;
20
22
  margin: 0;
21
23
  padding: $code-block-pre-padding;
22
24
  outline-color: currentColor;
23
- outline-offset: -$focus-width;
25
+ outline-offset: -(tokens.$focus-width);
24
26
  font-size: $code-block-pre-font-size;
25
27
  -moz-osx-font-smoothing: auto;
26
28
  -webkit-font-smoothing: auto;
@@ -53,7 +55,7 @@ $code-block-pre-padding: $spacer-4 !default;
53
55
  min-height: 18.9px; // Allow for highlighting of blank lines.
54
56
  margin: 0 $code-block-pre-spacing * -1;
55
57
  padding: 0 $code-block-pre-spacing;
56
- color: $text;
58
+ color: tokens.$text;
57
59
  }
58
60
  }
59
61
  }
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  @mixin fill-current-color {
2
4
  fill: currentColor !important;
3
5
 
@@ -1,8 +1,10 @@
1
- $control-radius: $border-radius !default;
1
+ @use '../tokens/index.scss' as tokens;
2
2
 
3
- $control-font-size: $font-size-7 !default;
4
- $control-sm-font-size: $font-size-8 !default;
5
- $control-lg-font-size: $font-size-6 !default;
3
+ $control-radius: tokens.$border-radius !default;
4
+
5
+ $control-font-size: tokens.$font-size-7 !default;
6
+ $control-sm-font-size: tokens.$font-size-8 !default;
7
+ $control-lg-font-size: tokens.$font-size-6 !default;
6
8
 
7
9
  $control-border-width: 1px !default;
8
10
 
@@ -1,5 +1,8 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use './transparency.scss' as transparency;
3
+
1
4
  %dismiss {
2
- @include transparent-effects;
5
+ @include transparency.transparent-effects;
3
6
 
4
7
  display: inline-block;
5
8
  color: currentColor;
@@ -18,5 +21,5 @@
18
21
  height: 1em;
19
22
  padding: 0;
20
23
  border: 0;
21
- border-radius: $border-radius-rounded;
24
+ border-radius: tokens.$border-radius-rounded;
22
25
  }
@@ -1,9 +1,11 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  // stylelint-disable declaration-block-no-redundant-longhand-properties
2
4
  @mixin focus() {
3
5
  outline-color: inherit;
4
- outline-offset: $focus-outline-offset;
5
- outline-style: $focus-style;
6
- outline-width: $focus-width;
6
+ outline-offset: tokens.$focus-outline-offset;
7
+ outline-style: tokens.$focus-style;
8
+ outline-width: tokens.$focus-width;
7
9
  }
8
10
 
9
11
  %focus {
@@ -11,7 +13,7 @@
11
13
  }
12
14
 
13
15
  @mixin focus-visible {
14
- @if ($focus-visible-use-polyfill) {
16
+ @if (tokens.$focus-visible-use-polyfill) {
15
17
  &.focus-visible {
16
18
  @content;
17
19
  }
@@ -1,4 +1,5 @@
1
1
  @use 'sass:math';
2
+ @use '../tokens/index.scss' as tokens;
2
3
 
3
4
  /* stylelint-disable */
4
5
 
@@ -16,16 +17,16 @@ $font-size-scaling-factor: 0.75 !default;
16
17
  // font-size to start scaling from
17
18
  $start-rem: max($end-rem * $font-size-scaling-factor, 1rem),
18
19
  // viewport width to stop scaling at
19
- $end-width: $breakpoint-desktop,
20
+ $end-width: tokens.$breakpoint-desktop,
20
21
  // viewport width to start scaling from
21
22
  $start-width: 480px
22
23
  ) {
23
24
  $m: math.div(
24
25
  strip-units($end-rem) - strip-units($start-rem),
25
26
  strip-units($end-width) - strip-units($start-width)
26
- ) * strip-units($document-font-size);
27
+ ) * strip-units(tokens.$document-font-size);
27
28
 
28
- $y: strip-units($start-rem) * strip-units($document-font-size);
29
+ $y: strip-units($start-rem) * strip-units(tokens.$document-font-size);
29
30
  $x: strip-units($start-width);
30
31
  $b: $y - $m * $x;
31
32
  $importantValue: if($important, !important, '');
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  @mixin forced-colors() {
2
4
  @media (forced-colors: active) {
3
5
  @content;
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  @mixin gradient-text($startColor, $endColor) {
2
4
  /* stylelint-disable */
3
5
  -webkit-background-clip: text;
@@ -1,18 +1,18 @@
1
- @import './media-queries.scss';
2
- @import './code-block.scss';
3
- @import './colors.scss';
4
- @import './control.scss';
5
- @import './center.scss';
6
- @import './chevron.scss';
7
- @import './focus.scss';
8
- @import './gradient.scss';
9
- @import './loader.scss';
10
- @import './line-clamp.scss';
11
- @import './layout-gap.scss';
12
- @import './font-size.scss';
13
- @import './force-colors.scss';
14
- @import './overlay.scss';
15
- @import './transparency.scss';
16
- @import './dismiss.scss';
17
- @import './unselectable.scss';
18
- @import './visually-hidden.scss';
1
+ @forward './media-queries.scss';
2
+ @forward './code-block.scss';
3
+ @forward './colors.scss';
4
+ @forward './control.scss';
5
+ @forward './center.scss';
6
+ @forward './chevron.scss';
7
+ @forward './focus.scss';
8
+ @forward './gradient.scss';
9
+ @forward './loader.scss';
10
+ @forward './line-clamp.scss';
11
+ @forward './layout-gap.scss';
12
+ @forward './font-size.scss';
13
+ @forward './force-colors.scss';
14
+ @forward './overlay.scss';
15
+ @forward './transparency.scss';
16
+ @forward './dismiss.scss';
17
+ @forward './unselectable.scss';
18
+ @forward './visually-hidden.scss';
@@ -1,7 +1,10 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+ @use './media-queries.scss' as media-queries;
3
+
1
4
  %layout-gap {
2
- padding-inline: $layout-gap;
5
+ padding-inline: tokens.$layout-gap;
3
6
 
4
- @include widescreen {
5
- padding-inline: $layout-widescreen-gap;
7
+ @include media-queries.widescreen {
8
+ padding-inline: tokens.$layout-widescreen-gap;
6
9
  }
7
10
  }
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  %line-clamp {
2
4
  /*stylelint-disable*/
3
5
  display: -webkit-box;
@@ -1,11 +1,13 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  %loader {
2
4
  display: block;
3
5
  position: relative;
4
6
  width: 1em;
5
7
  height: 1em;
6
8
  animation: spinAround 500ms infinite linear;
7
- border: 2px solid $border;
8
- border-radius: $border-radius-rounded;
9
+ border: 2px solid tokens.$border;
10
+ border-radius: tokens.$border-radius-rounded;
9
11
  border-block-start-color: transparent;
10
12
  border-inline-end-color: transparent;
11
13
  content: '';
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  // Orientation
2
4
 
3
5
  @mixin orientation-portrait {
@@ -24,26 +26,26 @@
24
26
  // Mobile-first screen size media queries
25
27
 
26
28
  @mixin tablet {
27
- @media screen and (min-width: $breakpoint-tablet), print {
29
+ @media screen and (min-width: tokens.$breakpoint-tablet), print {
28
30
  @content;
29
31
  }
30
32
  }
31
33
 
32
34
  @mixin desktop {
33
- @media screen and (min-width: $breakpoint-desktop) {
35
+ @media screen and (min-width: tokens.$breakpoint-desktop) {
34
36
  @content;
35
37
  }
36
38
  }
37
39
 
38
40
  @mixin widescreen {
39
- @media screen and (min-width: $breakpoint-widescreen) {
41
+ @media screen and (min-width: tokens.$breakpoint-widescreen) {
40
42
  @content;
41
43
  }
42
44
  }
43
45
 
44
46
  // Please avoid using this mixin if possible. It doesn't follow the mobile-first approach to writing CSS.
45
47
  @mixin discouraged-mobile {
46
- @media screen and (max-width: ($breakpoint-tablet - 1px)) {
48
+ @media screen and (max-width: (tokens.$breakpoint-tablet - 1px)) {
47
49
  @content;
48
50
  }
49
51
  }
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  %overlay {
2
4
  position: absolute;
3
5
  inset: 0;
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  %transparent-effects {
2
4
  outline-color: inherit;
3
5
  background-color: transparent;
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  %unselectable {
2
4
  /* stylelint-disable */
3
5
  -webkit-touch-callout: none;
@@ -1,3 +1,5 @@
1
+ @use '../tokens/index.scss' as tokens;
2
+
1
3
  @mixin visually-hidden() {
2
4
  position: absolute;
3
5
  width: 1px;
@@ -7,5 +7,5 @@ $container-gap: 64px !default;
7
7
  // Breakpoints
8
8
  $breakpoint-tablet: 768px !default;
9
9
  $breakpoint-desktop: 1088px !default;
10
- $breakpoint-widescreen: 2800px !default;
10
+ $breakpoint-widescreen: 1800px !default;
11
11
  //@end-sass-export-section
@@ -1,3 +1,5 @@
1
+ @use './palette.scss' as palette;
2
+
1
3
  /**
2
4
  * @sass-export-section="colors"
3
5
  */
@@ -24,7 +26,7 @@ $alternate-background-medium: var(--theme-alternate-background-medium);
24
26
 
25
27
  $overlay: var(--theme-overlay);
26
28
  $overlay-invert: var(--theme-overlay-invert);
27
- $overlay-static: $palette-black-opacity-50;
29
+ $overlay-static: palette.$palette-black-opacity-50;
28
30
  $border: var(--theme-border);
29
31
  $border-accent: var(--theme-border-accent);
30
32
 
@@ -2,20 +2,6 @@
2
2
  * @sass-export-section="direction"
3
3
  */
4
4
  // Direction
5
- $user-text-direction: ltr !default;
6
-
7
- $user-left: if($user-text-direction == rtl, right, left);
8
- $user-right: if($user-text-direction == rtl, left, right);
9
-
10
- $user-translate-x-direction: if($user-text-direction == rtl, -1, 1);
11
-
12
- $directions: (
13
- 'top': 'top',
14
- 'right': $user-right,
15
- 'bottom': 'bottom',
16
- 'left': $user-left
17
- );
18
-
19
5
  $logical-directions: (
20
6
  'top': 'block-start',
21
7
  'right': 'inline-end',
@@ -1,18 +1,18 @@
1
- @import './palette.scss';
2
- @import './animation.scss';
3
- @import './border.scss';
4
- @import './breakpoints.scss';
5
- @import './display.scss';
6
- @import './containers.scss';
7
- @import './colors.scss';
8
- @import './direction.scss';
9
- @import './focus.scss';
10
- @import './font-stack.scss';
11
- @import './layout.scss';
12
- @import './position.scss';
13
- @import './schemes.scss';
14
- @import './shadow.scss';
15
- @import './spacing.scss';
16
- @import './themes.scss';
17
- @import './typography.scss';
18
- @import './z-index.scss';
1
+ @forward './palette.scss';
2
+ @forward './animation.scss';
3
+ @forward './border.scss';
4
+ @forward './breakpoints.scss';
5
+ @forward './display.scss';
6
+ @forward './containers.scss';
7
+ @forward './colors.scss';
8
+ @forward './direction.scss';
9
+ @forward './focus.scss';
10
+ @forward './font-stack.scss';
11
+ @forward './layout.scss';
12
+ @forward './position.scss';
13
+ @forward './schemes.scss';
14
+ @forward './shadow.scss';
15
+ @forward './spacing.scss';
16
+ @forward './themes.scss';
17
+ @forward './typography.scss';
18
+ @forward './z-index.scss';
@@ -1,3 +1,5 @@
1
+ @use './breakpoints.scss' as breakpoints;
2
+
1
3
  /**
2
4
  * @sass-export-section="layout"
3
5
  */
@@ -7,7 +9,7 @@ $large-column-gap: 1.5rem !default;
7
9
  $reading-max-width: 50rem !default;
8
10
 
9
11
  $layout-gap: 24px !default;
10
- $layout-widescreen-width: $breakpoint-widescreen - $layout-gap * 2 !default;
12
+ $layout-widescreen-width: breakpoints.$breakpoint-widescreen - $layout-gap * 2 !default;
11
13
  $layout-widescreen-gap: max(
12
14
  $layout-gap,
13
15
  calc(50% - #{$layout-widescreen-width} / 2)
@@ -1,11 +1,14 @@
1
+ @use './colors.scss' as colors;
2
+
1
3
  /**
2
4
  * @sass-export-section="shadow"
3
5
  */
4
- $box-shadow-light: 0 1.6px 3.6px 0 $box-shadow-color-medium, 0 0.3px 0.9px 0 $box-shadow-color-light !default;
5
- $box-shadow-medium: 0 3.2px 7.2px 0 $box-shadow-color-medium,
6
- 0 0.6px 1.8px 0 $box-shadow-color-light !default;
7
- $box-shadow-heavy: 0 6.4px 14.4px 0 $box-shadow-color-medium,
8
- 0 1.2px 3.6px 0 $box-shadow-color-light !default;
9
- $box-shadow-extra-heavy: 0 25.6px 57.6px 0 $box-shadow-color-extra-heavy,
10
- 0 4.8px 14.4px 0 $box-shadow-color-heavy !default;
6
+ $box-shadow-light: 0 1.6px 3.6px 0 colors.$box-shadow-color-medium,
7
+ 0 0.3px 0.9px 0 colors.$box-shadow-color-light !default;
8
+ $box-shadow-medium: 0 3.2px 7.2px 0 colors.$box-shadow-color-medium,
9
+ 0 0.6px 1.8px 0 colors.$box-shadow-color-light !default;
10
+ $box-shadow-heavy: 0 6.4px 14.4px 0 colors.$box-shadow-color-medium,
11
+ 0 1.2px 3.6px 0 colors.$box-shadow-color-light !default;
12
+ $box-shadow-extra-heavy: 0 25.6px 57.6px 0 colors.$box-shadow-color-extra-heavy,
13
+ 0 4.8px 14.4px 0 colors.$box-shadow-color-heavy !default;
11
14
  //@end-sass-export-section