@webitel/styleguide 24.12.27 → 24.12.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/styleguide",
3
- "version": "24.12.27",
3
+ "version": "24.12.30",
4
4
  "main": "",
5
5
  "exports": {
6
6
  ".": "./src/lib/main.scss",
@@ -16,7 +16,7 @@
16
16
  "./wt-flow-diagram": "./src/wt-flow-diagram/main.scss",
17
17
  "./fonts": "./src/lib/styleguide/fonts/_fonts.scss",
18
18
  "./component-schemes": "./src/lib/primevue/components/index.js",
19
- "./semantic": "./src/lib/primevue/semantic/color-scheme/index.js"
19
+ "./semantic": "./src/lib/primevue/semantic/index.js"
20
20
  },
21
21
  "files": [
22
22
  "src/"
@@ -1,287 +1,242 @@
1
1
  const darkColors = {
2
2
  root: {
3
3
  primary: {
4
- background: '{primary.color}',
5
- hoverBackground: '{primary.hover.color}',
6
- activeBackground: '{primary.active.color}',
7
- borderColor: '{primary.color}',
8
- hoverBorderColor: '{primary.hover.color}',
9
- activeBorderColor: '{primary.active.color}',
10
- color: '{primary.contrast.color}',
11
- hoverColor: '{primary.contrast.color}',
12
- activeColor: '{primary.contrast.color}',
4
+ background: '{primary-color}',
5
+ hoverBackground: '{primary-hover-color}',
6
+ activeBackground: '{primary-active-color}',
7
+ borderColor: '{primary-color}',
8
+ hoverBorderColor: '{primary-hover-color}',
9
+ activeBorderColor: '{primary-active-color}',
10
+ color: '{primary-on-color}',
11
+ hoverColor: '{primary-on-color}',
12
+ activeColor: '{primary-on-color}',
13
13
  focusRing: {
14
- color: '{primary.color}',
15
- shadow: 'none'
16
- }
14
+ color: '{focus-color}',
15
+ shadow: 'none',
16
+ },
17
17
  },
18
18
  secondary: {
19
- background: '{surface.800}',
20
- hoverBackground: '{surface.700}',
21
- activeBackground: '{surface.600}',
22
- borderColor: '{surface.800}',
23
- hoverBorderColor: '{surface.700}',
24
- activeBorderColor: '{surface.600}',
25
- color: '{surface.300}',
26
- hoverColor: '{surface.200}',
27
- activeColor: '{surface.100}',
28
- focusRing: {
29
- color: '{surface.300}',
30
- shadow: 'none'
31
- }
32
- },
33
- info: {
34
- background: '{sky.400}',
35
- hoverBackground: '{sky.300}',
36
- activeBackground: '{sky.200}',
37
- borderColor: '{sky.400}',
38
- hoverBorderColor: '{sky.300}',
39
- activeBorderColor: '{sky.200}',
40
- color: '{sky.950}',
41
- hoverColor: '{sky.950}',
42
- activeColor: '{sky.950}',
19
+ background: '{secondary-color}',
20
+ hoverBackground: '{secondary-hover-color}',
21
+ activeBackground: '{secondary-active-color}',
22
+ borderColor: '{secondary-color}',
23
+ hoverBorderColor: '{secondary-hover-color}',
24
+ activeBorderColor: '{secondary-active-color}',
25
+ color: '{secondary-on-color}',
26
+ hoverColor: '{secondary-on-color}',
27
+ activeColor: '{secondary-on-color}',
43
28
  focusRing: {
44
- color: '{sky.400}',
45
- shadow: 'none'
46
- }
29
+ color: '{focus-color}',
30
+ shadow: 'none',
31
+ },
47
32
  },
48
33
  success: {
49
- background: '{green.400}',
50
- hoverBackground: '{green.300}',
51
- activeBackground: '{green.200}',
52
- borderColor: '{green.400}',
53
- hoverBorderColor: '{green.300}',
54
- activeBorderColor: '{green.200}',
55
- color: '{green.950}',
56
- hoverColor: '{green.950}',
57
- activeColor: '{green.950}',
34
+ background: '{success-color}',
35
+ hoverBackground: '{success-hover-color}',
36
+ activeBackground: '{success-active-color}',
37
+ borderColor: '{success-color}',
38
+ hoverBorderColor: '{success-hover-color}',
39
+ activeBorderColor: '{success-active-color}',
40
+ color: '{success-on-color}',
41
+ hoverColor: '{success-on-color}',
42
+ activeColor: '{success-on-color}',
58
43
  focusRing: {
59
- color: '{green.400}',
60
- shadow: 'none'
61
- }
44
+ color: '{focus-color}',
45
+ shadow: 'none',
46
+ },
62
47
  },
63
48
  warn: {
64
- background: '{orange.400}',
65
- hoverBackground: '{orange.300}',
66
- activeBackground: '{orange.200}',
67
- borderColor: '{orange.400}',
68
- hoverBorderColor: '{orange.300}',
69
- activeBorderColor: '{orange.200}',
70
- color: '{orange.950}',
71
- hoverColor: '{orange.950}',
72
- activeColor: '{orange.950}',
49
+ background: '{warning-color}',
50
+ hoverBackground: '{warning-hover-color}',
51
+ activeBackground: '{warning-active-color}',
52
+ borderColor: '{warning-color}',
53
+ hoverBorderColor: '{warning-hover-color}',
54
+ activeBorderColor: '{warning-active-color}',
55
+ color: '{warning-on-color}',
56
+ hoverColor: '{warning-on-color}',
57
+ activeColor: '{warning-on-color}',
73
58
  focusRing: {
74
- color: '{orange.400}',
75
- shadow: 'none'
76
- }
59
+ color: '{focus-color}',
60
+ shadow: 'none',
61
+ },
77
62
  },
