@madgex/design-system 5.11.3 → 6.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 (69) hide show
  1. package/README.md +4 -10
  2. package/dist/_tokens/css/_tokens.css +62 -96
  3. package/dist/_tokens/js/_tokens-module.js +1342 -1406
  4. package/dist/_tokens/sketch/_tokens.sketchpalette +1 -1
  5. package/dist/assets/icons.json +1 -1
  6. package/dist/css/index.css +1 -1
  7. package/dist/js/index-fractal.js +1 -1
  8. package/dist/js/index.js +1 -1
  9. package/package.json +4 -4
  10. package/src/components/_preview.njk +1 -0
  11. package/src/components/button/button.scss +50 -37
  12. package/src/components/card/README.md +1 -1
  13. package/src/components/card/_template.njk +1 -1
  14. package/src/components/card/card.config.js +1 -2
  15. package/src/components/card/card.scss +29 -39
  16. package/src/components/icons/README.md +3 -3
  17. package/src/components/icons/icons.scss +26 -19
  18. package/src/components/inputs/_form-elements.scss +44 -44
  19. package/src/components/inputs/checkbox-pill/checkbox-pill.scss +14 -14
  20. package/src/components/inputs/combobox/combobox.scss +13 -13
  21. package/src/components/inputs/file-upload/file-upload.scss +14 -14
  22. package/src/components/inputs/input-number/input-number.scss +10 -10
  23. package/src/components/inputs/text-editor/text-editor.scss +16 -16
  24. package/src/components/modal/modal.js +1 -1
  25. package/src/components/modal/modal.scss +4 -4
  26. package/src/components/notification/notification.scss +1 -1
  27. package/src/components/pagination/pagination.scss +8 -8
  28. package/src/components/popover/popover.js +1 -1
  29. package/src/components/popover/popover.scss +13 -13
  30. package/src/components/section-title/section-title.scss +1 -1
  31. package/src/components/skip-link/skip-link.scss +4 -4
  32. package/src/components/tabs/tabs.js +1 -1
  33. package/src/components/tabs/tabs.scss +16 -16
  34. package/src/components/toggle-button-links/toggle-button-links.scss +20 -20
  35. package/src/helpers/spacing/README.md +2 -2
  36. package/src/layout/grid/README.md +4 -4
  37. package/src/scss/constants/__index.scss +2 -0
  38. package/src/scss/constants/_sd-tokens.scss +81 -0
  39. package/src/scss/constants/_vars.scss +4 -0
  40. package/src/scss/core/_containers.scss +35 -38
  41. package/src/scss/core/_defaults.scss +14 -8
  42. package/src/scss/core/_grid.scss +20 -23
  43. package/src/scss/core/_lists.scss +13 -13
  44. package/src/scss/core/_message.scss +32 -32
  45. package/src/scss/core/_typography.scss +13 -13
  46. package/src/scss/functions/__index.scss +0 -2
  47. package/src/scss/functions/_media-queries.scss +4 -4
  48. package/src/scss/functions/_text-contrast.scss +6 -7
  49. package/src/scss/helpers/_borders.scss +5 -38
  50. package/src/scss/helpers/_display.scss +0 -1
  51. package/src/scss/helpers/_edited-text.scss +5 -5
  52. package/src/scss/helpers/_floats.scss +0 -1
  53. package/src/scss/helpers/_font-types.scss +15 -15
  54. package/src/scss/helpers/_spacing.scss +33 -36
  55. package/src/scss/helpers/_text-align.scss +0 -1
  56. package/src/scss/helpers/_vertical-align.scss +0 -2
  57. package/src/scss/helpers/_width-height.scss +4 -6
  58. package/src/scss/import.scss +1 -0
  59. package/src/scss/index.scss +0 -2
  60. package/src/tokens/_config.js +22 -9
  61. package/src/tokens/_constants.json +130 -0
  62. package/src/tokens/color.json +8 -76
  63. package/src/tokens/custom.json +0 -8
  64. package/src/tokens/size.json +0 -16
  65. package/src/tokens/typography.json +3 -1
  66. package/tasks/registerTransforms.js +28 -1
  67. package/dist/_tokens/scss/_tokens.scss +0 -741
  68. package/src/scss/functions/_color.scss +0 -0
  69. package/src/scss/functions/_px2rem.scss +0 -20
