@madgex/design-system 5.11.2 → 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.
- package/README.md +4 -10
- package/dist/_tokens/css/_tokens.css +62 -96
- package/dist/_tokens/js/_tokens-module.js +1342 -1406
- package/dist/_tokens/sketch/_tokens.sketchpalette +1 -1
- package/dist/assets/icons.json +1 -1
- package/dist/css/index.css +1 -1
- package/dist/js/index-fractal.js +1 -1
- package/dist/js/index.js +1 -1
- package/package.json +5 -5
- package/src/components/_preview.njk +1 -0
- package/src/components/button/button.scss +50 -37
- package/src/components/card/README.md +1 -1
- package/src/components/card/_template.njk +1 -1
- package/src/components/card/card.config.js +1 -2
- package/src/components/card/card.scss +29 -39
- package/src/components/icons/README.md +3 -3
- package/src/components/icons/icons.scss +26 -19
- package/src/components/inputs/_form-elements.scss +44 -44
- package/src/components/inputs/checkbox-pill/checkbox-pill.scss +14 -14
- package/src/components/inputs/combobox/combobox.scss +13 -13
- package/src/components/inputs/file-upload/file-upload.scss +14 -14
- package/src/components/inputs/input-number/input-number.scss +10 -10
- package/src/components/inputs/text-editor/text-editor.scss +16 -16
- package/src/components/modal/modal.js +1 -1
- package/src/components/modal/modal.scss +4 -4
- package/src/components/notification/notification.scss +1 -1
- package/src/components/pagination/pagination.scss +8 -8
- package/src/components/popover/popover.js +1 -1
- package/src/components/popover/popover.scss +13 -13
- package/src/components/section-title/section-title.scss +1 -1
- package/src/components/skip-link/skip-link.scss +4 -4
- package/src/components/tabs/tabs.js +1 -1
- package/src/components/tabs/tabs.scss +16 -16
- package/src/components/toggle-button-links/toggle-button-links.scss +20 -20
- package/src/helpers/spacing/README.md +2 -2
- package/src/layout/grid/README.md +5 -5
- package/src/layout/grid/grid.njk +7 -0
- package/src/scss/constants/__index.scss +2 -0
- package/src/scss/constants/_sd-tokens.scss +81 -0
- package/src/scss/constants/_vars.scss +4 -0
- package/src/scss/core/_containers.scss +35 -38
- package/src/scss/core/_defaults.scss +14 -8
- package/src/scss/core/_grid.scss +39 -24
- package/src/scss/core/_lists.scss +13 -13
- package/src/scss/core/_message.scss +32 -32
- package/src/scss/core/_typography.scss +13 -13
- package/src/scss/functions/__index.scss +0 -2
- package/src/scss/functions/_media-queries.scss +4 -4
- package/src/scss/functions/_text-contrast.scss +6 -7
- package/src/scss/helpers/_borders.scss +5 -38
- package/src/scss/helpers/_display.scss +0 -1
- package/src/scss/helpers/_edited-text.scss +5 -5
- package/src/scss/helpers/_floats.scss +0 -1
- package/src/scss/helpers/_font-types.scss +15 -15
- package/src/scss/helpers/_spacing.scss +33 -36
- package/src/scss/helpers/_text-align.scss +0 -1
- package/src/scss/helpers/_vertical-align.scss +0 -2
- package/src/scss/helpers/_width-height.scss +4 -6
- package/src/scss/import.scss +1 -0
- package/src/scss/index.scss +0 -2
- package/src/tokens/_config.js +22 -9
- package/src/tokens/_constants.json +130 -0
- package/src/tokens/color.json +8 -76
- package/src/tokens/custom.json +0 -8
- package/src/tokens/size.json +0 -16
- package/src/tokens/typography.json +3 -1
- package/tasks/registerTransforms.js +28 -1
- package/tasks/svgsprite.js +5 -2
- package/dist/_tokens/scss/_tokens.scss +0 -741
- package/src/scss/functions/_color.scss +0 -0
- package/src/scss/functions/_px2rem.scss +0 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Pass our breakpoints and static breakpoint definitions through to sass-mq.
|
|
2
2
|
$mq-breakpoints: (
|
|
3
|
-
sm: $
|
|
4
|
-
md: $
|
|
5
|
-
lg: $
|
|
6
|
-
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
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
1
|
@function text-contrast($bg-color) {
|
|
3
2
|
$color-text-base-brightness: round(
|
|
4
|
-
(red(
|
|
3
|
+
(red(var(--mds-color-text-base)) * 299) + (green(var(--mds-color-text-base)) * 587) +
|
|
4
|
+
(blue(var(--mds-color-text-base)) * 114) / 1000
|
|
5
5
|
);
|
|
6
6
|
$color-brightness: round((red($bg-color) * 299) + (green($bg-color) * 587) + (blue($bg-color) * 114) / 1000);
|
|
7
7
|
$light-color: round((red(#ffffff) * 299) + (green(#ffffff) * 587) + (blue(#ffffff) * 114) / 1000);
|
|
8
8
|
|
|
9
|
-
$text-color-dark:
|
|
10
|
-
$text-color-light:
|
|
9
|
+
$text-color-dark: var(--mds-color-text-base) !default;
|
|
10
|
+
$text-color-light: var(--mds-color-text-invert) !default;
|
|
11
11
|
|
|
12
12
|
@if abs($color-text-base-brightness) >= ($light-color/2) {
|
|
13
|
-
$text-color-dark:
|
|
14
|
-
$text-color-light:
|
|
13
|
+
$text-color-dark: var(--mds-color-text-invert);
|
|
14
|
+
$text-color-light: var(--mds-color-text-base);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@if abs($color-brightness) < ($light-color/2) {
|
|
@@ -20,4 +20,3 @@
|
|
|
20
20
|
@return $text-color-dark;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
$breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
2
1
|
$positions: top, right, bottom, left;
|
|
3
2
|
$corners: top-left, top-right, bottom-right, bottom-left;
|
|
4
3
|
|
|
5
4
|
.mds-border {
|
|
6
|
-
border:
|
|
5
|
+
border: var(--mds-size-border-width-base) solid var(--mds-color-border);
|
|
7
6
|
}
|
|
8
7
|
|
|
9
8
|
.mds-border-none {
|
|
@@ -13,7 +12,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
|
|
|
13
12
|
@each $bpname, $value in $breakpoints {
|
|
14
13
|
@include mq($from: $bpname) {
|
|
15
14
|
.mds-border-#{$bpname} {
|
|
16
|
-
border:
|
|
15
|
+
border: var(--mds-size-border-width-base) solid var(--mds-color-border);
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
}
|
|
@@ -28,7 +27,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
|
|
|
28
27
|
|
|
29
28
|
@each $position in $positions {
|
|
30
29
|
.mds-border-#{$position} {
|
|
31
|
-
border-#{$position}:
|
|
30
|
+
border-#{$position}: var(--mds-size-border-width-base) solid var(--mds-color-border);
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -42,7 +41,7 @@ $corners: top-left, top-right, bottom-right, bottom-left;
|
|
|
42
41
|
@include mq($from: $bpname) {
|
|
43
42
|
@each $position in $positions {
|
|
44
43
|
.mds-border-#{$bpname}-#{$position} {
|
|
45
|
-
border-#{$position}:
|
|
44
|
+
border-#{$position}: var(--mds-size-border-width-base) solid var(--mds-color-border);
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
}
|
|
@@ -60,41 +59,9 @@ $corners: top-left, top-right, bottom-right, bottom-left;
|
|
|
60
59
|
|
|
61
60
|
// border radius
|
|
62
61
|
.mds-border-radius {
|
|
63
|
-
border-radius:
|
|
62
|
+
border-radius: var(--mds-size-border-radius-base);
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
.mds-border-radius-none {
|
|
67
66
|
border-radius: 0;
|
|
68
67
|
}
|
|
69
|
-
|
|
70
|
-
// 0/4 corners
|
|
71
|
-
// @each $bpname, $value in $breakpoints {
|
|
72
|
-
// @include mq($from: $bpname) {
|
|
73
|
-
// .mds-border-radius-#{$bpname} {
|
|
74
|
-
// border-radius: $mds-size-border-radius-base ;
|
|
75
|
-
// }
|
|
76
|
-
// .mds-border-radius-#{$bpname}-none {
|
|
77
|
-
// border-radius: 0;
|
|
78
|
-
// }
|
|
79
|
-
// }
|
|
80
|
-
// }
|
|
81
|
-
|
|
82
|
-
// 1 corner
|
|
83
|
-
// @each $corner in $corners {
|
|
84
|
-
// .mds-border-radius-#{$corner} {
|
|
85
|
-
// border-#{$corner}-radius: $mds-size-border-radius-base ;
|
|
86
|
-
// }
|
|
87
|
-
// }
|
|
88
|
-
|
|
89
|
-
// @each $bpname, $value in $breakpoints {
|
|
90
|
-
// @include mq($from: $bpname) {
|
|
91
|
-
// @each $corner in $corners {
|
|
92
|
-
// .mds-border-radius-#{$bpname}-#{$corner} {
|
|
93
|
-
// border-#{$corner}-radius: $mds-size-border-radius-base ;
|
|
94
|
-
// }
|
|
95
|
-
// .mds-border-radius-#{$bpname}-#{$corner}-none {
|
|
96
|
-
// border-#{$corner}-radius: 0;
|
|
97
|
-
// }
|
|
98
|
-
// }
|
|
99
|
-
// }
|
|
100
|
-
// }
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.mds-edited-text {
|
|
2
2
|
& ul,
|
|
3
3
|
& ol {
|
|
4
|
-
margin: 0 0 ($
|
|
4
|
+
margin: 0 0 ($scss-var-size-baseline * 5) ($scss-var-size-baseline * 3);
|
|
5
5
|
padding: 0;
|
|
6
6
|
list-style-position: outside;
|
|
7
7
|
& ul,
|
|
8
8
|
& ol {
|
|
9
|
-
margin: ($
|
|
9
|
+
margin: ($scss-var-size-baseline * 2) 0 0 0;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
& ul {
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
list-style-type: decimal;
|
|
17
17
|
}
|
|
18
18
|
& li {
|
|
19
|
-
margin-bottom: $
|
|
20
|
-
margin-left: $
|
|
19
|
+
margin-bottom: $scss-var-size-baseline;
|
|
20
|
+
margin-left: $scss-var-size-baseline * 4;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
.mds-edited-text.mds-font-body-copy-bulk,
|
|
24
24
|
.mds-font-body-copy-bulk .mds-edited-text,
|
|
25
25
|
.mds-edited-text .mds-font-body-copy-bulk {
|
|
26
26
|
& p {
|
|
27
|
-
margin-bottom: $
|
|
27
|
+
margin-bottom: $scss-var-size-baseline * 4;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
$font-types: 'canon', 'trafalgar', 'paragon', 'double-pica', 'great-primer', 'body-copy', 'body-copy-bulk', 'pica',
|
|
2
|
+
'long-primer', 'brevier', 'minion';
|
|
3
|
+
|
|
4
|
+
$breakpoint-names: map-keys(map-remove($breakpoints, 'xl'));
|
|
3
5
|
|
|
4
6
|
// loop will create all the classes for the font types in the tokens array
|
|
5
7
|
// it will also generate the media queries related to each font type, using the mq helper
|
|
@@ -7,30 +9,28 @@ $font-types: map-get(map-get($tokens, 'font'), 'type');
|
|
|
7
9
|
// .mds-font-canon{
|
|
8
10
|
// font-size: 28px;
|
|
9
11
|
// line-height: 1.15;
|
|
10
|
-
// @media (min-width: $
|
|
12
|
+
// @media (min-width: $scss-var-size-breakpoint-sm){
|
|
11
13
|
// font-size: 32px;
|
|
12
14
|
// line-height: 1.13;
|
|
13
15
|
// }
|
|
14
|
-
// @media (min-width: $
|
|
16
|
+
// @media (min-width: $scss-var-size-breakpoint-md){
|
|
15
17
|
// font-size: 52px;
|
|
16
18
|
// line-height: 1.08;
|
|
17
19
|
// }
|
|
18
|
-
// @media (min-width: $
|
|
20
|
+
// @media (min-width: $scss-var-size-breakpoint-lg){
|
|
19
21
|
// font-size: 44px;
|
|
20
22
|
// line-height: 1.1;
|
|
21
23
|
// }
|
|
22
24
|
// }
|
|
23
|
-
@each $typename
|
|
25
|
+
@each $typename in $font-types {
|
|
24
26
|
.mds-font-#{$typename} {
|
|
25
|
-
@each $bpname
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
line-height: map-get($props, 'line-height');
|
|
33
|
-
}
|
|
27
|
+
@each $bpname in $breakpoint-names {
|
|
28
|
+
font-size: var(--mds-font-type-#{$typename}-default-size);
|
|
29
|
+
line-height: var(--mds-font-type-#{$typename}-default-line-height);
|
|
30
|
+
|
|
31
|
+
@include mq($from: $bpname) {
|
|
32
|
+
font-size: var(--mds-font-type-#{$typename}-#{$bpname}-size);
|
|
33
|
+
line-height: var(--mds-font-type-#{$typename}-#{$bpname}-line-height);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
$breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
2
1
|
$positions: top, right, bottom, left;
|
|
3
2
|
|
|
4
3
|
// There are 2 loops as the more specific classes with positions have to be declared before the shorthand ones
|
|
@@ -6,10 +5,10 @@ $positions: top, right, bottom, left;
|
|
|
6
5
|
|
|
7
6
|
@for $i from 0 through 10 {
|
|
8
7
|
.mds-padding-b#{$i} {
|
|
9
|
-
padding: $
|
|
8
|
+
padding: $scss-var-size-baseline * $i;
|
|
10
9
|
}
|
|
11
10
|
.mds-margin-b#{$i} {
|
|
12
|
-
margin: $
|
|
11
|
+
margin: $scss-var-size-baseline * $i;
|
|
13
12
|
}
|
|
14
13
|
}
|
|
15
14
|
|
|
@@ -17,10 +16,10 @@ $positions: top, right, bottom, left;
|
|
|
17
16
|
@each $bpname, $value in $breakpoints {
|
|
18
17
|
@include mq($from: $bpname) {
|
|
19
18
|
.mds-padding-#{$bpname}-b#{$i} {
|
|
20
|
-
padding: $
|
|
19
|
+
padding: $scss-var-size-baseline * $i;
|
|
21
20
|
}
|
|
22
21
|
.mds-margin-#{$bpname}-b#{$i} {
|
|
23
|
-
margin: $
|
|
22
|
+
margin: $scss-var-size-baseline * $i;
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -29,28 +28,28 @@ $positions: top, right, bottom, left;
|
|
|
29
28
|
@for $i from 0 through 10 {
|
|
30
29
|
@each $position in $positions {
|
|
31
30
|
.mds-padding-#{$position}-b#{$i} {
|
|
32
|
-
padding-#{$position}: $
|
|
31
|
+
padding-#{$position}: $scss-var-size-baseline * $i;
|
|
33
32
|
}
|
|
34
33
|
.mds-margin-#{$position}-b#{$i} {
|
|
35
|
-
margin-#{$position}: $
|
|
34
|
+
margin-#{$position}: $scss-var-size-baseline * $i;
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
.mds-padding-x-b#{$i} {
|
|
39
|
-
padding-left: $
|
|
40
|
-
padding-right: $
|
|
38
|
+
padding-left: $scss-var-size-baseline * $i;
|
|
39
|
+
padding-right: $scss-var-size-baseline * $i;
|
|
41
40
|
}
|
|
42
41
|
.mds-padding-y-b#{$i} {
|
|
43
|
-
padding-top: $
|
|
44
|
-
padding-bottom: $
|
|
42
|
+
padding-top: $scss-var-size-baseline * $i;
|
|
43
|
+
padding-bottom: $scss-var-size-baseline * $i;
|
|
45
44
|
}
|
|
46
45
|
|
|
47
46
|
.mds-margin-x-b#{$i} {
|
|
48
|
-
margin-left: $
|
|
49
|
-
margin-right: $
|
|
47
|
+
margin-left: $scss-var-size-baseline * $i;
|
|
48
|
+
margin-right: $scss-var-size-baseline * $i;
|
|
50
49
|
}
|
|
51
50
|
.mds-margin-y-b#{$i} {
|
|
52
|
-
margin-top: $
|
|
53
|
-
margin-bottom: $
|
|
51
|
+
margin-top: $scss-var-size-baseline * $i;
|
|
52
|
+
margin-bottom: $scss-var-size-baseline * $i;
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -59,35 +58,33 @@ $positions: top, right, bottom, left;
|
|
|
59
58
|
@each $bpname, $value in $breakpoints {
|
|
60
59
|
@include mq($from: $bpname) {
|
|
61
60
|
.mds-padding-#{$position}-#{$bpname}-b#{$i} {
|
|
62
|
-
padding-#{$position}: $
|
|
61
|
+
padding-#{$position}: $scss-var-size-baseline * $i;
|
|
63
62
|
}
|
|
64
63
|
.mds-margin-#{$position}-#{$bpname}-b#{$i} {
|
|
65
|
-
margin-#{$position}: $
|
|
64
|
+
margin-#{$position}: $scss-var-size-baseline * $i;
|
|
66
65
|
}
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
@each $bpname, $value in $breakpoints {
|
|
71
70
|
@include mq($from: $bpname) {
|
|
71
|
+
.mds-padding-x-#{$bpname}-b#{$i} {
|
|
72
|
+
padding-left: $scss-var-size-baseline * $i;
|
|
73
|
+
padding-right: $scss-var-size-baseline * $i;
|
|
74
|
+
}
|
|
75
|
+
.mds-padding-y-#{$bpname}-b#{$i} {
|
|
76
|
+
padding-top: $scss-var-size-baseline * $i;
|
|
77
|
+
padding-bottom: $scss-var-size-baseline * $i;
|
|
78
|
+
}
|
|
72
79
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.mds-margin-x-#{$bpname}-b#{$i} {
|
|
83
|
-
margin-left: $mds-size-baseline * $i;
|
|
84
|
-
margin-right: $mds-size-baseline * $i;
|
|
85
|
-
}
|
|
86
|
-
.mds-margin-y-#{$bpname}-b#{$i} {
|
|
87
|
-
margin-top: $mds-size-baseline * $i;
|
|
88
|
-
margin-bottom: $mds-size-baseline * $i;
|
|
80
|
+
.mds-margin-x-#{$bpname}-b#{$i} {
|
|
81
|
+
margin-left: $scss-var-size-baseline * $i;
|
|
82
|
+
margin-right: $scss-var-size-baseline * $i;
|
|
83
|
+
}
|
|
84
|
+
.mds-margin-y-#{$bpname}-b#{$i} {
|
|
85
|
+
margin-top: $scss-var-size-baseline * $i;
|
|
86
|
+
margin-bottom: $scss-var-size-baseline * $i;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
$breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
2
|
-
|
|
3
1
|
.mds-width-full {
|
|
4
|
-
|
|
2
|
+
width: 100%;
|
|
5
3
|
}
|
|
6
4
|
.mds-width-auto {
|
|
7
|
-
|
|
5
|
+
width: auto;
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
@each $bpname, $value in $breakpoints {
|
|
@@ -13,11 +11,11 @@ $breakpoints: map-get(map-get($tokens, 'size'), 'breakpoint');
|
|
|
13
11
|
width: 100%;
|
|
14
12
|
}
|
|
15
13
|
.mds-width-#{$bpname}-auto {
|
|
16
|
-
|
|
14
|
+
width: auto;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
19
|
.mds-height-full {
|
|
22
20
|
height: 100%;
|
|
23
|
-
}
|
|
21
|
+
}
|
package/src/scss/import.scss
CHANGED
package/src/scss/index.scss
CHANGED
package/src/tokens/_config.js
CHANGED
|
@@ -5,27 +5,40 @@ const config = {
|
|
|
5
5
|
platforms: {
|
|
6
6
|
'css-variables': {
|
|
7
7
|
// transformGroup: 'css',
|
|
8
|
-
transforms: [
|
|
8
|
+
transforms: [
|
|
9
|
+
'attribute/cti',
|
|
10
|
+
'name/cti/kebab',
|
|
11
|
+
'time/seconds',
|
|
12
|
+
'content/icon',
|
|
13
|
+
'color/css',
|
|
14
|
+
'css/rawData',
|
|
15
|
+
'custom/pxToRem',
|
|
16
|
+
],
|
|
9
17
|
buildPath: `${path.resolve(__dirname, '../../dist/_tokens/css/')}/`,
|
|
10
18
|
prefix: 'mds',
|
|
11
19
|
files: [
|
|
12
20
|
{
|
|
13
21
|
destination: '_tokens.css',
|
|
14
22
|
format: 'css/variables',
|
|
23
|
+
filter: 'removePrivate',
|
|
15
24
|
},
|
|
16
25
|
],
|
|
17
26
|
},
|
|
18
27
|
'scss-variables': {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
buildPath: `${path.resolve(__dirname, '../../dist/_tokens/scss/')}/`,
|
|
23
|
-
prefix: 'mds',
|
|
28
|
+
transforms: ['attribute/cti', 'name/cti/kebab'],
|
|
29
|
+
buildPath: `${path.resolve(__dirname, '../scss/constants/')}/`,
|
|
30
|
+
prefix: 'scss-var',
|
|
24
31
|
files: [
|
|
25
32
|
{
|
|
26
|
-
destination: '
|
|
27
|
-
// format: 'scss/variables',
|
|
33
|
+
destination: '_sd-tokens.scss',
|
|
28
34
|
format: 'scss/map-deep',
|
|
35
|
+
options: {
|
|
36
|
+
themeable: false,
|
|
37
|
+
},
|
|
38
|
+
filter(token) {
|
|
39
|
+
// only keep "private" tokens aka constants
|
|
40
|
+
return !!(token && token.private);
|
|
41
|
+
},
|
|
29
42
|
},
|
|
30
43
|
],
|
|
31
44
|
},
|
|
@@ -67,7 +80,7 @@ const config = {
|
|
|
67
80
|
// ],
|
|
68
81
|
// },
|
|
69
82
|
'js-module': {
|
|
70
|
-
|
|
83
|
+
transforms: ['attribute/cti', 'name/cti/pascal', 'custom/pxToRem'],
|
|
71
84
|
buildPath: `${path.resolve(__dirname, '../../dist/_tokens/js/')}/`,
|
|
72
85
|
prefix: 'mds',
|
|
73
86
|
files: [
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"neutral": {
|
|
4
|
+
"white": {
|
|
5
|
+
"value" : "#FFFFFF",
|
|
6
|
+
"private": true
|
|
7
|
+
},
|
|
8
|
+
"black": {
|
|
9
|
+
"value" : "#000000",
|
|
10
|
+
"private": true
|
|
11
|
+
},
|
|
12
|
+
"base": {
|
|
13
|
+
"value" : "#707070",
|
|
14
|
+
"private": true
|
|
15
|
+
},
|
|
16
|
+
"light": {
|
|
17
|
+
"value" : "#949494",
|
|
18
|
+
"private": true
|
|
19
|
+
},
|
|
20
|
+
"lighter": {
|
|
21
|
+
"value" : "#DDDDDD",
|
|
22
|
+
"private": true
|
|
23
|
+
},
|
|
24
|
+
"lightest": {
|
|
25
|
+
"value" : "#F8F8F8",
|
|
26
|
+
"private": true
|
|
27
|
+
},
|
|
28
|
+
"darker": {
|
|
29
|
+
"value" : "#333333",
|
|
30
|
+
"private": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"status": {
|
|
34
|
+
"error": {
|
|
35
|
+
"light": {
|
|
36
|
+
"value" : "#fd0826",
|
|
37
|
+
"private": true
|
|
38
|
+
},
|
|
39
|
+
"lightest": {
|
|
40
|
+
"value" : "#ffe3e6",
|
|
41
|
+
"private": true
|
|
42
|
+
},
|
|
43
|
+
"dark": {
|
|
44
|
+
"value" : "#d0021b",
|
|
45
|
+
"private": true
|
|
46
|
+
},
|
|
47
|
+
"darkest": {
|
|
48
|
+
"value" : "#ae0216",
|
|
49
|
+
"private": true
|
|
50
|
+
},
|
|
51
|
+
"base": {
|
|
52
|
+
"value" : "#e1021d",
|
|
53
|
+
"private": true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"success": {
|
|
57
|
+
"light": {
|
|
58
|
+
"value" : "#6ac52d",
|
|
59
|
+
"private": true
|
|
60
|
+
},
|
|
61
|
+
"lightest": {
|
|
62
|
+
"value" : "#f0faea",
|
|
63
|
+
"private": true
|
|
64
|
+
},
|
|
65
|
+
"dark": {
|
|
66
|
+
"value" : "#549b24",
|
|
67
|
+
"private": true
|
|
68
|
+
},
|
|
69
|
+
"darkest": {
|
|
70
|
+
"value" : "#40791B",
|
|
71
|
+
"private": true
|
|
72
|
+
},
|
|
73
|
+
"base": {
|
|
74
|
+
"value" : "#5ba927",
|
|
75
|
+
"private": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"info": {
|
|
79
|
+
"light": {
|
|
80
|
+
"value" : "#ffc442",
|
|
81
|
+
"private": true
|
|
82
|
+
},
|
|
83
|
+
"lightest": {
|
|
84
|
+
"value" : "#fff7e5",
|
|
85
|
+
"private": true
|
|
86
|
+
},
|
|
87
|
+
"dark": {
|
|
88
|
+
"value" : "#f4aa08",
|
|
89
|
+
"private": true
|
|
90
|
+
},
|
|
91
|
+
"darkest": {
|
|
92
|
+
"value" : "#946500",
|
|
93
|
+
"private": true
|
|
94
|
+
},
|
|
95
|
+
"base": {
|
|
96
|
+
"value" : "#ffb411",
|
|
97
|
+
"private": true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"size": {
|
|
103
|
+
"baseline": {
|
|
104
|
+
"value": "4px",
|
|
105
|
+
"private": true
|
|
106
|
+
},
|
|
107
|
+
"breakpoint": {
|
|
108
|
+
"sm": {
|
|
109
|
+
"value": "400px",
|
|
110
|
+
"private": true
|
|
111
|
+
},
|
|
112
|
+
"md": {
|
|
113
|
+
"value": "600px",
|
|
114
|
+
"private": true
|
|
115
|
+
},
|
|
116
|
+
"lg": {
|
|
117
|
+
"value": "1008px",
|
|
118
|
+
"private": true
|
|
119
|
+
},
|
|
120
|
+
"xl": {
|
|
121
|
+
"value": "1280px",
|
|
122
|
+
"private": true
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"gutter-width": {
|
|
126
|
+
"value": "20px",
|
|
127
|
+
"private": true
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|