@drivy/cobalt 0.26.3 → 0.28.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/cjs/tokens/colors.js +13 -1
- package/cjs/tokens/colors.js.map +1 -1
- package/cjs/tokens/palette.js +14 -1
- package/cjs/tokens/palette.js.map +1 -1
- package/cjs/tokens/theme.js +18 -8
- package/cjs/tokens/theme.js.map +1 -1
- package/package.json +4 -4
- package/styles/components/Buttons/index.scss +1 -1
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +25 -30
- package/styles/components/Form/Checkmark.scss +19 -34
- package/styles/components/Form/Fieldset.scss +3 -3
- package/styles/components/Form/Hint.scss +4 -7
- package/styles/components/Form/RadioWithDetails.scss +20 -21
- package/styles/components/Form/Select.scss +2 -1
- package/styles/components/Form/Slider.scss +16 -12
- package/styles/components/Form/Stepper.scss +5 -7
- package/styles/components/Form/TextArea.scss +3 -3
- package/styles/components/Form/TextInput.scss +9 -8
- package/styles/components/Form/ToggleSwitch.scss +16 -18
- package/styles/components/Form/field.scss +1 -1
- package/styles/components/Form/form.scss +14 -45
- package/styles/components/Icon/iconColors.scss +8 -8
- package/styles/components/Modal/index.scss +1 -1
- package/styles/core/_colors-map.scss +18 -8
- package/styles/core/palette.scss +13 -0
- package/styles/core/theme.scss +14 -6
- package/styles/core/typography.scss +0 -174
- package/styles/core.scss +0 -1
- package/styles/global.scss +0 -1
- package/tokens/colors.js +10 -2
- package/tokens/colors.js.map +1 -1
- package/tokens/palette.js +14 -2
- package/tokens/palette.js.map +1 -1
- package/tokens/theme.js +18 -8
- package/tokens/theme.js.map +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/tokens/index.d.ts +31 -6
- package/utilities.css +194 -14
- package/styles/core/card.scss +0 -31
- package/styles/global/typography.scss +0 -78
|
@@ -18,53 +18,57 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
[data-reach-slider-track] {
|
|
21
|
-
|
|
21
|
+
@include fill-bg-color(subdued);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
[data-reach-slider-track-highlight] {
|
|
25
|
-
|
|
25
|
+
@include fill-bg-color(accent);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
[data-reach-slider-handle] {
|
|
29
|
+
@include border(base);
|
|
29
30
|
width: spacing(md);
|
|
30
31
|
height: spacing(md);
|
|
31
|
-
|
|
32
|
+
box-sizing: content-box;
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
// The handle will always be white in any cases
|
|
35
|
+
background: #fff;
|
|
36
|
+
cursor: pointer;
|
|
34
37
|
|
|
35
|
-
box-shadow: elevation(base)
|
|
38
|
+
box-shadow: elevation(base);
|
|
36
39
|
border-radius: 50%;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
[data-reach-slider-handle]:not([aria-disabled]):focus {
|
|
43
|
+
@include border(accent, 2);
|
|
40
44
|
outline: none;
|
|
41
|
-
box-shadow: elevation(base)
|
|
45
|
+
box-shadow: elevation(base);
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
[data-reach-slider-track][data-disabled] {
|
|
45
|
-
|
|
49
|
+
@include bg-color(disabled);
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
[data-reach-slider-track-highlight][data-disabled] {
|
|
49
|
-
|
|
53
|
+
@include bg-color(disabled);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
[data-reach-slider-handle][aria-disabled] {
|
|
53
|
-
|
|
57
|
+
@include bg-color(neutralAlt);
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&__value-container {
|
|
61
|
+
@include text-color(base);
|
|
57
62
|
font-size: font-size(body);
|
|
58
|
-
color: color(graphite);
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
&__value-meta {
|
|
62
|
-
|
|
66
|
+
@include text-color(subdued);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
&--disabled {
|
|
66
70
|
#{ $self }__value-container {
|
|
67
|
-
|
|
71
|
+
@include text-color(subdued);
|
|
68
72
|
}
|
|
69
73
|
}
|
|
70
74
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__ContentWrapper {
|
|
21
|
+
@include text-color(base);
|
|
21
22
|
display: flex;
|
|
22
23
|
justify-content: center;
|
|
23
24
|
align-items: center;
|
|
@@ -26,15 +27,13 @@
|
|
|
26
27
|
|
|
27
28
|
font-size: 32px;
|
|
28
29
|
font-weight: 500;
|
|
29
|
-
color: color(indigo);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
&__Meta {
|
|
33
|
+
@include text-color(subdued);
|
|
33
34
|
margin-left: spacing(xs);
|
|
34
35
|
|
|
35
36
|
font-size: 15px;
|
|
36
|
-
|
|
37
|
-
color: color(graphite, light);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&__HiddenInput {
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
|
|
56
55
|
&:focus {
|
|
57
56
|
outline: none;
|
|
58
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.3);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
&--disabled {
|
|
@@ -66,19 +64,19 @@
|
|
|
66
64
|
|
|
67
65
|
&--disabled {
|
|
68
66
|
.cobalt-Stepper__ContentWrapper {
|
|
69
|
-
|
|
67
|
+
@include text-color(subdued);
|
|
70
68
|
}
|
|
71
69
|
}
|
|
72
70
|
|
|
73
71
|
&--success {
|
|
74
72
|
.cobalt-Stepper__ContentWrapper {
|
|
75
|
-
|
|
73
|
+
@include text-color(success);
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
&--error {
|
|
80
78
|
.cobalt-Stepper__ContentWrapper {
|
|
81
|
-
|
|
79
|
+
@include text-color(error);
|
|
82
80
|
}
|
|
83
81
|
}
|
|
84
82
|
}
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
resize: vertical;
|
|
21
21
|
|
|
22
22
|
&::placeholder {
|
|
23
|
-
|
|
23
|
+
@include text-color(subdued);
|
|
24
|
+
opacity: 0.7;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
@include withContext(".cobalt-FormField--withHint") {
|
|
29
30
|
bottom: spacing(md);
|
|
30
31
|
}
|
|
32
|
+
@include text-color(subdued);
|
|
31
33
|
|
|
32
34
|
position: absolute;
|
|
33
35
|
|
|
@@ -41,8 +43,6 @@
|
|
|
41
43
|
line-height: 24px;
|
|
42
44
|
text-align: right;
|
|
43
45
|
|
|
44
|
-
color: color(grey, dark);
|
|
45
|
-
|
|
46
46
|
animation-name: cobalt-TextAreaField--fade-in;
|
|
47
47
|
animation-duration: 150ms;
|
|
48
48
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
.cobalt- {
|
|
4
4
|
&TextField {
|
|
5
5
|
$self: &;
|
|
6
|
-
$field-icon-color: color(indigo);
|
|
7
6
|
|
|
8
7
|
@include form-field-container;
|
|
9
8
|
|
|
10
9
|
position: relative;
|
|
11
10
|
|
|
12
11
|
&__Icon {
|
|
12
|
+
@include semantic-color(base, icon, fill);
|
|
13
13
|
position: absolute;
|
|
14
14
|
top: 0;
|
|
15
15
|
left: spacing(xs);
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
height: 100%;
|
|
18
18
|
display: flex;
|
|
19
19
|
|
|
20
|
-
fill: color(grey, dark);
|
|
21
|
-
|
|
22
20
|
.cobalt-Icon {
|
|
23
21
|
transition: fill 150ms ease-in-out;
|
|
24
22
|
}
|
|
@@ -28,7 +26,8 @@
|
|
|
28
26
|
@include form-input-base($self);
|
|
29
27
|
|
|
30
28
|
&::placeholder {
|
|
31
|
-
|
|
29
|
+
@include text-color(subdued);
|
|
30
|
+
opacity: 0.7;
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -38,21 +37,23 @@
|
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
#{ $self }__Input + #{ $self }__Icon {
|
|
41
|
-
|
|
40
|
+
@include semantic-color(accent, icon, fill);
|
|
42
41
|
pointer-events: none;
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
#{ $self }__Input:placeholder-shown + #{ $self }__Icon {
|
|
46
|
-
|
|
45
|
+
@include semantic-color(subdued, icon, fill);
|
|
46
|
+
opacity: 0.7;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
#{ $self }__Input:focus + #{ $self }__Icon,
|
|
50
50
|
#{ $self }__Input:focus:placeholder-shown + #{ $self }__Icon {
|
|
51
|
-
|
|
51
|
+
@include semantic-color(accent, icon, fill);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
#{ $self }__Input:disabled + #{ $self }__Icon {
|
|
55
|
-
|
|
55
|
+
@include semantic-color(subdued, icon, fill);
|
|
56
|
+
opacity: 0.7;
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
}
|
|
@@ -100,17 +100,13 @@ $toggle-switch-size-large: 28px;
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
&__Label {
|
|
103
|
+
@include c-text-body-md;
|
|
104
|
+
@include text-color(base);
|
|
103
105
|
display: inline-block;
|
|
104
106
|
|
|
105
107
|
flex: 1;
|
|
106
108
|
|
|
107
109
|
padding: 0 spacing(sm) 0 0;
|
|
108
|
-
|
|
109
|
-
font-weight: 400;
|
|
110
|
-
font-family: font-family(base);
|
|
111
|
-
font-size: font-size(body);
|
|
112
|
-
line-height: line-height(body);
|
|
113
|
-
color: color(graphite);
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
&__ToggleSwitch {
|
|
@@ -124,10 +120,9 @@ $toggle-switch-size-large: 28px;
|
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
&__ToggleSwitchSlider {
|
|
123
|
+
@include semantic-color(base, stroke, background-color);
|
|
127
124
|
display: inline-block;
|
|
128
125
|
|
|
129
|
-
background-color: color(grey);
|
|
130
|
-
|
|
131
126
|
transition: $animation-duration;
|
|
132
127
|
}
|
|
133
128
|
|
|
@@ -139,18 +134,20 @@ $toggle-switch-size-large: 28px;
|
|
|
139
134
|
|
|
140
135
|
content: "";
|
|
141
136
|
|
|
142
|
-
|
|
137
|
+
// Toggle switch slider will always be white in any cases
|
|
138
|
+
background-color: #fff;
|
|
143
139
|
|
|
144
140
|
transition: $animation-duration;
|
|
145
141
|
will-change: transform;
|
|
146
142
|
}
|
|
147
143
|
|
|
148
144
|
&__ToggleSwitchSlider:after {
|
|
145
|
+
@include text-color(accent);
|
|
149
146
|
position: absolute;
|
|
150
147
|
|
|
151
148
|
opacity: 0;
|
|
152
149
|
|
|
153
|
-
box-shadow: 0 0 0 1px
|
|
150
|
+
box-shadow: 0 0 0 1px;
|
|
154
151
|
|
|
155
152
|
content: "";
|
|
156
153
|
}
|
|
@@ -168,7 +165,7 @@ $toggle-switch-size-large: 28px;
|
|
|
168
165
|
&:checked
|
|
169
166
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
170
167
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
171
|
-
|
|
168
|
+
@include bg-color(accentAlt);
|
|
172
169
|
}
|
|
173
170
|
|
|
174
171
|
&:not([disabled]) + .cobalt-ToggleSwitchField__ToggleSwitch,
|
|
@@ -185,24 +182,25 @@ $toggle-switch-size-large: 28px;
|
|
|
185
182
|
&[disabled]
|
|
186
183
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
187
184
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
188
|
-
|
|
185
|
+
@include bg-color(disabled);
|
|
189
186
|
}
|
|
190
187
|
|
|
191
188
|
&[disabled]
|
|
192
189
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
193
190
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider:before {
|
|
194
|
-
background-color: color(white);
|
|
195
191
|
box-shadow: none;
|
|
196
192
|
}
|
|
197
193
|
|
|
198
194
|
&[disabled]:checked
|
|
199
195
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
200
196
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
201
|
-
|
|
197
|
+
@include bg-color(accentAlt);
|
|
198
|
+
opacity: 0.5;
|
|
202
199
|
}
|
|
203
200
|
|
|
204
201
|
&[disabled] ~ .cobalt-ToggleSwitchField__Label {
|
|
205
|
-
|
|
202
|
+
@include text-color(subdued);
|
|
203
|
+
opacity: 0.7;
|
|
206
204
|
}
|
|
207
205
|
|
|
208
206
|
&:focus
|
|
@@ -216,19 +214,19 @@ $toggle-switch-size-large: 28px;
|
|
|
216
214
|
.cobalt-ToggleSwitchField__Input
|
|
217
215
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
218
216
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
219
|
-
|
|
217
|
+
@include border(error, 2);
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
.cobalt-ToggleSwitchField__Input:focus
|
|
223
221
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
224
222
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
225
|
-
|
|
223
|
+
@include border(error, 2);
|
|
226
224
|
}
|
|
227
225
|
|
|
228
226
|
.cobalt-ToggleSwitchField__Input:checked
|
|
229
227
|
+ .cobalt-ToggleSwitchField__ToggleSwitch
|
|
230
228
|
.cobalt-ToggleSwitchField__ToggleSwitchSlider {
|
|
231
|
-
|
|
229
|
+
@include bg-color(error);
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
|
|
@@ -35,6 +35,7 @@ $formfield-maxwidth: 600px;
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
> .cobalt-FormField__Label {
|
|
38
|
+
@include text-color(base);
|
|
38
39
|
display: inline-block;
|
|
39
40
|
|
|
40
41
|
padding: 0 0 10px 1px;
|
|
@@ -42,7 +43,6 @@ $formfield-maxwidth: 600px;
|
|
|
42
43
|
font-size: 14px;
|
|
43
44
|
font-weight: 600;
|
|
44
45
|
line-height: 18px;
|
|
45
|
-
color: color(graphite);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.cobalt-Hint {
|
|
@@ -1,38 +1,22 @@
|
|
|
1
|
-
$form-element--default-color: color(grey, dark);
|
|
2
|
-
$form-element--default-active-color: color(indigo);
|
|
3
|
-
$form-element--success-color: color(green);
|
|
4
|
-
$form-element--error-color: color(red);
|
|
5
|
-
|
|
6
1
|
@mixin form-input-base($container) {
|
|
2
|
+
@include text-color(base);
|
|
3
|
+
@include border(strongInteractive);
|
|
4
|
+
@include bg-color(secondary);
|
|
7
5
|
@include withContext(#{$container}--success) {
|
|
8
|
-
border-color
|
|
9
|
-
|
|
10
|
-
&:not(:disabled):hover {
|
|
11
|
-
border: 1px solid $form-element--success-color;
|
|
12
|
-
}
|
|
6
|
+
@include border-color(success);
|
|
13
7
|
|
|
8
|
+
&:not(:disabled):hover,
|
|
14
9
|
&:not(:disabled):focus {
|
|
15
|
-
border
|
|
16
|
-
border-width: 1px;
|
|
17
|
-
|
|
18
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--success-color, 0.16),
|
|
19
|
-
inset 0 0 0 1px $form-element--success-color;
|
|
10
|
+
@include border(success);
|
|
20
11
|
}
|
|
21
12
|
}
|
|
22
13
|
|
|
23
14
|
@include withContext(#{$container}--error) {
|
|
24
|
-
border-color
|
|
25
|
-
|
|
26
|
-
&:not(:disabled):hover {
|
|
27
|
-
border: 1px solid $form-element--error-color;
|
|
28
|
-
}
|
|
15
|
+
@include border-color(error);
|
|
29
16
|
|
|
17
|
+
&:not(:disabled):hover,
|
|
30
18
|
&:not(:disabled):focus {
|
|
31
|
-
border
|
|
32
|
-
border-width: 1px;
|
|
33
|
-
|
|
34
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--error-color, 0.16),
|
|
35
|
-
inset 0 0 0 1px $form-element--error-color;
|
|
19
|
+
@include border(error);
|
|
36
20
|
}
|
|
37
21
|
}
|
|
38
22
|
|
|
@@ -42,38 +26,25 @@ $form-element--error-color: color(red);
|
|
|
42
26
|
height: 44px;
|
|
43
27
|
padding: 10px 12px;
|
|
44
28
|
|
|
45
|
-
border: 1px solid $form-element--default-color;
|
|
46
|
-
|
|
47
|
-
color: color(graphite);
|
|
48
|
-
|
|
49
29
|
font-family: font-family(base);
|
|
50
30
|
font-size: 16px;
|
|
51
31
|
font-weight: 400;
|
|
52
32
|
line-height: 24px;
|
|
53
33
|
|
|
54
|
-
background-color: color(white);
|
|
55
|
-
|
|
56
34
|
border-radius: 4px;
|
|
57
35
|
|
|
58
36
|
transition: border-color 150ms ease-in-out;
|
|
59
37
|
|
|
60
38
|
&:not(:disabled):not(:read-only):hover {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
color: color(graphite);
|
|
39
|
+
@include text-color(base);
|
|
64
40
|
|
|
65
41
|
box-shadow: elevation(base);
|
|
66
42
|
}
|
|
67
43
|
|
|
68
44
|
&:not(:disabled):not(:read-only):focus {
|
|
69
|
-
border
|
|
70
|
-
|
|
71
|
-
border-width: 1px;
|
|
45
|
+
@include border(accent, 2);
|
|
72
46
|
|
|
73
47
|
outline: none;
|
|
74
|
-
|
|
75
|
-
box-shadow: 0 2px 12px 0 rgba($form-element--default-active-color, 0.16),
|
|
76
|
-
inset 0 0 0 1px $form-element--default-active-color;
|
|
77
48
|
}
|
|
78
49
|
|
|
79
50
|
&:not(select):read-only:focus {
|
|
@@ -86,11 +57,9 @@ $form-element--error-color: color(red);
|
|
|
86
57
|
|
|
87
58
|
&:disabled,
|
|
88
59
|
&:not(select):read-only {
|
|
89
|
-
border-color
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
background-color: color(grey, light);
|
|
60
|
+
@include border-color(base);
|
|
61
|
+
@include text-color(subdued);
|
|
62
|
+
@include bg-color(neutral);
|
|
94
63
|
}
|
|
95
64
|
|
|
96
65
|
&:disabled {
|
|
@@ -58,6 +58,10 @@
|
|
|
58
58
|
fill: var(--c-icon-info);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
.cobalt-Icon--colorInfoAlt {
|
|
62
|
+
fill: var(--c-icon-infoAlt);
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
.cobalt-Icon--colorError {
|
|
62
66
|
fill: var(--c-icon-error);
|
|
63
67
|
}
|
|
@@ -74,6 +78,10 @@
|
|
|
74
78
|
fill: var(--c-icon-successAlt);
|
|
75
79
|
}
|
|
76
80
|
|
|
81
|
+
.cobalt-Icon--colorWarning {
|
|
82
|
+
fill: var(--c-icon-warning);
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
.cobalt-Icon--colorConnect {
|
|
78
86
|
fill: var(--c-icon-connect);
|
|
79
87
|
}
|
|
@@ -90,14 +98,6 @@
|
|
|
90
98
|
fill: var(--c-icon-owner);
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
.cobalt-Icon--colorWarning {
|
|
94
|
-
fill: var(--c-icon-warning);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.cobalt-Icon--colorInfoAlt {
|
|
98
|
-
fill: var(--c-icon-infoAlt);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
101
|
.cobalt-Icon--colorInversed {
|
|
102
102
|
fill: var(--c-icon-inversed);
|
|
103
103
|
}
|
|
@@ -39,7 +39,11 @@ $theme-colors-map: (
|
|
|
39
39
|
owner: var(--c-l-indigo-dark),
|
|
40
40
|
disabled: var(--c-l-grey-light),
|
|
41
41
|
neutral: var(--c-l-grey-light),
|
|
42
|
-
neutralAlt: var(--c-l-grey-lighter)
|
|
42
|
+
neutralAlt: var(--c-l-grey-lighter),
|
|
43
|
+
seasonLow: var(--c-l-deprecatedSeasonLow),
|
|
44
|
+
seasonMedium: var(--c-l-deprecatedSeasonMedium),
|
|
45
|
+
seasonHigh: var(--c-l-deprecatedSeasonHigh),
|
|
46
|
+
seasonVeryHigh: var(--c-l-deprecatedSeasonVeryHigh)
|
|
43
47
|
),
|
|
44
48
|
text: (
|
|
45
49
|
base: var(--c-l-graphite),
|
|
@@ -63,15 +67,15 @@ $theme-colors-map: (
|
|
|
63
67
|
hover: var(--c-l-white)
|
|
64
68
|
),
|
|
65
69
|
info: var(--c-l-graphite-light),
|
|
70
|
+
infoAlt: var(--c-l-turquoise),
|
|
66
71
|
error: var(--c-l-red),
|
|
67
72
|
errorAlt: var(--c-l-white),
|
|
68
73
|
success: var(--c-l-green),
|
|
69
74
|
successAlt: var(--c-l-white),
|
|
75
|
+
warning: var(--c-l-coral),
|
|
70
76
|
connect: var(--c-l-turquoise),
|
|
71
77
|
driver: var(--c-l-graphite),
|
|
72
78
|
owner: var(--c-l-white),
|
|
73
|
-
warning: var(--c-l-coral),
|
|
74
|
-
infoAlt: var(--c-l-turquoise),
|
|
75
79
|
inversed: var(--c-l-white)
|
|
76
80
|
),
|
|
77
81
|
buttonBackground: (
|
|
@@ -186,16 +190,16 @@ $theme-colors-map: (
|
|
|
186
190
|
hover: var(--c-l-white)
|
|
187
191
|
),
|
|
188
192
|
info: var(--c-l-graphite-light),
|
|
193
|
+
infoAlt: var(--c-l-turquoise),
|
|
189
194
|
error: var(--c-l-red),
|
|
190
195
|
errorAlt: var(--c-l-red),
|
|
191
196
|
success: var(--c-l-green),
|
|
192
197
|
successAlt: var(--c-l-white),
|
|
198
|
+
warning: var(--c-l-coral),
|
|
193
199
|
connect: var(--c-l-turquoise),
|
|
194
200
|
connectAlt: var(--c-l-turquoise),
|
|
195
201
|
driver: var(--c-l-graphite),
|
|
196
202
|
owner: var(--c-l-white),
|
|
197
|
-
warning: var(--c-l-coral),
|
|
198
|
-
infoAlt: var(--c-l-turquoise),
|
|
199
203
|
inversed: var(--c-l-white),
|
|
200
204
|
disabled: var(--c-l-grey-lighter)
|
|
201
205
|
),
|
|
@@ -206,6 +210,12 @@ $theme-colors-map: (
|
|
|
206
210
|
hover: var(--c-l-graphite-light),
|
|
207
211
|
press: var(--c-l-graphite)
|
|
208
212
|
),
|
|
213
|
+
strong: var(--c-l-grey-dark),
|
|
214
|
+
strongInteractive: (
|
|
215
|
+
DEFAULT: var(--c-l-grey-dark),
|
|
216
|
+
hover: var(--c-l-graphite-light),
|
|
217
|
+
press: var(--c-l-graphite)
|
|
218
|
+
),
|
|
209
219
|
subdued: var(--c-l-grey-light),
|
|
210
220
|
accent: var(--c-l-indigo),
|
|
211
221
|
accentInteractive: (
|
|
@@ -226,9 +236,9 @@ $theme-colors-map: (
|
|
|
226
236
|
accent: var(--c-l-purple),
|
|
227
237
|
accentAlt: var(--c-l-purple),
|
|
228
238
|
error: var(--c-l-red),
|
|
229
|
-
success: var(--c-l-green),
|
|
230
239
|
negative: var(--c-l-red),
|
|
231
|
-
|
|
232
|
-
disabled: var(--c-l-grey-dark)
|
|
240
|
+
success: var(--c-l-green),
|
|
241
|
+
disabled: var(--c-l-grey-dark),
|
|
242
|
+
neutral: var(--c-l-grey-lighter)
|
|
233
243
|
)
|
|
234
244
|
);
|
package/styles/core/palette.scss
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--c-green-1000: #15310d;
|
|
19
19
|
--c-navy-50: #f1f1f4;
|
|
20
20
|
--c-navy-100: #e3e2e8;
|
|
21
|
+
--c-navy-200: #bbb8c7;
|
|
21
22
|
--c-navy-300: #7b728e;
|
|
22
23
|
--c-navy-500: #362e53;
|
|
23
24
|
--c-navy-700: #261a48;
|
|
@@ -58,6 +59,14 @@
|
|
|
58
59
|
--c-yellow-700: #c59548;
|
|
59
60
|
--c-yellow-900: #75592d;
|
|
60
61
|
--c-yellow-1000: #3b2e17;
|
|
62
|
+
--c-season-100: #bdffac;
|
|
63
|
+
--c-season-200: #94ea84;
|
|
64
|
+
--c-season-300: #73c865;
|
|
65
|
+
--c-season-400: #54a949;
|
|
66
|
+
--c-season-700: #0b7011;
|
|
67
|
+
--c-season-800: #005100;
|
|
68
|
+
--c-season-900: #030;
|
|
69
|
+
--c-season-1000: #001900;
|
|
61
70
|
--c-l-white: #fff;
|
|
62
71
|
--c-l-grey-lighter: #f8f7f8;
|
|
63
72
|
--c-l-grey-light: #edebed;
|
|
@@ -79,4 +88,8 @@
|
|
|
79
88
|
--c-l-blue: #2ea2ea;
|
|
80
89
|
--c-l-deprecatedBlueGhost: #2ea2ea0f;
|
|
81
90
|
--c-l-deprecatedDriver: #ffd988;
|
|
91
|
+
--c-l-deprecatedSeasonLow: #bdffac;
|
|
92
|
+
--c-l-deprecatedSeasonMedium: #94ea84;
|
|
93
|
+
--c-l-deprecatedSeasonHigh: #73c865;
|
|
94
|
+
--c-l-deprecatedSeasonVeryHigh: #54a949;
|
|
82
95
|
}
|
package/styles/core/theme.scss
CHANGED
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
--c-background-disabled: var(--c-l-grey-light);
|
|
30
30
|
--c-background-neutral: var(--c-l-grey-light);
|
|
31
31
|
--c-background-neutralAlt: var(--c-l-grey-lighter);
|
|
32
|
+
--c-background-seasonLow: var(--c-l-deprecatedSeasonLow);
|
|
33
|
+
--c-background-seasonMedium: var(--c-l-deprecatedSeasonMedium);
|
|
34
|
+
--c-background-seasonHigh: var(--c-l-deprecatedSeasonHigh);
|
|
35
|
+
--c-background-seasonVeryHigh: var(--c-l-deprecatedSeasonVeryHigh);
|
|
32
36
|
--c-text-base: var(--c-l-graphite);
|
|
33
37
|
--c-text-baseInteractive: var(--c-l-graphite);
|
|
34
38
|
--c-text-baseInteractive--hover: var(--c-l-graphite);
|
|
@@ -42,15 +46,15 @@
|
|
|
42
46
|
--c-text-accentAltInteractive: var(--c-l-white);
|
|
43
47
|
--c-text-accentAltInteractive--hover: var(--c-l-white);
|
|
44
48
|
--c-text-info: var(--c-l-graphite-light);
|
|
49
|
+
--c-text-infoAlt: var(--c-l-turquoise);
|
|
45
50
|
--c-text-error: var(--c-l-red);
|
|
46
51
|
--c-text-errorAlt: var(--c-l-white);
|
|
47
52
|
--c-text-success: var(--c-l-green);
|
|
48
53
|
--c-text-successAlt: var(--c-l-white);
|
|
54
|
+
--c-text-warning: var(--c-l-coral);
|
|
49
55
|
--c-text-connect: var(--c-l-turquoise);
|
|
50
56
|
--c-text-driver: var(--c-l-graphite);
|
|
51
57
|
--c-text-owner: var(--c-l-white);
|
|
52
|
-
--c-text-warning: var(--c-l-coral);
|
|
53
|
-
--c-text-infoAlt: var(--c-l-turquoise);
|
|
54
58
|
--c-text-inversed: var(--c-l-white);
|
|
55
59
|
--c-buttonBackground-selected: var(--c-l-indigo);
|
|
56
60
|
--c-buttonBackground-destructiveInteractive: var(--c-l-red);
|
|
@@ -119,22 +123,26 @@
|
|
|
119
123
|
--c-icon-accentAltInteractive: var(--c-l-white);
|
|
120
124
|
--c-icon-accentAltInteractive--hover: var(--c-l-white);
|
|
121
125
|
--c-icon-info: var(--c-l-graphite-light);
|
|
126
|
+
--c-icon-infoAlt: var(--c-l-turquoise);
|
|
122
127
|
--c-icon-error: var(--c-l-red);
|
|
123
128
|
--c-icon-errorAlt: var(--c-l-red);
|
|
124
129
|
--c-icon-success: var(--c-l-green);
|
|
125
130
|
--c-icon-successAlt: var(--c-l-white);
|
|
131
|
+
--c-icon-warning: var(--c-l-coral);
|
|
126
132
|
--c-icon-connect: var(--c-l-turquoise);
|
|
127
133
|
--c-icon-connectAlt: var(--c-l-turquoise);
|
|
128
134
|
--c-icon-driver: var(--c-l-graphite);
|
|
129
135
|
--c-icon-owner: var(--c-l-white);
|
|
130
|
-
--c-icon-warning: var(--c-l-coral);
|
|
131
|
-
--c-icon-infoAlt: var(--c-l-turquoise);
|
|
132
136
|
--c-icon-inversed: var(--c-l-white);
|
|
133
137
|
--c-icon-disabled: var(--c-l-grey-lighter);
|
|
134
138
|
--c-stroke-base: var(--c-l-grey);
|
|
135
139
|
--c-stroke-baseInteractive: var(--c-l-grey);
|
|
136
140
|
--c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
|
|
137
141
|
--c-stroke-baseInteractive--press: var(--c-l-graphite);
|
|
142
|
+
--c-stroke-strong: var(--c-l-grey-dark);
|
|
143
|
+
--c-stroke-strongInteractive: var(--c-l-grey-dark);
|
|
144
|
+
--c-stroke-strongInteractive--hover: var(--c-l-graphite-light);
|
|
145
|
+
--c-stroke-strongInteractive--press: var(--c-l-graphite);
|
|
138
146
|
--c-stroke-subdued: var(--c-l-grey-light);
|
|
139
147
|
--c-stroke-accent: var(--c-l-indigo);
|
|
140
148
|
--c-stroke-accentInteractive: var(--c-l-indigo);
|
|
@@ -151,8 +159,8 @@
|
|
|
151
159
|
--c-fill-accent: var(--c-l-purple);
|
|
152
160
|
--c-fill-accentAlt: var(--c-l-purple);
|
|
153
161
|
--c-fill-error: var(--c-l-red);
|
|
154
|
-
--c-fill-success: var(--c-l-green);
|
|
155
162
|
--c-fill-negative: var(--c-l-red);
|
|
156
|
-
--c-fill-
|
|
163
|
+
--c-fill-success: var(--c-l-green);
|
|
157
164
|
--c-fill-disabled: var(--c-l-grey-dark);
|
|
165
|
+
--c-fill-neutral: var(--c-l-grey-lighter);
|
|
158
166
|
}
|