@@ -1,10 +1,10 @@
1
1
  ## Space scale
2
2
 
3
- We are using a spacing scale based on a single tolen: `$mds-size-baseline = 0.25 rem | 4px`.
3
+ We are using a spacing scale based on a single tolen: `$scss-var-size-baseline = 0.25 rem | 4px`.
4
4
 
5
5
  We multiply this token to create any spacing on the design system.
6
6
 
7
- Ex: `margin-bottom: $mds-size-baseline * 5`
7
+ Ex: `margin-bottom: $scss-var-size-baseline * 5`
8
8
 
9
9
  ## Helpers
10
10
 
@@ -11,10 +11,10 @@ The default will start at 0 and then we add breakpoints to target the wider view
11
11
 
12
12
  We are using the following breakpoints:
13
13
 
14
- - `$mds-size-breakpoint-sm` : `400px`
15
- - `$mds-size-breakpoint-md` : `600px`
16
- - `$mds-size-breakpoint-lg` : `1008px`
17
- - `$mds-size-breakpoint-xl` : `1280px`
14
+ - `$scss-var-size-breakpoint-sm` : `400px`
15
+ - `$scss-var-size-breakpoint-md` : `600px`
16
+ - `$scss-var-size-breakpoint-lg` : `1008px`
17
+ - `$scss-var-size-breakpoint-xl` : `1280px`
18
18
 
19
19
  They can be overridden as necessary.
20
20
 
@@ -0,0 +1,2 @@
1
+ @import 'sd-tokens'; // file created by style dictionary
2
+ @import 'vars';
@@ -0,0 +1,81 @@
1
+
2
+ /**
3
+ * Do not edit directly
4
+ * Generated on Thu, 04 Jan 2024 14:57:02 GMT
5
+ */
6
+
7
+ $scss-var-color-neutral-white: #FFFFFF;
8
+ $scss-var-color-neutral-black: #000000;
9
+ $scss-var-color-neutral-base: #707070;
10
+ $scss-var-color-neutral-light: #949494;
11
+ $scss-var-color-neutral-lighter: #DDDDDD;
12
+ $scss-var-color-neutral-lightest: #F8F8F8;
13
+ $scss-var-color-neutral-darker: #333333;
14
+ $scss-var-color-status-error-light: #fd0826;
15
+ $scss-var-color-status-error-lightest: #ffe3e6;
16
+ $scss-var-color-status-error-dark: #d0021b;
17
+ $scss-var-color-status-error-darkest: #ae0216;
18
+ $scss-var-color-status-error-base: #e1021d;
19
+ $scss-var-color-status-success-light: #6ac52d;
20
+ $scss-var-color-status-success-lightest: #f0faea;
21
+ $scss-var-color-status-success-dark: #549b24;
22
+ $scss-var-color-status-success-darkest: #40791B;
23
+ $scss-var-color-status-success-base: #5ba927;
24
+ $scss-var-color-status-info-light: #ffc442;
25
+ $scss-var-color-status-info-lightest: #fff7e5;
26
+ $scss-var-color-status-info-dark: #f4aa08;
27
+ $scss-var-color-status-info-darkest: #946500;
28
+ $scss-var-color-status-info-base: #ffb411;
29
+ $scss-var-size-baseline: 4px;
30
+ $scss-var-size-breakpoint-sm: 400px;
31
+ $scss-var-size-breakpoint-md: 600px;
32
+ $scss-var-size-breakpoint-lg: 1008px;
33
+ $scss-var-size-breakpoint-xl: 1280px;
34
+ $scss-var-size-gutter-width: 20px;
35
+
36
+ $tokens: (
37
+ 'color': (
38
+ 'neutral': (
39
+ 'white': $scss-var-color-neutral-white,
40
+ 'black': $scss-var-color-neutral-black,
41
+ 'base': $scss-var-color-neutral-base,
42
+ 'light': $scss-var-color-neutral-light,
43
+ 'lighter': $scss-var-color-neutral-lighter,
44
+ 'lightest': $scss-var-color-neutral-lightest,
45
+ 'darker': $scss-var-color-neutral-darker
46
+ ),
47
+ 'status': (
48
+ 'error': (
49
+ 'light': $scss-var-color-status-error-light,
50
+ 'lightest': $scss-var-color-status-error-lightest,
51
+ 'dark': $scss-var-color-status-error-dark,
52
+ 'darkest': $scss-var-color-status-error-darkest,
53
+ 'base': $scss-var-color-status-error-base
54
+ ),
55
+ 'success': (
56
+ 'light': $scss-var-color-status-success-light,
57
+ 'lightest': $scss-var-color-status-success-lightest,
58
+ 'dark': $scss-var-color-status-success-dark,
59
+ 'darkest': $scss-var-color-status-success-darkest,
60
+ 'base': $scss-var-color-status-success-base
61
+ ),
62
+ 'info': (
63
+ 'light': $scss-var-color-status-info-light,
64
+ 'lightest': $scss-var-color-status-info-lightest,
65
+ 'dark': $scss-var-color-status-info-dark,
66
+ 'darkest': $scss-var-color-status-info-darkest,
67
+ 'base': $scss-var-color-status-info-base
68
+ )
69
+ )
70
+ ),
71
+ 'size': (
72
+ 'baseline': $scss-var-size-baseline,
73
+ 'breakpoint': (
74
+ 'sm': $scss-var-size-breakpoint-sm,
75
+ 'md': $scss-var-size-breakpoint-md,
76
+ 'lg': $scss-var-size-breakpoint-lg,
77
+ 'xl': $scss-var-size-breakpoint-xl
78
+ ),
79
+ 'gutter-width': $scss-var-size-gutter-width
80
+ )
81
+ );
@@ -0,0 +1,4 @@
1
+ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
2
+
3
+ $scss-var-size-half-gutter-width: $scss-var-size-gutter-width * 0.5;
4
+ $scss-var-size-quarter-gutter-width: $scss-var-size-gutter-width * 0.25;
@@ -1,34 +1,34 @@
1
1
  html,