78
- help: {
79
- background: '{purple.400}',
80
- hoverBackground: '{purple.300}',
81
- activeBackground: '{purple.200}',
82
- borderColor: '{purple.400}',
83
- hoverBorderColor: '{purple.300}',
84
- activeBorderColor: '{purple.200}',
85
- color: '{purple.950}',
86
- hoverColor: '{purple.950}',
87
- activeColor: '{purple.950}',
88
- focusRing: {
89
- color: '{purple.400}',
90
- shadow: 'none'
91
- }
92
- },
93
- danger: {
94
- background: '{red.400}',
95
- hoverBackground: '{red.300}',
96
- activeBackground: '{red.200}',
97
- borderColor: '{red.400}',
98
- hoverBorderColor: '{red.300}',
99
- activeBorderColor: '{red.200}',
100
- color: '{red.950}',
101
- hoverColor: '{red.950}',
102
- activeColor: '{red.950}',
63
+ error: {
64
+ background: '{error-color}',
65
+ hoverBackground: '{error-hover-color}',
66
+ activeBackground: '{error-active-color}',
67
+ borderColor: '{error-color}',
68
+ hoverBorderColor: '{error-hover-color}',
69
+ activeBorderColor: '{error-active-color}',
70
+ color: '{error-on-color}',
71
+ hoverColor: '{error-on-color}',
72
+ activeColor: '{error-on-color}',
103
73
  focusRing: {
104
- color: '{red.400}',
105
- shadow: 'none'
106
- }
74
+ color: '{focus-color}',
75
+ shadow: 'none',
76
+ },
107
77
  },
108
- contrast: {
109
- background: '{surface.0}',
110
- hoverBackground: '{surface.100}',
111
- activeBackground: '{surface.200}',
112
- borderColor: '{surface.0}',
113
- hoverBorderColor: '{surface.100}',
114
- activeBorderColor: '{surface.200}',
115
- color: '{surface.950}',
116
- hoverColor: '{surface.950}',
117
- activeColor: '{surface.950}',
78
+ info: {
79
+ background: '{info-color}',
80
+ hoverBackground: '{info-hover-color}',
81
+ activeBackground: '{info-active-color}',
82
+ borderColor: '{info-color}',
83
+ hoverBorderColor: '{info-hover-color}',
84
+ activeBorderColor: '{info-active-color}',
85
+ color: '{info-on-color}',
86
+ hoverColor: '{info-on-color}',
87
+ activeColor: '{info-on-color}',
118
88
  focusRing: {
119
- color: '{surface.0}',
120
- shadow: 'none'
121
- }
89
+ color: '{focus-color}',
90
+ shadow: 'none',
91
+ },
122
92
  },
123
93
  /**
124
- * TODO @Evgeniy Trahtenberg
125
- * need to refactor transfer, error and job colors
94
+ * TODO @Oleksandr Palonnyi
95
+ * need to replace name "job" to "task",
126
96
  * */
127
- transfer: {
128
- background: '{primary.color}',
129
- hoverBackground: '{primary.hover.color}',
130
- activeBackground: '{primary.active.color}',
131
- borderColor: '{primary.color}',
132
- hoverBorderColor: '{primary.hover.color}',
133
- activeBorderColor: '{primary.active.color}',
134
- color: '{primary.contrast.color}',
135
- hoverColor: '{primary.contrast.color}',
136
- activeColor: '{primary.contrast.color}',
137
- focusRing: {
138
- color: '{primary.color}',
139
- shadow: 'none'
140
- }
141
- },
142
- error: {
143
- background: '{primary.color}',
144
- hoverBackground: '{primary.hover.color}',
145
- activeBackground: '{primary.active.color}',
146
- borderColor: '{primary.color}',
147
- hoverBorderColor: '{primary.hover.color}',
148
- activeBorderColor: '{primary.active.color}',
149
- color: '{primary.contrast.color}',
150
- hoverColor: '{primary.contrast.color}',
151
- activeColor: '{primary.contrast.color}',
97
+ job: {
98
+ background: '{task-color}',
99
+ hoverBackground: '{task-hover-color}',
100
+ activeBackground: '{task-active-color}',
101
+ borderColor: '{task-color}',
102
+ hoverBorderColor: '{task-hover-color}',
103
+ activeBorderColor: '{task-active-color}',
104
+ color: '{task-on-color}',
105
+ hoverColor: '{task-on-color}',
106
+ activeColor: '{task-on-color}',
152
107
  focusRing: {
153
- color: '{primary.color}',
154
- shadow: 'none'
155
- }
108
+ color: '{focus-color}',
109
+ shadow: 'none',
110
+ },
156
111
  },
157
- job: {
158
- background: '{primary.color}',
159
- hoverBackground: '{primary.hover.color}',
160
- activeBackground: '{primary.active.color}',
161
- borderColor: '{primary.color}',
162
- hoverBorderColor: '{primary.hover.color}',
163
- activeBorderColor: '{primary.active.color}',
164
- color: '{primary.contrast.color}',
165
- hoverColor: '{primary.contrast.color}',
166
- activeColor: '{primary.contrast.color}',
112
+ transfer: {
113
+ background: '{transfer-color}',
114
+ hoverBackground: '{transfer-hover-color}',
115
+ activeBackground: '{transfer-active-color}',
116
+ borderColor: '{transfer-color}',
117
+ hoverBorderColor: '{transfer-hover-color}',
118
+ activeBorderColor: '{transfer-active-color}',
119
+ color: '{transfer-on-color}',
120
+ hoverColor: '{transfer-on-color}',
121
+ activeColor: '{transfer-on-color}',
167
122
  focusRing: {
168
- color: '{primary.color}',
169
- shadow: 'none'
170
- }
123
+ color: '{focus-color}',
124
+ shadow: 'none',
125
+ },
171
126
  },
172
127
  disabled: {
173
- color: '{grey.darken.1}',
174
- background: '{dp-surface-color.16}',
128
+ color: '{grey-lighten-1}',
129
+ background: '{dp-surface-color-16}',
175
130
  },
176
131
  },