2
2
  body {
3
- background: $mds-color-background-body;
3
+ background: var(--mds-color-background-body);
4
4
  }
5
5
 
6
6
  .mds-site-container {
7
- width: $mds-size-container-width;
8
- max-width: $mds-size-container-max-width;
9
- min-width: $mds-size-container-min-width;
7
+ width: var(--mds-size-container-width);
8
+ max-width: var(--mds-size-container-max-width);
9
+ min-width: var(--mds-size-container-min-width);
10
10
  margin: 0 auto;
11
- background: $mds-color-background-site-container;
12
- box-shadow: $mds-shadow-site-container;
11
+ background: var(--mds-color-background-site-container);
12
+ box-shadow: var(--mds-shadow-site-container);
13
13
  }
14
14
  .mds-main {
15
- background: $mds-color-background-main;
16
- padding: $mds-size-main-padding;
17
- margin: $mds-size-main-margin;
18
- max-width: $mds-size-main-max-width;
19
- border-radius: $mds-size-border-radius-main;
20
- box-shadow: $mds-shadow-main;
15
+ background: var(--mds-color-background-main);
16
+ padding: var(--mds-size-main-padding);
17
+ margin: var(--mds-size-main-margin);
18
+ max-width: var(--mds-size-main-max-width);
19
+ border-radius: var(--mds-size-border-radius-main);
20
+ box-shadow: var(--mds-shadow-main);
21
21
  position: relative;
22
22
  z-index: 1;
23
23
  }
24
24
  .mds-wrapper {
25
- width: calc(#{$mds-size-wrapper-width} - #{$mds-size-gutter-width});
26
- max-width: $mds-size-wrapper-max-width;
25
+ width: calc(var(--mds-size-wrapper-width) - #{$scss-var-size-gutter-width});
26
+ max-width: var(--mds-size-wrapper-max-width);
27
27
  margin: 0 auto;
28
28
  }
29
29
 
30
30
  .mds-surface {
31
- background: $mds-color-background-surface;
31
+ background: var(--mds-color-background-surface);
32
32
  @extend .mds-border;
33
33
  @extend .mds-border-radius;
34
34
  }
@@ -38,8 +38,6 @@ body {
38
38
  * unless it is contained within a grid column less than half the width of its container
39
39
  */
40
40
 
41
- $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
42
-
43
41
  @mixin calcSurfacePadding($bpname: null) {
44
42
  $classWithBp: null;
45
43
  @if ($bpname) {
@@ -49,19 +47,19 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
49
47
  @for $i from 1 through 12 {
50
48
  .mds-grid-col-#{$classWithBp}#{$i} & {
51
49
  @if ($i < 6) {
52
- padding: $mds-size-surface-padding;
50
+ padding: var(--mds-size-surface-padding);
53
51
  } @else {
54
- padding: calc(#{$mds-size-surface-padding} * 2);
52
+ padding: calc(var(--mds-size-surface-padding) * 2);
55
53
  }
56
54
  }
57
55
  }
58
56
  }
59
57
 
60
58
  .mds-surface__inner {
61
- padding: $mds-size-surface-padding;
59
+ padding: var(--mds-size-surface-padding);
62
60
 
63
- @include mq($from: $mds-size-breakpoint-md) {
64
- padding: calc(#{$mds-size-surface-padding} * 2);
61
+ @include mq($from: $scss-var-size-breakpoint-md) {
62
+ padding: calc(var(--mds-size-surface-padding) * 2);
65
63
  @include calcSurfacePadding();
66
64
  }
67
65
 
@@ -76,7 +74,7 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
76
74
 
77
75
  .mds-fixed-container {
78
76
  width: 100%;
79
- background: $mds-color-neutral-lightest;
77
+ background: $scss-var-color-neutral-lightest;
80
78
  position: fixed;
81
79
  left: 0;
82
80
  bottom: 0;
@@ -88,21 +86,20 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
88
86
  }
89
87
  }
90
88
 
91
- $mds-half-gutter-width: $mds-size-gutter-width * 0.5;
92
- // Calculate space left between the wrapper and the edge of the screen on each side
93
- // so we can stretch the sticky container to make it appear full screen
94
- // I added 0.01 to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
95
- $space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0.01;
96
-
97
89
  .mds-fixed-container--sticky {
90
+ // Calculate space left between the wrapper and the edge of the screen on each side
91
+ // so we can stretch the sticky container to make it appear full screen
92
+ // I added 0.01% to stretch the container slightly more to avoid a tiny gap between the edge of the screen and the container
93
+ --space-between-wrapper-and-edge: (((100% - var(--mds-size-wrapper-width)) / 2) + 0.01%);
94
+
98
95
  position: sticky;
99
96
 
100
97
  .mds-wrapper & {
101
- width: calc(100% + #{$space-between-wrapper-and-edge * 2} + #{$mds-size-gutter-width});
102
- margin-left: calc((#{$space-between-wrapper-and-edge} + #{$mds-half-gutter-width}) * -1);
103
- margin-right: calc((#{$space-between-wrapper-and-edge} + #{$mds-half-gutter-width}) * -1);
98
+ width: calc(100% + (var(--space-between-wrapper-and-edge) * 2) + #{$scss-var-size-gutter-width});
99
+ margin-left: calc((var(--space-between-wrapper-and-edge) + #{$scss-var-size-half-gutter-width}) * -1);
100
+ margin-right: calc((var(--space-between-wrapper-and-edge) + #{$scss-var-size-half-gutter-width}) * -1);
104
101
 
105
- @include mq($from: $mds-size-breakpoint-md) {
102
+ @include mq($from: $scss-var-size-breakpoint-md) {
106
103
  width: 100%;
107
104
  margin-left: auto;
108
105
  margin-right: auto;
@@ -127,15 +124,15 @@ $space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0
127
124
  }
128
125
 
129
126
  &--1 {
130
- background: $mds-color-branded-container-1-background;
131
- color: $mds-color-branded-container-1-text;
127
+ background: var(--mds-color-branded-container-1-background);
128
+ color: var(--mds-color-branded-container-1-text);
132
129
  }
133
130
  }
134
131
 
135
132
  .mds-ad-container {
136
133
  &.mds-ad-container--leaderboard {
137
- background: $mds-color-ad-container-leaderboard-background;
138
- min-height: $mds-size-height-ad-container-leaderboard-min;
134
+ background: var(--mds-color-ad-container-leaderboard-background);
135
+ min-height: var(--mds-size-height-ad-container-leaderboard-min);
139
136
  }
140
137
  & > * {
141
138
  margin: 0 auto;
@@ -147,5 +144,5 @@ $space-between-wrapper-and-edge: math.div(100% - $mds-size-wrapper-width, 2) + 0
147
144
 
148
145
  .mds-highlighted-container {
149
146
  @extend .mds-border-radius;
150
- background: $mds-color-neutral-lightest;
147
+ background: $scss-var-color-neutral-lightest;
151
148
  }
@@ -1,5 +1,5 @@
1
1
  h1 {
2
- margin-bottom: $mds-size-baseline * 6;
2
+ margin-bottom: $scss-var-size-baseline * 6;
3
3
  }
4
4
 
5
5
  h2,
@@ -13,22 +13,28 @@ ol,
13
13
  dl,
14
14
  blockquote,
15
15
  pre {
16
- margin-bottom: $mds-size-baseline * 3;
16
+ margin-bottom: $scss-var-size-baseline * 3;
17
17
  }
18
18
 
19
19
  a {
20
- color: $mds-color-link-base;
21
- font-weight: $mds-font-weight-link-base;
22
- text-decoration: none;
20
+ --link-color: var(--mds-color-link-base);
21
+ --link-font-weight: var(--mds-font-weight-link-base);
22
+ --link-text-decoration: none;
23
+
24
+ color: var(--link-color);
25
+ font-weight: var(--link-font-weight);
26
+ text-decoration: var(--link-text-decoration);
23
27
 
24
28
  &:hover,
25
29
  &:focus {
26
- color: $mds-color-link-hover;
27
- text-decoration: underline;
30
+ --link-color: var(--mds-color-link-hover);
31
+ --link-text-decoration: underline;
28
32
  }
29
33
  }
30
34
 
31
- h1, h2, h3 {
35
+ h1,
36
+ h2,
37
+ h3 {
32
38
  a {
33
39
  font-weight: inherit;
34
40
  }
@@ -1,21 +1,18 @@
1
1
  /* Source: https://github.com/kristoferjoseph/flexboxgrid */
2
2
 
3
- $mds-half-gutter-width: $mds-size-gutter-width * 0.5;
4
- $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
5
-
6
3
  .mds-grid-row {
7
4
  box-sizing: border-box;
8
5
  display: flex;
9
6
  flex: 0 1 auto;
10
7
  flex-direction: row;
11
8
  flex-wrap: wrap;
12
- margin-right: $mds-half-gutter-width * -1;
13
- margin-left: $mds-half-gutter-width * -1;
9
+ margin-right: $scss-var-size-half-gutter-width * -1;
10
+ margin-left: $scss-var-size-half-gutter-width * -1;
14
11
  }
15
12
 
16
13
  .mds-grid-row.mds-grid-small {
17
- margin-right: $mds-quarter-gutter-width * -1;
18
- margin-left: $mds-quarter-gutter-width * -1;
14
+ margin-right: $scss-var-size-quarter-gutter-width * -1;
15
+ margin-left: $scss-var-size-quarter-gutter-width * -1;
19
16
  }
20
17
 
21
18
  .mds-grid-row.mds-grid-reverse {
@@ -54,12 +51,12 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
54
51
  .mds-grid-col-offset-12 {
55
52
  box-sizing: border-box;
56
53
  flex: 0 0 auto;
57
- padding-right: $mds-half-gutter-width;
58
- padding-left: $mds-half-gutter-width;
54
+ padding-right: $scss-var-size-half-gutter-width;
55
+ padding-left: $scss-var-size-half-gutter-width;
59
56
 
60
57
  .mds-grid-small & {
61
- padding-right: $mds-quarter-gutter-width;
62
- padding-left: $mds-quarter-gutter-width;
58
+ padding-right: $scss-var-size-quarter-gutter-width;
59
+ padding-left: $scss-var-size-quarter-gutter-width;
63
60
  }
64
61
  }
65
62
 
@@ -225,7 +222,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
225
222
  flex-basis: auto;
226
223
  }
227
224
 
228
- @media only screen and (min-width: $mds-size-breakpoint-sm) {
225
+ @media only screen and (min-width: $scss-var-size-breakpoint-sm) {
229
226
  .mds-grid-col-sm,
230
227
  .mds-grid-col-sm-1,
231
228
  .mds-grid-col-sm-2,
@@ -254,8 +251,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
254
251
  .mds-grid-col-sm-offset-12 {
255
252
  box-sizing: border-box;
256
253
  flex: 0 0 auto;
257
- padding-right: $mds-half-gutter-width;
258
- padding-left: $mds-half-gutter-width;
254
+ padding-right: $scss-var-size-half-gutter-width;
255
+ padding-left: $scss-var-size-half-gutter-width;
259
256
  }
260
257
 
261
258
  .mds-grid-col-sm {
@@ -420,7 +417,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
420
417
  }
421
418
  }
422
419
 
423
- @media only screen and (min-width: $mds-size-breakpoint-md) {
420
+ @media only screen and (min-width: $scss-var-size-breakpoint-md) {
424
421
  .mds-grid-col-md,
425
422
  .mds-grid-col-md-1,
426
423
  .mds-grid-col-md-2,
@@ -449,8 +446,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
449
446
  .mds-grid-col-md-offset-12 {
450
447
  box-sizing: border-box;
451
448
  flex: 0 0 auto;
452
- padding-right: $mds-half-gutter-width;
453
- padding-left: $mds-half-gutter-width;
449
+ padding-right: $scss-var-size-half-gutter-width;
450
+ padding-left: $scss-var-size-half-gutter-width;
454
451
  }
455
452
 
456
453
  .mds-grid-col-md {
@@ -616,7 +613,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
616
613
  }
617
614
  }
618
615
 
619
- @media only screen and (min-width: $mds-size-breakpoint-lg) {
616
+ @media only screen and (min-width: $scss-var-size-breakpoint-lg) {
620
617
  .mds-grid-col-lg,
621
618
  .mds-grid-col-lg-1,
622
619
  .mds-grid-col-lg-2,
@@ -645,8 +642,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
645
642
  .mds-grid-col-lg-offset-12 {
646
643
  box-sizing: border-box;
647
644
  flex: 0 0 auto;
648
- padding-right: $mds-half-gutter-width;
649
- padding-left: $mds-half-gutter-width;
645
+ padding-right: $scss-var-size-half-gutter-width;
646
+ padding-left: $scss-var-size-half-gutter-width;
650
647
  }
651
648
 
652
649
  .mds-grid-col-lg {
@@ -812,7 +809,7 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
812
809
  }
813
810
  }
814
811
 
815
- @media only screen and (min-width: $mds-size-breakpoint-xl) {
812
+ @media only screen and (min-width: $scss-var-size-breakpoint-xl) {
816
813
  .mds-grid-col-xl,
817
814
  .mds-grid-col-xl-1,
818
815
  .mds-grid-col-xl-2,
@@ -841,8 +838,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
841
838
  .mds-grid-col-xl-offset-12 {
842
839
  box-sizing: border-box;
843
840
  flex: 0 0 auto;
844
- padding-right: $mds-half-gutter-width;
845
- padding-left: $mds-half-gutter-width;
841
+ padding-right: $scss-var-size-half-gutter-width;
842
+ padding-left: $scss-var-size-half-gutter-width;
846
843
  }
847
844
 
848
845
  .mds-grid-col-xl {
@@ -1,12 +1,12 @@
1
1
  .mds-list {
2
- margin: 0 0 ($mds-size-baseline * 5) 0;
2
+ margin: 0 0 ($scss-var-size-baseline * 5) 0;
3
3
  padding: 0;
4
4
  list-style-type: none;
5
5
  list-style-position: inside;
6
6
  }
7
7
  .mds-list__item {
8
- margin-bottom: $mds-size-baseline;
9
- margin-left: $mds-size-baseline * 4;
8
+ margin-bottom: $scss-var-size-baseline;
9
+ margin-left: $scss-var-size-baseline * 4;
10
10
 
11
11
  &:last-child {
12
12
  margin-bottom: 0;
@@ -14,7 +14,7 @@
14
14
  }
15
15
  .mds-list--bullet,
16
16
  .mds-list--number {
17
- margin-left: ($mds-size-baseline * 3);
17
+ margin-left: ($scss-var-size-baseline * 3);
18
18
  }
19
19
 
20
20
  .mds-list--bullet {
@@ -26,8 +26,8 @@
26
26
  }
27
27
 
28
28
  .mds-list--border {
29
- border-left: 5px solid $mds-color-neutral-lightest;
30
- padding-left: $mds-size-baseline * 5;
29
+ border-left: 5px solid $scss-var-color-neutral-lightest;
30
+ padding-left: $scss-var-size-baseline * 5;
31
31
  margin-left: 0;
32
32
  }
33
33
 
@@ -38,10 +38,10 @@
38
38
  .mds-list__key {
39
39
  @extend .mds-font-brevier;
40
40
  font-weight: bold;
41
- margin-bottom: $mds-size-baseline;
41
+ margin-bottom: $scss-var-size-baseline;
42
42
  }
43
43
  .mds-list__value {
44
- margin-bottom: $mds-size-baseline * 3;
44
+ margin-bottom: $scss-var-size-baseline * 3;
45
45
 
46
46
  &:last-child {
47
47
  margin-bottom: 0;
@@ -54,15 +54,15 @@
54
54
  display: inline-block;
55
55
  margin-bottom: 0;
56
56
  margin-left: 0;
57
- margin-right: $mds-size-baseline * 2;
57
+ margin-right: $scss-var-size-baseline * 2;
58
58
  }
59
- .mds-list--pipe .mds-list__item:not(:last-child){
60
- border-right: 1px solid $mds-color-neutral-light;
61
- padding-right: $mds-size-baseline * 3;
59
+ .mds-list--pipe .mds-list__item:not(:last-child) {
60
+ border-right: 1px solid $scss-var-color-neutral-light;
61
+ padding-right: $scss-var-size-baseline * 3;
62
62
  }
63
63
 
64
64
  .mds-list--multilevel .mds-list {
65
- margin: ($mds-size-baseline * 2) 0 0 0;
65
+ margin: ($scss-var-size-baseline * 2) 0 0 0;
66
66
  }
67
67
 
68
68
  .mds-list--noindent {
@@ -1,38 +1,38 @@
1
- .mds-message{
2
- @extend .mds-padding-b3;
3
- @extend .mds-border-radius;
4
- @extend .mds-border;
1
+ .mds-message {
2
+ @extend .mds-padding-b3;
3
+ @extend .mds-border-radius;
4
+ @extend .mds-border;
5
5
 
6
- &.mds-message--error {
7
- color: $mds-color-status-error-darkest;
8
- background-color: $mds-color-status-error-lightest;
9
- border-color: $mds-color-status-error-base;
10
- }
6
+ &.mds-message--error {
7
+ color: $scss-var-color-status-error-darkest;
8
+ background-color: $scss-var-color-status-error-lightest;
9
+ border-color: $scss-var-color-status-error-base;
10
+ }
11
11
 
12
- &.mds-message--success {
13
- color: $mds-color-status-success-darkest;
14
- background-color: $mds-color-status-success-lightest;
15
- border-color: $mds-color-status-success-base;
16
- }
12
+ &.mds-message--success {
13
+ color: $scss-var-color-status-success-darkest;
14
+ background-color: $scss-var-color-status-success-lightest;
15
+ border-color: $scss-var-color-status-success-base;
16
+ }
17
17
 
18
- &.mds-message--info {
19
- color: $mds-color-status-info-darkest;
20
- background-color: $mds-color-status-info-lightest;
21
- border-color: $mds-color-status-info-base;
22
- }
18
+ &.mds-message--info {
19
+ color: $scss-var-color-status-info-darkest;
20
+ background-color: $scss-var-color-status-info-lightest;
21
+ border-color: $scss-var-color-status-info-base;
22
+ }
23
23
 
24
- & * {
25
- color: inherit;
26
- }
24
+ & * {
25
+ color: inherit;
26
+ }
27
27
 
28
- & .mds-message__summary {
29
- margin-bottom: 0;
30
- & li:not(:last-child) {
31
- @extend .mds-margin-bottom-b3;
32
- }
33
- & a {
34
- color: inherit;
35
- text-decoration: underline;
36
- }
28
+ & .mds-message__summary {
29
+ margin-bottom: 0;
30
+ & li:not(:last-child) {
31
+ @extend .mds-margin-bottom-b3;
32
+ }
33
+ & a {
34
+ color: inherit;
35
+ text-decoration: underline;
37
36
  }
38
- }
37
+ }
38
+ }
@@ -1,8 +1,8 @@
1
1
  body {
2
2
  @extend .mds-font-body-copy;
3
- font-family: $mds-font-family-base;
4
- font-weight: $mds-font-weight-base;
5
- color: $mds-color-text-base;
3
+ font-family: var(--mds-font-family-base);
4
+ font-weight: var(--mds-font-weight-base);
5
+ color: var(--mds-color-text-base);
6
6
  }
7
7
 
8
8
  h1,
@@ -12,28 +12,28 @@ h4,
12
12
  h5,
13
13
  h6,
14
14
  dl dt {
15
- color: $mds-color-text-headers-base;
15
+ color: var(--mds-color-text-headers-base);
16
16
  }
17
17
 
18
18
  h1 {
19
19
  @extend .mds-font-trafalgar;
20
- font-family: $mds-font-family-heading-1;
21
- font-weight: $mds-font-weight-heading-1;
22
- color: $mds-color-text-headers-1;
20
+ font-family: var(--mds-font-family-heading-1);
21
+ font-weight: var(--mds-font-weight-heading-1);
22
+ color: var(--mds-color-text-headers-1);
23
23
  }
24
24
 
25
25
  h2 {
26
26
  @extend .mds-font-double-pica;
27
- font-family: $mds-font-family-heading-2;
28
- font-weight: $mds-font-weight-heading-2;
29
- color: $mds-color-text-headers-2;
27
+ font-family: var(--mds-font-family-heading-2);
28
+ font-weight: var(--mds-font-weight-heading-2);
29
+ color: var(--mds-color-text-headers-2);
30
30
  }
31
31
 
32
32
  h3 {
33
33
  @extend .mds-font-great-primer;
34
- font-family: $mds-font-family-heading-3;
35
- font-weight: $mds-font-weight-heading-3;
36
- color: $mds-color-text-headers-3;
34
+ font-family: var(--mds-font-family-heading-3);
35
+ font-weight: var(--mds-font-weight-heading-3);
36
+ color: var(--mds-color-text-headers-3);
37
37
  }
38
38
 
39
39
  h4 {
@@ -1,4 +1,2 @@
1
1
  @import 'media-queries';
2
- @import 'color';
3
- @import 'px2rem';
4
2
  @import 'text-contrast';
@@ -1,9 +1,9 @@
1
1
  // Pass our breakpoints and static breakpoint definitions through to sass-mq.
2
2
  $mq-breakpoints: (
3
- sm: $mds-size-breakpoint-sm,
4
- md: $mds-size-breakpoint-md,
5
- lg: $mds-size-breakpoint-lg,
6
- xl: $mds-size-breakpoint-xl
3
+ sm: $scss-var-size-breakpoint-sm,
4
+ md: $scss-var-size-breakpoint-md,
5
+ lg: $scss-var-size-breakpoint-lg,
6
+ xl: $scss-var-size-breakpoint-xl,
7
7
  ) !default;
8
8
 
9
9
  // This is a horrible, horrible hack to prevent the 'dev mode' CSS to display