177
132
  outlined: {
178
133
  primary: {
179
- hoverBackground: 'color-mix(in srgb, {primary.color}, transparent 96%)',
180
- activeBackground: 'color-mix(in srgb, {primary.color}, transparent 84%)',
181
- borderColor: '{primary.700}',
182
- color: '{primary.color}'
134
+ hoverBackground: '{primary.50}',
135
+ activeBackground: '{primary.100}',
136
+ borderColor: '{primary.color}',
137
+ color: '{primary.color}',
183
138
  },
184
139
  secondary: {
185
- hoverBackground: 'rgba(255,255,255,0.04)',
186
- activeBackground: 'rgba(255,255,255,0.16)',
187
- borderColor: '{surface.700}',
188
- color: '{surface.400}'
140
+ hoverBackground: '{surface.50}',
141
+ activeBackground: '{surface.100}',
142
+ borderColor: '{surface.600}',
143
+ color: '{surface.600}',
189
144
  },
190
145
  success: {
191
- hoverBackground: 'color-mix(in srgb, {green.400}, transparent 96%)',
192
- activeBackground: 'color-mix(in srgb, {green.400}, transparent 84%)',
193
- borderColor: '{green.700}',
194
- color: '{green.400}'
146
+ hoverBackground: '{green.50}',
147
+ activeBackground: '{green.100}',
148
+ borderColor: '{green.500}',
149
+ color: '{green.500}',
195
150
  },
196
151
  info: {
197
- hoverBackground: 'color-mix(in srgb, {sky.400}, transparent 96%)',
198
- activeBackground: 'color-mix(in srgb, {sky.400}, transparent 84%)',
199
- borderColor: '{sky.700}',
200
- color: '{sky.400}'
152
+ hoverBackground: '{sky.50}',
153
+ activeBackground: '{sky.100}',
154
+ borderColor: '{sky.500}',
155
+ color: '{sky.500}',
201
156
  },
202
157
  warn: {
203
- hoverBackground: 'color-mix(in srgb, {orange.400}, transparent 96%)',
204
- activeBackground: 'color-mix(in srgb, {orange.400}, transparent 84%)',
205
- borderColor: '{orange.700}',
206
- color: '{orange.400}'
158
+ hoverBackground: '{orange.50}',
159
+ activeBackground: '{orange.100}',
160
+ borderColor: '{orange.500}',
161
+ color: '{orange.500}',
207
162
  },
208
163
  help: {
209
- hoverBackground: 'color-mix(in srgb, {purple.400}, transparent 96%)',
210
- activeBackground: 'color-mix(in srgb, {purple.400}, transparent 84%)',
211
- borderColor: '{purple.700}',
212
- color: '{purple.400}'
164
+ hoverBackground: '{purple.50}',
165
+ activeBackground: '{purple.100}',
166
+ borderColor: '{purple.500}',
167
+ color: '{purple.500}',
213
168
  },
214
169
  danger: {
215
- hoverBackground: 'color-mix(in srgb, {red.400}, transparent 96%)',
216
- activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
217
- borderColor: '{red.700}',
218
- color: '{red.400}'
170
+ hoverBackground: '{red.50}',
171
+ activeBackground: '{red.100}',
172
+ borderColor: '{red.500}',
173
+ color: '{red.500}',
219
174
  },
220
175
  contrast: {
221
- hoverBackground: '{surface.800}',
222
- activeBackground: '{surface.700}',
223
- borderColor: '{surface.500}',
224
- color: '{surface.0}'
176
+ hoverBackground: '{surface.50}',
177
+ activeBackground: '{surface.100}',
178
+ borderColor: '{surface.950}',
179
+ color: '{surface.950}',
225
180
  },
226
181
  plain: {
227
- hoverBackground: '{surface.800}',
228
- activeBackground: '{surface.700}',
229
- borderColor: '{surface.600}',
230
- color: '{surface.0}'
231
- }
182
+ hoverBackground: '{surface.50}',
183
+ activeBackground: '{surface.100}',
184
+ borderColor: '{surface.900}',
185
+ color: '{surface.900}',
186
+ },
232
187
  },
233
188
  text: {
234
189
  primary: {
235
- hoverBackground: 'color-mix(in srgb, {primary.color}, transparent 96%)',
236
- activeBackground: 'color-mix(in srgb, {primary.color}, transparent 84%)',
237
- color: '{primary.color}'
190
+ hoverBackground: '{primary.50}',
191
+ activeBackground: '{primary.100}',
192
+ color: '{primary.color}',
238
193
  },
239
194
  secondary: {
240
- hoverBackground: '{surface.800}',
241
- activeBackground: '{surface.700}',
242
- color: '{surface.400}'
195
+ hoverBackground: '{surface.50}',
196
+ activeBackground: '{surface.100}',
197
+ color: '{surface.600}',
243
198
  },
244
199
  success: {
245
- hoverBackground: 'color-mix(in srgb, {green.400}, transparent 96%)',
246
- activeBackground: 'color-mix(in srgb, {green.400}, transparent 84%)',
247
- color: '{green.400}'
200
+ hoverBackground: '{green.50}',
201
+ activeBackground: '{green.100}',
202
+ color: '{green.500}',
248
203
  },
249
204
  info: {
250
- hoverBackground: 'color-mix(in srgb, {sky.400}, transparent 96%)',
251
- activeBackground: 'color-mix(in srgb, {sky.400}, transparent 84%)',
252
- color: '{sky.400}'
205
+ hoverBackground: '{sky.50}',
206
+ activeBackground: '{sky.100}',
207
+ color: '{sky.500}',
253
208
  },
254
209
  warn: {
255
- hoverBackground: 'color-mix(in srgb, {orange.400}, transparent 96%)',
256
- activeBackground: 'color-mix(in srgb, {orange.400}, transparent 84%)',
257
- color: '{orange.400}'
210
+ hoverBackground: '{orange.50}',
211
+ activeBackground: '{orange.100}',
212
+ color: '{orange.500}',
258
213
  },
259
214
  help: {
260
- hoverBackground: 'color-mix(in srgb, {purple.400}, transparent 96%)',
261
- activeBackground: 'color-mix(in srgb, {purple.400}, transparent 84%)',
262
- color: '{purple.400}'
215
+ hoverBackground: '{purple.50}',
216
+ activeBackground: '{purple.100}',
217
+ color: '{purple.500}',
263
218
  },
264
219
  danger: {
265
- hoverBackground: 'color-mix(in srgb, {red.400}, transparent 96%)',
266
- activeBackground: 'color-mix(in srgb, {red.400}, transparent 84%)',
267
- color: '{red.400}'
220
+ hoverBackground: '{red.50}',
221
+ activeBackground: '{red.100}',
222
+ color: '{red.500}',
268
223
  },
269
224
  contrast: {
270
- hoverBackground: '{surface.800}',
271
- activeBackground: '{surface.700}',
272
- color: '{surface.0}'
225
+ hoverBackground: '{surface.50}',
226
+ activeBackground: '{surface.100}',
227
+ color: '{surface.950}',
273
228
  },
274
229
  plain: {
275
- hoverBackground: '{surface.800}',
276
- activeBackground: '{surface.700}',
277
- color: '{surface.0}'
278
- }
230
+ hoverBackground: '{surface.50}',
231
+ activeBackground: '{surface.100}',
232
+ color: '{surface.900}',
233
+ },
279
234
  },
280
235
  link: {
281
236
  color: '{primary.color}',
282
237
  hoverColor: '{primary.color}',
283
- activeColor: '{primary.color}'
284
- }
285
- }
238
+ activeColor: '{primary.color}',
239
+ },
240
+ };
286
241
 
287
242
  export default darkColors
@@ -2,176 +2,131 @@ const lightColors = {
2
2
  root: {
3
3
  primary: {
4
4
  background: '{primary-color}',
5
- hoverBackground: '{primary.hover.color}',
6
- activeBackground: '{primary.active.color}',
7
- borderColor: '{primary.color}',
8
- hoverBorderColor: '{primary.hover.color}',
9
- activeBorderColor: '{primary.active.color}',
10
- color: '{primary.contrast.color}',
11
- hoverColor: '{primary.contrast.color}',
12
- activeColor: '{primary.contrast.color}',
5
+ hoverBackground: '{primary-hover-color}',
6
+ activeBackground: '{primary-active-color}',
7
+ borderColor: '{primary-color}',
8
+ hoverBorderColor: '{primary-hover-color}',
9
+ activeBorderColor: '{primary-active-color}',
10
+ color: '{primary-on-color}',
11
+ hoverColor: '{primary-on-color}',
12
+ activeColor: '{primary-on-color}',
13
13
  focusRing: {
14
- color: '{primary.color}',
14
+ color: '{focus-color}',
15
15
  shadow: 'none',
16
16
  },
17
17
  },
18
18
  secondary: {
19
- background: '{surface.100}',
20
- hoverBackground: '{surface.200}',
21
- activeBackground: '{surface.300}',
22
- borderColor: '{surface.100}',
23
- hoverBorderColor: '{surface.200}',
24
- activeBorderColor: '{surface.300}',
25
- color: '{surface.600}',
26
- hoverColor: '{surface.700}',
27
- activeColor: '{surface.800}',
28
- focusRing: {
29
- color: '{surface.600}',
30
- shadow: 'none',
31
- },
32
- },
33
- info: {
34
- background: '{sky.500}',
35
- hoverBackground: '{sky.400}',
36
- activeBackground: '{sky.300}',
37
- borderColor: '{sky.500}',
38
- hoverBorderColor: '{sky.400}',
39
- activeBorderColor: '{sky.300}',
40
- color: '#ffffff',
41
- hoverColor: '#ffffff',
42
- activeColor: '#ffffff',
19
+ background: '{secondary-color}',
20
+ hoverBackground: '{secondary-hover-color}',
21
+ activeBackground: '{secondary-active-color}',
22
+ borderColor: '{secondary-color}',
23
+ hoverBorderColor: '{secondary-hover-color}',
24
+ activeBorderColor: '{secondary-active-color}',
25
+ color: '{secondary-on-color}',
26
+ hoverColor: '{secondary-on-color}',
27
+ activeColor: '{secondary-on-color}',
43
28
  focusRing: {
44
- color: '{sky.500}',
29
+ color: '{focus-color}',
45
30
  shadow: 'none',
46
31
  },
47
32
  },
48
33
  success: {
49
34
  background: '{success-color}',
50
35
  hoverBackground: '{success-hover-color}',
51
- activeBackground: '{success-hover-color}',
52
- borderColor: '{green.500}',
53
- hoverBorderColor: '{green.400}',
54
- activeBorderColor: '{green.300}',
55
- color: '#ffffff',
56
- hoverColor: '#ffffff',
57
- activeColor: '#ffffff',
36
+ activeBackground: '{success-active-color}',
37
+ borderColor: '{success-color}',
38
+ hoverBorderColor: '{success-hover-color}',
39
+ activeBorderColor: '{success-active-color}',
40
+ color: '{success-on-color}',
41
+ hoverColor: '{success-on-color}',
42
+ activeColor: '{success-on-color}',
58
43
  focusRing: {
59
- color: '{green.500}',
44
+ color: '{focus-color}',
60
45
  shadow: 'none',
61
46
  },
62
47
  },
63
48
  warn: {
64
- background: '{orange.500}',
65
- hoverBackground: '{orange.400}',
66
- activeBackground: '{orange.300}',
67
- borderColor: '{orange.500}',
68
- hoverBorderColor: '{orange.400}',
69
- activeBorderColor: '{orange.300}',
70
- color: '#ffffff',
71
- hoverColor: '#ffffff',
72
- activeColor: '#ffffff',
49
+ background: '{warning-color}',
50
+ hoverBackground: '{warning-hover-color}',
51
+ activeBackground: '{warning-active-color}',
52
+ borderColor: '{warning-color}',
53
+ hoverBorderColor: '{warning-hover-color}',
54
+ activeBorderColor: '{warning-active-color}',
55
+ color: '{warning-on-color}',
56
+ hoverColor: '{warning-on-color}',
57
+ activeColor: '{warning-on-color}',
73
58
  focusRing: {
74
- color: '{orange.500}',
59
+ color: '{focus-color}',
75
60
  shadow: 'none',
76
61
  },
77
62
  },
78
- help: {
79
- background: '{purple.500}',
80
- hoverBackground: '{purple.400}',
81
- activeBackground: '{purple.300}',
82
- borderColor: '{purple.500}',
83
- hoverBorderColor: '{purple.400}',
84
- activeBorderColor: '{purple.300}',
85
- color: '#ffffff',
86
- hoverColor: '#ffffff',
87
- activeColor: '#ffffff',
88
- focusRing: {
89
- color: '{purple.500}',
90
- shadow: 'none',
91
- },
92
- },
93
- danger: {
94
- background: '{red.500}',
95
- hoverBackground: '{red.400}',
96
- activeBackground: '{red.300}',
97
- borderColor: '{red.500}',
98
- hoverBorderColor: '{red.400}',
99
- activeBorderColor: '{red.300}',
100
- color: '#ffffff',
101
- hoverColor: '#ffffff',
102
- activeColor: '#ffffff',
63
+ error: {
64
+ background: '{error-color}',
65
+ hoverBackground: '{error-hover-color}',
66
+ activeBackground: '{error-active-color}',
67
+ borderColor: '{error-color}',
68
+ hoverBorderColor: '{error-hover-color}',
69
+ activeBorderColor: '{error-active-color}',
70
+ color: '{error-on-color}',
71
+ hoverColor: '{error-on-color}',
72
+ activeColor: '{error-on-color}',
103
73
  focusRing: {
104
- color: '{red.500}',
74
+ color: '{focus-color}',
105
75
  shadow: 'none',
106
76
  },
107
77
  },
108
- contrast: {
109
- background: '{surface.950}',
110
- hoverBackground: '{surface.800}',
111
- activeBackground: '{surface.700}',
112
- borderColor: '{surface.950}',
113
- hoverBorderColor: '{surface.800}',
114
- activeBorderColor: '{surface.700}',
115
- color: '{surface.0}',
116
- hoverColor: '{surface.0}',
117
- activeColor: '{surface.0}',
78
+ info: {
79
+ background: '{info-color}',
80
+ hoverBackground: '{info-hover-color}',
81
+ activeBackground: '{info-active-color}',
82
+ borderColor: '{info-color}',
83
+ hoverBorderColor: '{info-hover-color}',
84
+ activeBorderColor: '{info-active-color}',
85
+ color: '{info-on-color}',
86
+ hoverColor: '{info-on-color}',
87
+ activeColor: '{info-on-color}',
118
88
  focusRing: {
119
- color: '{surface.950}',
89
+ color: '{focus-color}',
120
90
  shadow: 'none',
121
91
  },
122
92
  },
123
93
  /**
124
- * TODO @Evgeniy Trahtenberg
125
- * need to refactor transfer, error and job colors
94
+ * TODO @Oleksandr Palonnyi
95
+ * need to replace name "job" to "task",
126
96
  * */
127
- transfer: {
128
- background: '{primary.color}',
129
- hoverBackground: '{primary.hover.color}',
130
- activeBackground: '{primary.active.color}',
131
- borderColor: '{primary.color}',
132
- hoverBorderColor: '{primary.hover.color}',
133
- activeBorderColor: '{primary.active.color}',
134
- color: '{primary.contrast.color}',
135
- hoverColor: '{primary.contrast.color}',
136
- activeColor: '{primary.contrast.color}',
137
- focusRing: {
138
- color: '{primary.color}',
139
- shadow: 'none',
140
- },
141
- },
142
- error: {
143
- background: '{error-color}',
144
- hoverBackground: '{error-hover-color}',
145
- activeBackground: '{error-hover-color}',
146
- borderColor: '{primary.color}',
147
- hoverBorderColor: '{primary.hover.color}',
148
- activeBorderColor: '{primary.active.color}',
149
- color: '{primary.contrast.color}',
150
- hoverColor: '{primary.contrast.color}',
151
- activeColor: '{primary.contrast.color}',
97
+ job: {
98
+ background: '{task-color}',
99
+ hoverBackground: '{task-hover-color}',
100
+ activeBackground: '{task-active-color}',
101
+ borderColor: '{task-color}',
102
+ hoverBorderColor: '{task-hover-color}',
103
+ activeBorderColor: '{task-active-color}',
104
+ color: '{task-on-color}',
105
+ hoverColor: '{task-on-color}',
106
+ activeColor: '{task-on-color}',
152
107
  focusRing: {
153
- color: '{primary.color}',
108
+ color: '{focus-color}',
154
109
  shadow: 'none',
155
110
  },
156
111
  },
157
- job: {
158
- background: '{primary.color}',
159
- hoverBackground: '{primary.hover.color}',
160
- activeBackground: '{primary.active.color}',
161
- borderColor: '{primary.color}',
162
- hoverBorderColor: '{primary.hover.color}',
163
- activeBorderColor: '{primary.active.color}',
164
- color: '{primary.contrast.color}',
165
- hoverColor: '{primary.contrast.color}',
166
- activeColor: '{primary.contrast.color}',
112
+ transfer: {
113
+ background: '{transfer-color}',
114
+ hoverBackground: '{transfer-hover-color}',
115
+ activeBackground: '{transfer-active-color}',
116
+ borderColor: '{transfer-color}',
117
+ hoverBorderColor: '{transfer-hover-color}',
118
+ activeBorderColor: '{transfer-active-color}',
119
+ color: '{transfer-on-color}',
120
+ hoverColor: '{transfer-on-color}',
121
+ activeColor: '{transfer-on-color}',
167
122
  focusRing: {
168
- color: '{primary.color}',
123
+ color: '{focus-color}',
169
124
  shadow: 'none',
170
125
  },
171
126
  },
172
127
  disabled: {
173
- color: '{grey.darken.1}',
174
- background: '{dp-surface-color.16}',
128
+ color: '{grey-darken-1}',
129
+ background: '{dp-surface-color-16}',
175
130
  },
176
131
  },
177
132
  outlined: {
@@ -1,5 +1,5 @@
1
1
  const darkColors = {
2
- background: '{surface.600}',
2
+ background: '{tooltip-background}',
3
3
  color: '{surface.0}',
4
4
  shadow: '{overlay.popover.shadow}',
5
5
  };
@@ -1,5 +1,5 @@
1
1
  const lightColors = {
2
- background: '{surface.600}',
2
+ background: '{tooltip-background}',
3
3
  color: '{surface.0}',
4
4
  shadow: '{overlay.popover.shadow}',
5
5
  };
@@ -0,0 +1,12 @@
1
+ import typography from './typography';
2
+
3
+ const colorScheme = {
4
+ light: {
5
+ ...typography.light,
6
+ },
7
+ dark: {
8
+ ...typography.dark,
9
+ },
10
+ }
11
+
12
+ export default colorScheme
@@ -0,0 +1,8 @@
1
+ export default {
2
+ 'text-main-color': '{grey-lighten-3}',
3
+ 'text-disabled-color': '{grey-darken-1}',
4
+ 'text-error-color': '{error-color}',
5
+ 'text-link-color': '{info-color}',
6
+
7
+ 'text-on-brand-color': '{white}',
8
+ }
@@ -0,0 +1,7 @@
1
+ import light from './light-color'
2
+ import dark from './dark-color'
3
+
4
+ export default {
5
+ light,
6
+ dark
7
+ }
@@ -0,0 +1,8 @@
1
+ export default {
2
+ 'text-main-color': '{grey-darken-3}',
3
+ 'text-disabled-color': '{grey-lighten-1}',
4
+ 'text-error-color': '{error-color}',
5
+ 'text-link-color': '{info-color}',
6
+
7
+ 'text-on-brand-color': '{white}'
8
+ }
@@ -0,0 +1,15 @@
1
+ import popover from './popover';
2
+ import tooltip from './tooltip';
3
+
4
+ const colorScheme = {
5
+ light: {
6
+ ...popover.light,
7
+ ...tooltip.light,
8
+ },
9
+ dark: {
10
+ ...popover.dark,
11
+ ...tooltip.dark,
12
+ },
13
+ }
14
+
15
+ export default colorScheme
@@ -0,0 +1,7 @@
1
+ export default {
2
+ overlay: {
3
+ popover: {
4
+ background: '{grey-lighten-3}'
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ import light from './light-color'
2
+ import dark from './dark-color'
3
+
4
+ export default {
5
+ light,
6
+ dark
7
+ }
@@ -0,0 +1,7 @@
1
+ export default {
2
+ overlay: {
3
+ popover: {
4
+ background: '{grey-lighten-3}'
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ 'tooltip-background': '{red-lighten-2}'
3
+ }
@@ -0,0 +1,7 @@
1
+ import light from './light-color'
2
+ import dark from './dark-color'
3
+
4
+ export default {
5
+ light,
6
+ dark
7
+ }
@@ -0,0 +1,3 @@
1
+ export default {
2
+ 'tooltip-background': '{blue-lighten-2}'
3
+ }
@@ -119,80 +119,84 @@ const darkColor = {
119
119
  contrastColor: '{white}',
120
120
  },
121
121
 
122
- // content wrapper
123
- 'content-wrapper-color': '{dp-surface-color.20}',
124
-
125
- // success colors
126
- 'success-color': '{green.darken.4}',
127
- 'success-hover-color': '{green.darken.3}',
128
- 'success-light-color': '{green.lighten.4}',
129
- 'success-on-color': '{black}',
130
-
131
- // warning colors
132
- 'warning-color': '{orange.accent.2}',
133
- 'warning-hover-color': '{orange.accent.1}',
134
- 'warning-light-color': '{orange.lighten.3}',
135
- 'warning-on-color': '{black}',
136
-
137
- // error colors
138
- 'error-color': '{red.accent.2}',
139
- 'error-hover-color': '{red.lighten.2}',
140
- 'error-light-color': '{red.lighten.3}',
141
- 'error-on-color': '{black}',
142
-
143
- // info colors
144
- 'info-color': '{blue.darken.1}',
145
- 'info-hover-color': '{blue.lighten.1}',
146
- 'info-light-color': '{blue.lighten.3}',
147
- 'info-on-color': '{white}',
148
-
149
- // job colors
150
- 'job-color': '{blue.darken.1}',
151
- 'job-hover-color': '{blue.lighten.1}',
152
- 'job-light-color': '{blue.lighten.3}',
153
- 'job-on-color': '{white}',
154
-
155
- // chat colors
156
- 'chat-color': '{indigo.accent.2}',
157
- 'chat-hover-color': '{indigo.accent.1}',
158
- 'chat-light-color': '{indigo.lighten.3}',
159
- 'chat-on-color': '{white}',
160
-
161
- // transfer colors
162
- 'transfer-color': '{indigo.darken.1}',
163
- 'transfer-hover-color': '{indigo.lighten.1}',
164
- 'transfer-light-color': '{indigo.lighten.4}',
165
- 'transfer-on-color': '{white}',
166
-
167
- // primary colors
168
- 'primary-color': '{amber.darken.2}',
169
- 'primary-hover-color': '{amber.darken.1}',
170
- 'primary-light-color': '{amber.darken.4}',
171
- 'primary-on-color': '{black}',
172
-
173
- // secondary colors
174
- 'secondary-color': '{dp-surface-color.10}',
175
- 'secondary-hover-color': '{dp-surface-color.14}',
176
- 'secondary-light-color': '{dp-surface-color.16}',
177
- 'secondary-on-color': '{grey.lighten.4}',
178
-
179
- // email colors
180
- 'email-color': '{blue.darken.3}',
181
- 'email-hover-color': '{blue.darken.2}',
182
- 'email-light-color': '{blue.lighten.1}',
183
- 'email-on-color': '{white}',
122
+ // Focus colors
123
+ 'focus-color': '{white}',
124
+
125
+ // Primary colors
126
+ 'primary-color': '{amber-darken-1}',
127
+ 'primary-hover-color': '{amber-lighten-1}',
128
+ 'primary-active-color': '{amber-lighten-2}',
129
+ 'primary-light-color': '{amber-darken-4}',
130
+ 'primary-on-color': '{grey-darken-4}',
131
+
132
+ // Secondary colors
133
+ 'secondary-color': '{dp-surface-color-10}',
134
+ 'secondary-hover-color': '{dp-surface-color-14}',
135
+ 'secondary-active-color': '{dp-surface-color-18}',
136
+ 'secondary-light-color': '{dp-surface-color-16}',
137
+ 'secondary-on-color': '{grey-lighten-4}',
138
+
139
+ // Success colors
140
+ 'success-color': '{green-darken-3}',
141
+ 'success-hover-color': '{green-darken-2}',
142
+ 'success-active-color': '{green-darken-1}',
143
+ 'success-light-color': '{green-darken-4}',
144
+ 'success-on-color': '{grey-darken-4}',
145
+
146
+ // Warning colors
147
+ 'warning-color': '{orange-accent-3}',
148
+ 'warning-hover-color': '{orange-accent-2}',
149
+ 'warning-active-color': '{orange-accent-1}',
150
+ 'warning-light-color': '{orange-darken-4}',
151
+ 'warning-on-color': '{grey-darken-4}',
152
+
153
+ // Error colors
154
+ 'error-color': '{red-lighten-1}',
155
+ 'error-hover-color': '{red-lighten-2}',
156
+ 'error-active-color': '{red-lighten-3}',
157
+ 'error-light-color': '{red-darken-4}',
158
+ 'error-on-color': '{grey-darken-4}',
159
+
160
+ // Info colors
161
+ 'info-color': '{light-blue-lighten-1}',
162
+ 'info-hover-color': '{light-blue-lighten-2}',
163
+ 'info-active-color': '{light-blue-lighten-3}',
164
+ 'info-light-color': '{light-blue-lighten-4}',
165
+ 'info-on-color': '{grey-darken-4}',
166
+
167
+ // Task colors
168
+ 'task-color': '{blue-lighten-1}',
169
+ 'task-hover-color': '{blue-lighten-2}',
170
+ 'task-active-color': '{blue-lighten-3}',
171
+ 'task-light-color': '{blue-lighten-4}',
172
+ 'task-on-color': '{grey-darken-4}',
173
+
174
+ // Transfer colors
175
+ 'transfer-color': '{indigo-lighten-2}',
176
+ 'transfer-hover-color': '{indigo-lighten-3}',
177
+ 'transfer-active-color': '{indigo-lighten-4}',
178
+ 'transfer-light-color': '{indigo-lighten-4}',
179
+ 'transfer-on-color': '{grey-darken-4}',
180
+
181
+ // Chat colors
182
+ 'chat-color': '{indigo-accent-2}',
183
+ 'chat-hover-color': '{indigo-accent-1}',
184
+ 'chat-active-color': '{indigo-lighten-3}',
185
+ 'chat-light-color': '{indigo-lighten-3}',
186
+ 'chat-on-color': '{grey-darken-4}',
187
+
188
+ // Email colors
189
+ 'email-color': '{blue-darken-3}',
190
+ 'email-hover-color': '{blue-darken-2}',
191
+ 'email-light-color': '{blue-lighten-1}',
192
+ 'email-on-color': '{grey-darken-4}',
184
193
 
185
194
  // accent colors
186
- 'accent-color': '{purple.lighten.1}',
187
- 'sub-accent-color': '{indigo.darken.3}',
188
-
189
- // typography colors
190
- 'text-main-color': '{grey.lighten.1}',
191
- 'text-disabled-color': '{grey.darken.1}',
192
- 'text-error-color': '{error-color}',
193
- 'text-link-color': '{info-color}',
195
+ 'accent-color': '{purple-lighten-1}',
196
+ 'sub-accent-color': '{indigo-darken-3}',
194
197
 
195
- 'text-on-brand-color': '{white}',
198
+ // content wrapper
199
+ 'content-wrapper-color': '{dp-surface-color-20}',
196
200
  };
197
201
 
198
202
  export default darkColor;
@@ -1,15 +1,21 @@
1
1
  import darkColor from './dark-color.js';
2
2
  import lightColor from './light-color.js';
3
3
  import palette from './palette.js';
4
+ import base from './base'
5
+ import components from './components'
4
6
 
5
7
  const colorScheme = {
6
8
  light: {
7
9
  ...palette,
8
10
  ...lightColor,
11
+ ...base.light,
12
+ ...components.light,
9
13
  },
10
14
  dark: {
11
15
  ...palette,
12
16
  ...darkColor,
17
+ ...base.dark,
18
+ ...components.dark,
13
19
  },
14
20
  };
15
21
 
@@ -119,80 +119,84 @@ const lightColor = {
119
119
  contrastColor: '{white}',
120
120
  },
121
121
 
122
- // content wrapper
123
- 'content-wrapper-color': '{dp-surface-color.20}',
124
-
125
- // success colors
126
- 'success-color': '{green.darken.4}',
127
- 'success-hover-color': '{green.darken.3}',
128
- 'success-light-color': '{green.lighten.4}',
122
+ // Focus colors
123
+ 'focus-color': '{black}',
124
+
125
+ // Primary colors
126
+ 'primary-color': '{amber-accent-3}',
127
+ 'primary-hover-color': '{amber-accent-2}',
128
+ 'primary-active-color': '{amber-accent-1}',
129
+ 'primary-light-color': '{amber-lighten-3}',
130
+ 'primary-on-color': '{grey-darken-4}',
131
+
132
+ // Secondary colors
133
+ 'secondary-color': '{dp-surface-color-10}',
134
+ 'secondary-hover-color': '{dp-surface-color-14}',
135
+ 'secondary-active-color': '{dp-surface-color-16}',
136
+ 'secondary-light-color': '{dp-surface-color-16}',
137
+ 'secondary-on-color': '{grey-darken-4}',
138
+
139
+ // Success colors
140
+ 'success-color': '{green-darken-4}',
141
+ 'success-hover-color': '{green-darken-3}',
142
+ 'success-active-color': '{green-darken-2}',
143
+ 'success-light-color': '{green-lighten-3}',
129
144
  'success-on-color': '{white}',
130
145
 
131
- // warning colors
132
- 'warning-color': '{orange.accent.2}',
133
- 'warning-hover-color': '{orange.accent.1}',
134
- 'warning-light-color': '{orange.lighten.4}',
135
- 'warning-on-color': '{black}',
136
-
137
- // error colors
138
- 'error-color': '{red.accent.2}',
139
- 'error-hover-color': '{red.lighten.2}',
140
- 'error-light-color': '{red.lighten.4}',
146
+ // Warning colors
147
+ 'warning-color': '{orange-accent-2}',
148
+ 'warning-hover-color': '{orange-accent-1}',
149
+ 'warning-active-color': '{orange-lighten-3}',
150
+ 'warning-light-color': '{orange-lighten-3}',
151
+ 'warning-on-color': '{white}',
152
+
153
+ // Error colors
154
+ 'error-color': '{red-lighten-1}',
155
+ 'error-hover-color': '{red-lighten-2}',
156
+ 'error-active-color': '{red-lighten-3}',
157
+ 'error-light-color': '{red-lighten-3}',
141
158
  'error-on-color': '{white}',
142
159
 
143
- // info colors
144
- 'info-color': '{blue.darken.1}',
145
- 'info-hover-color': '{blue.lighten.1}',
146
- 'info-light-color': '{blue.lighten.4}',
147
- 'info-on-color': '{black}',
148
-
149
- // job colors
150
- 'job-color': '{blue.darken.1}',
151
- 'job-hover-color': '{blue.lighten.1}',
152
- 'job-light-color': '{blue.lighten.4}',
153
- 'job-on-color': '{black}',
154
-
155
- // chat colors
156
- 'chat-color': '{indigo.accent.2}',
157
- 'chat-hover-color': '{indigo.accent.1}',
158
- 'chat-light-color': '{indigo.lighten.4}',
159
- 'chat-on-color': '{black}',
160
-
161
- // transfer colors
162
- 'transfer-color': '{indigo.lighten.1}',
163
- 'transfer-hover-color': '{indigo.lighten.2}',
164
- 'transfer-light-color': '{indigo.lighten.4}',
160
+ // Info colors
161
+ 'info-color': '{light-blue-darken-1}',
162
+ 'info-hover-color': '{light-blue-lighten-1}',
163
+ 'info-active-color': '{light-blue-lighten-2}',
164
+ 'info-light-color': '{light-blue-lighten-4}',
165
+ 'info-on-color': '{white}',
166
+
167
+ // Task colors
168
+ 'task-color': '{blue-darken-1}',
169
+ 'task-hover-color': '{blue-lighten-1}',
170
+ 'task-active-color': '{blue-lighten-2}',
171
+ 'task-light-color': '{blue-lighten-4}',
172
+ 'task-on-color': '{white}',
173
+
174
+ // Transfer colors
175
+ 'transfer-color': '{indigo-lighten-1}',
176
+ 'transfer-hover-color': '{indigo-lighten-2}',
177
+ 'transfer-active-color': '{indigo-lighten-3}',
178
+ 'transfer-light-color': '{indigo-lighten-4}',
165
179
  'transfer-on-color': '{white}',
166
180
 
167
- // primary colors
168
- 'primary-color': '{amber.accent.3}',
169
- 'primary-hover-color': '{amber.accent.2}',
170
- 'primary-light-color': '{amber.lighten.3}',
171
- 'primary-on-color': '{black}',
172
-
173
- // secondary colors
174
- 'secondary-color': '{dp-surface-color.10}',
175
- 'secondary-hover-color': '{dp-surface-color.14}',
176
- 'secondary-light-color': '{dp-surface-color.16}',
177
- 'secondary-on-color': '{grey.darken.4}',
178
-
179
- // email colors
180
- 'email-color': '{blue.darken.3}',
181
- 'email-hover-color': '{blue.darken.2}',
182
- 'email-light-color': '{blue.lighten.2}',
181
+ // Chat colors
182
+ 'chat-color': '{indigo-accent-2}',
183
+ 'chat-hover-color': '{indigo-accent-1}',
184
+ 'chat-active-color': '{indigo-lighten-3}',
185
+ 'chat-light-color': '{indigo-lighten-4}',
186
+ 'chat-on-color': '{white}',
187
+
188
+ // Email colors
189
+ 'email-color': '{blue-darken-3}',
190
+ 'email-hover-color': '{blue-darken-2}',
191
+ 'email-light-color': '{blue-lighten-2}',
183
192
  'email-on-color': '{black}',
184
193
 
185
194
  // accent colors
186
- 'accent-color': '{purple.lighten.1}',
187
- 'sub-accent-color': '{indigo.darken.3}',
195
+ 'accent-color': '{purple-lighten-1}',
196
+ 'sub-accent-color': '{indigo-darken-3}',
188
197
 
189
- // typography colors
190
- 'text-main-color': '{grey.darken.3}',
191
- 'text-disabled-color': '{grey.lighten.1}',
192
- 'text-error-color': '{error-color}',
193
- 'text-link-color': '{info-color}',
194
-
195
- 'text-on-brand-color': '{white}',
198
+ // content wrapper
199
+ 'content-wrapper-color': '{dp-surface-color-20}',
196
200
  };
197
201
 
198
202
  export default lightColor;
@@ -0,0 +1,7 @@
1
+ import colorScheme from './color-scheme/index.js';
2
+
3
+ const semantic = {
4
+ colorScheme,
5
+ };
6
+
7
+ export default semantic;