@madgex/design-system 1.10.0 → 1.11.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 CHANGED
@@ -19,7 +19,7 @@ Use the DS tokens to change DS variables.
19
19
  e.g. import the Madgex DS to your Sass file & overload variables:
20
20
 
21
21
  ```scss
22
- $mds-color-primary: #ff0000; // my primary brand colour is RED
22
+ $mds-color-brand-colour-1: #ff0000; // my primary brand colour is RED
23
23
  $mds-size-font-md: 20px; // my base font-size is 20px
24
24
 
25
25
  @import 'node_modules/@madgex/design-system/src/scss/index.scss';
@@ -1,23 +1,34 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 05 Jul 2019 12:02:02 GMT
3
+ * Generated on Wed, 10 Jul 2019 13:44:29 GMT
4
4
  */
5
5
 
6
6
  :root {
7
- --mds-color-base: #71767a; /* Base colour */
7
+ --mds-color-brand-1-base: #1b75bb;
8
+ --mds-color-brand-1-light: #2990e0;
9
+ --mds-color-brand-1-lightest: #e9f3fc;
10
+ --mds-color-brand-1-dark: #15598e;
11
+ --mds-color-brand-1-darkest: #082135;
12
+ --mds-color-brand-2-base: #f0af11;
13
+ --mds-color-brand-2-light: #f3bf41;
14
+ --mds-color-brand-2-lightest: #fdf7e7;
15
+ --mds-color-brand-2-dark: #c28d0c;
16
+ --mds-color-brand-2-darkest: #3a2a04;
17
+ --mds-color-brand-3-base: #16c1b4;
18
+ --mds-color-brand-3-light: #24e6d7;
19
+ --mds-color-brand-3-lightest: #e8fcfb;
20
+ --mds-color-brand-3-dark: #119389;
21
+ --mds-color-brand-3-darkest: #063733;
22
+ --mds-color-background-body: #f0f0f0;
23
+ --mds-color-background-site-container: #f0f0f0;
24
+ --mds-color-background-surface: #ffffff;
25
+ --mds-color-text: #222222;
26
+ --mds-color-border: #979797;
8
27
  --mds-color-white: #ffffff;
9
28
  --mds-color-black: #000000;
10
- --mds-color-primary: #2c608a;
11
- --mds-color-secondary: #d83933;
12
- --mds-color-destructive: #ff0000;
13
- --mds-color-text-primary: #000000;
14
- --mds-color-accent-warm: #fa9441;
15
- --mds-color-accent-cool: #00bde3;
16
- --mds-color-neutral-15: #262626;
17
- --mds-color-neutral-20: #323232;
18
- --mds-color-neutral-30: #4d4d4d;
19
- --mds-color-neutral-53: #888888;
20
- --mds-color-neutral-95: #f3f1f1;
29
+ --mds-color-neutral-base: #979797;
30
+ --mds-color-neutral-lightest: #f0f0f0;
31
+ --mds-color-neutral-darker: #333333;
21
32
  --mds-font-family-base: "Helvetica", Arial, sans-serif;
22
33
  --mds-font-type-canon-default-size: 28px;
23
34
  --mds-font-type-canon-default-line-height: 1.15;
@@ -99,12 +110,12 @@
99
110
  --mds-font-type-minion-md-line-height: 1.24;
100
111
  --mds-font-type-minion-lg-size: 12px;
101
112
  --mds-font-type-minion-lg-line-height: 1.34;
102
- --mds-size-baseline: 4rem;
103
- --mds-size-breakpoint-sm: 400rem;
104
- --mds-size-breakpoint-md: 600rem;
105
- --mds-size-breakpoint-lg: 1008rem;
106
- --mds-size-breakpoint-xl: 1280rem;
107
- --mds-size-border-width: 1rem;
108
- --mds-size-border-radius: 3rem;
109
- --mds-size-gutter-width: 20rem;
113
+ --mds-size-baseline: 4px;
114
+ --mds-size-breakpoint-sm: 400px;
115
+ --mds-size-breakpoint-md: 600px;
116
+ --mds-size-breakpoint-lg: 1008px;
117
+ --mds-size-breakpoint-xl: 1280px;
118
+ --mds-size-border-width: 1px;
119
+ --mds-size-border-radius: 3px;
120
+ --mds-size-gutter-width: 20px;
110
121
  }
@@ -1,235 +1,490 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Fri, 05 Jul 2019 12:02:02 GMT
3
+ * Generated on Wed, 10 Jul 2019 13:44:30 GMT
4
4
  */
5
5
 
6
6
  module.exports = {
7
7
  "color": {
8
- "base": {
9
- "value": "#71767a",
10
- "comment": "Base colour",
11
- "original": {
12
- "value": "#71767a",
13
- "comment": "Base colour"
14
- },
15
- "name": "MdsColorBase",
16
- "attributes": {
17
- "category": "color",
18
- "type": "base"
19
- },
20
- "path": [
21
- "color",
22
- "base"
23
- ]
24
- },
25
- "white": {
26
- "value": "#ffffff",
27
- "original": {
28
- "value": "#FFFFFF"
29
- },
30
- "name": "MdsColorWhite",
31
- "attributes": {
32
- "category": "color",
33
- "type": "white"
34
- },
35
- "path": [
36
- "color",
37
- "white"
38
- ]
39
- },
40
- "black": {
41
- "value": "#000000",
42
- "original": {
43
- "value": "#000000"
8
+ "brand": {
9
+ "1": {
10
+ "base": {
11
+ "value": "#1b75bb",
12
+ "original": {
13
+ "value": "#1B75BB"
14
+ },
15
+ "name": "MdsColorBrand1Base",
16
+ "attributes": {
17
+ "category": "color",
18
+ "type": "brand",
19
+ "item": "1",
20
+ "subitem": "base"
21
+ },
22
+ "path": [
23
+ "color",
24
+ "brand",
25
+ "1",
26
+ "base"
27
+ ]
28
+ },
29
+ "light": {
30
+ "value": "#2990e0",
31
+ "scssColorFunction": "lighten($mds-color-brand-1-base,10%)",
32
+ "original": {
33
+ "value": "#2990e0",
34
+ "scssColorFunction": "lighten($mds-color-brand-1-base,10%)"
35
+ },
36
+ "name": "MdsColorBrand1Light",
37
+ "attributes": {
38
+ "category": "color",
39
+ "type": "brand",
40
+ "item": "1",
41
+ "subitem": "light"
42
+ },
43
+ "path": [
44
+ "color",
45
+ "brand",
46
+ "1",
47
+ "light"
48
+ ]
49
+ },
50
+ "lightest": {
51
+ "value": "#e9f3fc",
52
+ "scssColorFunction": "lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base)))",
53
+ "original": {
54
+ "value": "#e9f3fc",
55
+ "scssColorFunction": "lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base)))"
56
+ },
57
+ "name": "MdsColorBrand1Lightest",
58
+ "attributes": {
59
+ "category": "color",
60
+ "type": "brand",
61
+ "item": "1",
62
+ "subitem": "lightest"
63
+ },
64
+ "path": [
65
+ "color",
66
+ "brand",
67
+ "1",
68
+ "lightest"
69
+ ]
70
+ },
71
+ "dark": {
72
+ "value": "#15598e",
73
+ "scssColorFunction": "darken($mds-color-brand-1-base,10%)",
74
+ "original": {
75
+ "value": "#15598e",
76
+ "scssColorFunction": "darken($mds-color-brand-1-base,10%)"
77
+ },
78
+ "name": "MdsColorBrand1Dark",
79
+ "attributes": {
80
+ "category": "color",
81
+ "type": "brand",
82
+ "item": "1",
83
+ "subitem": "dark"
84
+ },
85
+ "path": [
86
+ "color",
87
+ "brand",
88
+ "1",
89
+ "dark"
90
+ ]
91
+ },
92
+ "darkest": {
93
+ "value": "#082135",
94
+ "scssColorFunction": "darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%))",
95
+ "original": {
96
+ "value": "#082135",
97
+ "scssColorFunction": "darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%))"
98
+ },
99
+ "name": "MdsColorBrand1Darkest",
100
+ "attributes": {
101
+ "category": "color",
102
+ "type": "brand",
103
+ "item": "1",
104
+ "subitem": "darkest"
105
+ },
106
+ "path": [
107
+ "color",
108
+ "brand",
109
+ "1",
110
+ "darkest"
111
+ ]
112
+ }
44
113
  },
45
- "name": "MdsColorBlack",
46
- "attributes": {
47
- "category": "color",
48
- "type": "black"
114
+ "2": {
115
+ "base": {
116
+ "value": "#f0af11",
117
+ "original": {
118
+ "value": "#f0af11"
119
+ },
120
+ "name": "MdsColorBrand2Base",
121
+ "attributes": {
122
+ "category": "color",
123
+ "type": "brand",
124
+ "item": "2",
125
+ "subitem": "base"
126
+ },
127
+ "path": [
128
+ "color",
129
+ "brand",
130
+ "2",
131
+ "base"
132
+ ]
133
+ },
134
+ "light": {
135
+ "value": "#f3bf41",
136
+ "scssColorFunction": "lighten($mds-color-brand-2-base,10%)",
137
+ "original": {
138
+ "value": "#f3bf41",
139
+ "scssColorFunction": "lighten($mds-color-brand-2-base,10%)"
140
+ },
141
+ "name": "MdsColorBrand2Light",
142
+ "attributes": {
143
+ "category": "color",
144
+ "type": "brand",
145
+ "item": "2",
146
+ "subitem": "light"
147
+ },
148
+ "path": [
149
+ "color",
150
+ "brand",
151
+ "2",
152
+ "light"
153
+ ]
154
+ },
155
+ "lightest": {
156
+ "value": "#fdf7e7",
157
+ "scssColorFunction": "lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base)))",
158
+ "original": {
159
+ "value": "#fdf7e7",
160
+ "scssColorFunction": "lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base)))"
161
+ },
162
+ "name": "MdsColorBrand2Lightest",
163
+ "attributes": {
164
+ "category": "color",
165
+ "type": "brand",
166
+ "item": "2",
167
+ "subitem": "lightest"
168
+ },
169
+ "path": [
170
+ "color",
171
+ "brand",
172
+ "2",
173
+ "lightest"
174
+ ]
175
+ },
176
+ "dark": {
177
+ "value": "#c28d0c",
178
+ "scssColorFunction": "darken($mds-color-brand-2-base,10%)",
179
+ "original": {
180
+ "value": "#c28d0c",
181
+ "scssColorFunction": "darken($mds-color-brand-2-base,10%)"
182
+ },
183
+ "name": "MdsColorBrand2Dark",
184
+ "attributes": {
185
+ "category": "color",
186
+ "type": "brand",
187
+ "item": "2",
188
+ "subitem": "dark"
189
+ },
190
+ "path": [
191
+ "color",
192
+ "brand",
193
+ "2",
194
+ "dark"
195
+ ]
196
+ },
197
+ "darkest": {
198
+ "value": "#3a2a04",
199
+ "scssColorFunction": "darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%))",
200
+ "original": {
201
+ "value": "#3a2a04",
202
+ "scssColorFunction": "darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%))"
203
+ },
204
+ "name": "MdsColorBrand2Darkest",
205
+ "attributes": {
206
+ "category": "color",
207
+ "type": "brand",
208
+ "item": "2",
209
+ "subitem": "darkest"
210
+ },
211
+ "path": [
212
+ "color",
213
+ "brand",
214
+ "2",
215
+ "darkest"
216
+ ]
217
+ }
49
218
  },
50
- "path": [
51
- "color",
52
- "black"
53
- ]
219
+ "3": {
220
+ "base": {
221
+ "value": "#16c1b4",
222
+ "original": {
223
+ "value": "#16C1B4"
224
+ },
225
+ "name": "MdsColorBrand3Base",
226
+ "attributes": {
227
+ "category": "color",
228
+ "type": "brand",
229
+ "item": "3",
230
+ "subitem": "base"
231
+ },
232
+ "path": [
233
+ "color",
234
+ "brand",
235
+ "3",
236
+ "base"
237
+ ]
238
+ },
239
+ "light": {
240
+ "value": "#24e6d7",
241
+ "scssColorFunction": "lighten($mds-color-brand-3-base,10%)",
242
+ "original": {
243
+ "value": "#24e6d7",
244
+ "scssColorFunction": "lighten($mds-color-brand-3-base,10%)"
245
+ },
246
+ "name": "MdsColorBrand3Light",
247
+ "attributes": {
248
+ "category": "color",
249
+ "type": "brand",
250
+ "item": "3",
251
+ "subitem": "light"
252
+ },
253
+ "path": [
254
+ "color",
255
+ "brand",
256
+ "3",
257
+ "light"
258
+ ]
259
+ },
260
+ "lightest": {
261
+ "value": "#e8fcfb",
262
+ "scssColorFunction": "lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base)))",
263
+ "original": {
264
+ "value": "#e8fcfb",
265
+ "scssColorFunction": "lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base)))"
266
+ },
267
+ "name": "MdsColorBrand3Lightest",
268
+ "attributes": {
269
+ "category": "color",
270
+ "type": "brand",
271
+ "item": "3",
272
+ "subitem": "lightest"
273
+ },
274
+ "path": [
275
+ "color",
276
+ "brand",
277
+ "3",
278
+ "lightest"
279
+ ]
280
+ },
281
+ "dark": {
282
+ "value": "#119389",
283
+ "scssColorFunction": "darken($mds-color-brand-3-base,10%)",
284
+ "original": {
285
+ "value": "#119389",
286
+ "scssColorFunction": "darken($mds-color-brand-3-base,10%)"
287
+ },
288
+ "name": "MdsColorBrand3Dark",
289
+ "attributes": {
290
+ "category": "color",
291
+ "type": "brand",
292
+ "item": "3",
293
+ "subitem": "dark"
294
+ },
295
+ "path": [
296
+ "color",
297
+ "brand",
298
+ "3",
299
+ "dark"
300
+ ]
301
+ },
302
+ "darkest": {
303
+ "value": "#063733",
304
+ "scssColorFunction": "darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%))",
305
+ "original": {
306
+ "value": "#063733",
307
+ "scssColorFunction": "darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%))"
308
+ },
309
+ "name": "MdsColorBrand3Darkest",
310
+ "attributes": {
311
+ "category": "color",
312
+ "type": "brand",
313
+ "item": "3",
314
+ "subitem": "darkest"
315
+ },
316
+ "path": [
317
+ "color",
318
+ "brand",
319
+ "3",
320
+ "darkest"
321
+ ]
322
+ }
323
+ }
54
324
  },
55
- "primary": {
56
- "value": "#2c608a",
57
- "original": {
58
- "value": "#2c608a"
325
+ "background": {
326
+ "body": {
327
+ "value": "#f0f0f0",
328
+ "original": {
329
+ "value": "{color.background.site-container.value}"
330
+ },
331
+ "name": "MdsColorBackgroundBody",
332
+ "attributes": {
333
+ "category": "color",
334
+ "type": "background",
335
+ "item": "body"
336
+ },
337
+ "path": [
338
+ "color",
339
+ "background",
340
+ "body"
341
+ ]
59
342
  },
60
- "name": "MdsColorPrimary",
61
- "attributes": {
62
- "category": "color",
63
- "type": "primary"
343
+ "site-container": {
344
+ "value": "#f0f0f0",
345
+ "original": {
346
+ "value": "#f0f0f0"
347
+ },
348
+ "name": "MdsColorBackgroundSiteContainer",
349
+ "attributes": {
350
+ "category": "color",
351
+ "type": "background",
352
+ "item": "site-container"
353
+ },
354
+ "path": [
355
+ "color",
356
+ "background",
357
+ "site-container"
358
+ ]
64
359
  },
65
- "path": [
66
- "color",
67
- "primary"
68
- ]
360
+ "surface": {
361
+ "value": "#ffffff",
362
+ "original": {
363
+ "value": "#ffffff"
364
+ },
365
+ "name": "MdsColorBackgroundSurface",
366
+ "attributes": {
367
+ "category": "color",
368
+ "type": "background",
369
+ "item": "surface"
370
+ },
371
+ "path": [
372
+ "color",
373
+ "background",
374
+ "surface"
375
+ ]
376
+ }
69
377
  },
70
- "secondary": {
71
- "value": "#d83933",
378
+ "text": {
379
+ "value": "#222222",
72
380
  "original": {
73
- "value": "#d83933"
381
+ "value": "#222"
74
382
  },
75
- "name": "MdsColorSecondary",
383
+ "name": "MdsColorText",
76
384
  "attributes": {
77
385
  "category": "color",
78
- "type": "secondary"
386
+ "type": "text"
79
387
  },
80
388
  "path": [
81
389
  "color",
82
- "secondary"
390
+ "text"
83
391
  ]
84
392
  },
85
- "destructive": {
86
- "value": "#ff0000",
393
+ "border": {
394
+ "value": "#979797",
87
395
  "original": {
88
- "value": "red"
396
+ "value": "{color.neutral.base.value}"
89
397
  },
90
- "name": "MdsColorDestructive",
398
+ "name": "MdsColorBorder",
91
399
  "attributes": {
92
400
  "category": "color",
93
- "type": "destructive"
401
+ "type": "border"
94
402
  },
95
403
  "path": [
96
404
  "color",
97
- "destructive"
405
+ "border"
98
406
  ]
99
407
  },
100
- "text": {
101
- "primary": {
102
- "value": "#000000",
103
- "original": {
104
- "value": "{color.black.value}"
105
- },
106
- "name": "MdsColorTextPrimary",
107
- "attributes": {
108
- "category": "color",
109
- "type": "text",
110
- "item": "primary"
111
- },
112
- "path": [
113
- "color",
114
- "text",
115
- "primary"
116
- ]
117
- }
118
- },
119
- "accent-warm": {
120
- "value": "#fa9441",
408
+ "white": {
409
+ "value": "#ffffff",
121
410
  "original": {
122
- "value": "#fa9441"
411
+ "value": "#FFFFFF"
123
412
  },
124
- "name": "MdsColorAccentWarm",
413
+ "name": "MdsColorWhite",
125
414
  "attributes": {
126
415
  "category": "color",
127
- "type": "accent-warm"
416
+ "type": "white"
128
417
  },
129
418
  "path": [
130
419
  "color",
131
- "accent-warm"
420
+ "white"
132
421
  ]
133
422
  },
134
- "accent-cool": {
135
- "value": "#00bde3",
423
+ "black": {
424
+ "value": "#000000",
136
425
  "original": {
137
- "value": "#00bde3"
426
+ "value": "#000000"
138
427
  },
139
- "name": "MdsColorAccentCool",
428
+ "name": "MdsColorBlack",
140
429
  "attributes": {
141
430
  "category": "color",
142
- "type": "accent-cool"
431
+ "type": "black"
143
432
  },
144
433
  "path": [
145
434
  "color",
146
- "accent-cool"
435
+ "black"
147
436
  ]
148
437
  },
149
438
  "neutral": {
150
- "15": {
151
- "value": "#262626",
152
- "original": {
153
- "value": "#262626"
154
- },
155
- "name": "MdsColorNeutral15",
156
- "attributes": {
157
- "category": "color",
158
- "type": "neutral",
159
- "item": "15"
160
- },
161
- "path": [
162
- "color",
163
- "neutral",
164
- "15"
165
- ]
166
- },
167
- "20": {
168
- "value": "#323232",
169
- "original": {
170
- "value": "#323232"
171
- },
172
- "name": "MdsColorNeutral20",
173
- "attributes": {
174
- "category": "color",
175
- "type": "neutral",
176
- "item": "20"
177
- },
178
- "path": [
179
- "color",
180
- "neutral",
181
- "20"
182
- ]
183
- },
184
- "30": {
185
- "value": "#4d4d4d",
439
+ "base": {
440
+ "value": "#979797",
186
441
  "original": {
187
- "value": "#4d4d4d"
442
+ "value": "#979797"
188
443
  },
189
- "name": "MdsColorNeutral30",
444
+ "name": "MdsColorNeutralBase",
190
445
  "attributes": {
191
446
  "category": "color",
192
447
  "type": "neutral",
193
- "item": "30"
448
+ "item": "base"
194
449
  },
195
450
  "path": [
196
451
  "color",
197
452
  "neutral",
198
- "30"
453
+ "base"
199
454
  ]
200
455
  },
201
- "53": {
202
- "value": "#888888",
456
+ "lightest": {
457
+ "value": "#f0f0f0",
203
458
  "original": {
204
- "value": "#888888"
459
+ "value": "#F0F0F0"
205
460
  },
206
- "name": "MdsColorNeutral53",
461
+ "name": "MdsColorNeutralLightest",
207
462
  "attributes": {
208
463
  "category": "color",
209
464
  "type": "neutral",
210
- "item": "53"
465
+ "item": "lightest"
211
466
  },
212
467
  "path": [
213
468
  "color",
214
469
  "neutral",
215
- "53"
470
+ "lightest"
216
471
  ]
217
472
  },
218
- "95": {
219
- "value": "#f3f1f1",
473
+ "darker": {
474
+ "value": "#333333",
220
475
  "original": {
221
- "value": "#f3f1f1"
476
+ "value": "#333333"
222
477
  },
223
- "name": "MdsColorNeutral95",
478
+ "name": "MdsColorNeutralDarker",
224
479
  "attributes": {
225
480
  "category": "color",
226
481
  "type": "neutral",
227
- "item": "95"
482
+ "item": "darker"
228
483
  },
229
484
  "path": [
230
485
  "color",
231
486
  "neutral",
232
- "95"
487
+ "darker"
233
488
  ]
234
489
  }
235
490
  }
@@ -1,23 +1,34 @@
1
1
 
2
2
  /*
3
3
  Do not edit directly
4
- Generated on Fri, 05 Jul 2019 12:02:02 GMT
4
+ Generated on Wed, 10 Jul 2019 13:44:30 GMT
5
5
  */
6
6
 
7
- $mds-color-base: #71767a !default; // Base colour
7
+ $mds-color-brand-1-base: #1b75bb !default;
8
+ $mds-color-brand-1-light: lighten($mds-color-brand-1-base,10%) !default;
9
+ $mds-color-brand-1-lightest: lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base))) !default;
10
+ $mds-color-brand-1-dark: darken($mds-color-brand-1-base,10%) !default;
11
+ $mds-color-brand-1-darkest: darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%)) !default;
12
+ $mds-color-brand-2-base: #f0af11 !default;
13
+ $mds-color-brand-2-light: lighten($mds-color-brand-2-base,10%) !default;
14
+ $mds-color-brand-2-lightest: lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base))) !default;
15
+ $mds-color-brand-2-dark: darken($mds-color-brand-2-base,10%) !default;
16
+ $mds-color-brand-2-darkest: darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%)) !default;
17
+ $mds-color-brand-3-base: #16c1b4 !default;
18
+ $mds-color-brand-3-light: lighten($mds-color-brand-3-base,10%) !default;
19
+ $mds-color-brand-3-lightest: lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base))) !default;
20
+ $mds-color-brand-3-dark: darken($mds-color-brand-3-base,10%) !default;
21
+ $mds-color-brand-3-darkest: darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%)) !default;
22
+ $mds-color-background-body: #f0f0f0 !default;
23
+ $mds-color-background-site-container: #f0f0f0 !default;
24
+ $mds-color-background-surface: #ffffff !default;
25
+ $mds-color-text: #222222 !default;
26
+ $mds-color-border: #979797 !default;
8
27
  $mds-color-white: #ffffff !default;
9
28
  $mds-color-black: #000000 !default;
10
- $mds-color-primary: #2c608a !default;
11
- $mds-color-secondary: #d83933 !default;
12
- $mds-color-destructive: #ff0000 !default;
13
- $mds-color-text-primary: #000000 !default;
14
- $mds-color-accent-warm: #fa9441 !default;
15
- $mds-color-accent-cool: #00bde3 !default;
16
- $mds-color-neutral-15: #262626 !default;
17
- $mds-color-neutral-20: #323232 !default;
18
- $mds-color-neutral-30: #4d4d4d !default;
19
- $mds-color-neutral-53: #888888 !default;
20
- $mds-color-neutral-95: #f3f1f1 !default;
29
+ $mds-color-neutral-base: #979797 !default;
30
+ $mds-color-neutral-lightest: #f0f0f0 !default;
31
+ $mds-color-neutral-darker: #333333 !default;
21
32
  $mds-font-family-base: "Helvetica", Arial, sans-serif !default;
22
33
  $mds-font-type-canon-default-size: 28px !default;
23
34
  $mds-font-type-canon-default-line-height: 1.15 !default;
@@ -110,23 +121,42 @@ $mds-size-gutter-width: 20px !default;
110
121
 
111
122
  $tokens: (
112
123
  'color': (
113
- 'base': $mds-color-base,
124
+ 'brand': (
125
+ '1': (
126
+ 'base': $mds-color-brand-1-base,
127
+ 'light': $mds-color-brand-1-light,
128
+ 'lightest': $mds-color-brand-1-lightest,
129
+ 'dark': $mds-color-brand-1-dark,
130
+ 'darkest': $mds-color-brand-1-darkest
131
+ ),
132
+ '2': (
133
+ 'base': $mds-color-brand-2-base,
134
+ 'light': $mds-color-brand-2-light,
135
+ 'lightest': $mds-color-brand-2-lightest,
136
+ 'dark': $mds-color-brand-2-dark,
137
+ 'darkest': $mds-color-brand-2-darkest
138
+ ),
139
+ '3': (
140
+ 'base': $mds-color-brand-3-base,
141
+ 'light': $mds-color-brand-3-light,
142
+ 'lightest': $mds-color-brand-3-lightest,
143
+ 'dark': $mds-color-brand-3-dark,
144
+ 'darkest': $mds-color-brand-3-darkest
145
+ )
146
+ ),
147
+ 'background': (
148
+ 'body': $mds-color-background-body,
149
+ 'site-container': $mds-color-background-site-container,
150
+ 'surface': $mds-color-background-surface
151
+ ),
152
+ 'text': $mds-color-text,
153
+ 'border': $mds-color-border,
114
154
  'white': $mds-color-white,
115
155
  'black': $mds-color-black,
116
- 'primary': $mds-color-primary,
117
- 'secondary': $mds-color-secondary,
118
- 'destructive': $mds-color-destructive,
119
- 'text': (
120
- 'primary': $mds-color-text-primary
121
- ),
122
- 'accent-warm': $mds-color-accent-warm,
123
- 'accent-cool': $mds-color-accent-cool,
124
156
  'neutral': (
125
- '15': $mds-color-neutral-15,
126
- '20': $mds-color-neutral-20,
127
- '30': $mds-color-neutral-30,
128
- '53': $mds-color-neutral-53,
129
- '95': $mds-color-neutral-95
157
+ 'base': $mds-color-neutral-base,
158
+ 'lightest': $mds-color-neutral-lightest,
159
+ 'darker': $mds-color-neutral-darker
130
160
  )
131
161
  ),
132
162
  'font': (
@@ -1,7 +1,5 @@
1
1
  {
2
2
  "compatibleVersion": "1.0",
3
3
  "pluginVersion": "1.1",
4
- "colors": [
5
- "#71767a"
6
- ]
4
+ "colors": []
7
5
  }
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  Do not edit directly
3
- Generated on Fri, 05 Jul 2019 12:02:02 GMT
3
+ Generated on Wed, 10 Jul 2019 13:44:30 GMT
4
4
  */
5
5
  /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
6
6
  /* Document
@@ -3938,7 +3938,7 @@ body {
3938
3938
  border: 1px solid transparent;
3939
3939
  color: #ffffff;
3940
3940
  padding: 8px 12px;
3941
- background-color: #2c608a;
3941
+ background-color: #1b75bb;
3942
3942
  font-size: 100%;
3943
3943
  width: 100%;
3944
3944
  display: inline-block;
@@ -3958,15 +3958,15 @@ body {
3958
3958
 
3959
3959
  .mds-card {
3960
3960
  padding: 12px 16px;
3961
- border: 1px solid #71767a;
3961
+ border: 1px solid #979797;
3962
3962
  }
3963
3963
 
3964
3964
  .mds-card--highlighted {
3965
- background: #f3f1f1;
3965
+ background: #f0f0f0;
3966
3966
  }
3967
3967
 
3968
3968
  .mds-section-title {
3969
- border-bottom: 1px solid #71767a;
3969
+ border-bottom: 1px solid #979797;
3970
3970
  }
3971
3971
 
3972
3972
  .js .mds-tabs__panel--hidden {
@@ -3978,7 +3978,7 @@ body {
3978
3978
  }
3979
3979
 
3980
3980
  .js .mds-tabs__list {
3981
- border-bottom: 1px solid #71767a;
3981
+ border-bottom: 1px solid #979797;
3982
3982
  margin-bottom: 0;
3983
3983
  }
3984
3984
 
@@ -3993,12 +3993,12 @@ body {
3993
3993
 
3994
3994
  .js .mds-tabs__tab {
3995
3995
  text-decoration: none;
3996
- background-color: #f3f1f1;
3996
+ background-color: #f0f0f0;
3997
3997
  margin-right: 4px;
3998
3998
  margin-bottom: 0;
3999
3999
  padding: 8px 12px;
4000
4000
  border-radius: 3px 3px 0 0;
4001
- border: 1px solid #71767a;
4001
+ border: 1px solid #979797;
4002
4002
  border-bottom: 0;
4003
4003
  }
4004
4004
 
@@ -4010,6 +4010,6 @@ body {
4010
4010
 
4011
4011
  .js .mds-tabs__panel {
4012
4012
  padding: 12px 16px;
4013
- border: 1px solid #71767a;
4013
+ border: 1px solid #979797;
4014
4014
  border-top: 0;
4015
4015
  }
@@ -32,14 +32,22 @@ Your context and coding style determine how you access MDS color tokens in code.
32
32
  {% endmacro %}
33
33
 
34
34
 
35
- <div class="colors">
36
- {% for key, item in tokens.color %}
35
+
36
+ {% for key, item in tokens.color %}
37
+ <div class="colors">
38
+ <h2>{{ key }}</h2>
37
39
  {% if not 'value' in item and item | length %}
38
40
  {% for subkey, subitem in item %}
39
- {{ swatch(subitem) }}
41
+ {% if not 'value' in subitem and subitem | length %}
42
+ {% for subsubkey, subsubitem in subitem %}
43
+ {{ swatch(subsubitem) }}
44
+ {% endfor %}
45
+ {% else %}
46
+ {{ swatch(subitem) }}
47
+ {% endif %}
40
48
  {% endfor %}
41
49
  {% else %}
42
50
  {{ swatch(item) }}
43
51
  {% endif %}
44
- {% endfor %}
45
- </div>
52
+ </div>
53
+ {% endfor %}
@@ -1,23 +1,19 @@
1
1
  .colors {
2
2
  width: 100%;
3
- display: flex;
4
- flex-wrap: wrap;
5
3
  }
6
-
4
+ .colors h2 {
5
+ margin-bottom: 30px;
6
+ text-transform: capitalize;
7
+ }
7
8
  .colors .color {
8
- flex: 1 1 calc(33% - 10px);
9
9
  box-sizing: border-box;
10
- padding: 0;
11
- margin: 0 10px 0 0;
12
- padding: 16px;
10
+ padding-bottom: 20px;
13
11
  -webkit-font-smoothing: antialiased;
14
12
  -moz-osx-font-smoothing: grayscale;
15
13
  margin-bottom: 24px;
16
- box-shadow: 0 0 0 1px rgba(63, 63, 68, 0.05),
17
- 0 1px 3px 0 rgba(63, 63, 68, 0.15);
14
+ border-bottom: 1px solid #979797;
18
15
  font-size: 13px;
19
16
  color: #001123;
20
- border-radius: 3px;
21
17
  overflow: hidden;
22
18
  text-align: left;
23
19
  }
@@ -31,13 +27,11 @@
31
27
  }
32
28
 
33
29
  .swatch {
34
- margin-bottom: 16px;
35
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
36
- height: 128px;
37
- margin-left: -16px;
38
- margin-top: -16px;
39
- width: calc(100% + 48px);
40
- float: left;
30
+ width: 80px;
31
+ height: 80px;
32
+ float: right;
33
+ border: 1px solid #979797;
34
+ margin-left: 20px;
41
35
  }
42
36
 
43
37
  .grid-example span {
@@ -1,6 +1,17 @@
1
1
  const path = require('path');
2
2
  const StyleDictionary = require('style-dictionary').extend(path.resolve('./src/tokens/_config.js'));
3
3
 
4
+ StyleDictionary.registerTransform({
5
+ name: 'color/scssColorFunctions',
6
+ type: 'value',
7
+ matcher(prop) {
8
+ return prop.attributes.category === 'color' && prop.scssColorFunction;
9
+ },
10
+ transformer(prop) {
11
+ return prop.scssColorFunction;
12
+ },
13
+ });
14
+
4
15
  function tokens(cb) {
5
16
  StyleDictionary.buildAllPlatforms();
6
17
  cb();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/design-system",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "scripts": {
5
5
  "clean": "rimraf dist public tokens/build",
6
6
  "commit": "commit",
@@ -4,11 +4,10 @@
4
4
  vertical-align: middle;
5
5
  white-space: nowrap;
6
6
  -webkit-appearance: none;
7
-
8
7
  border: 1px solid transparent;
9
8
  color: $mds-color-white;
10
9
  padding: ($mds-size-baseline * 2) ($mds-size-baseline * 3);
11
- background-color: $mds-color-primary;
10
+ background-color: $mds-color-brand-1-base;
12
11
  font-size: 100%;
13
12
  width: 100%;
14
13
  display: inline-block;
@@ -1,7 +1,7 @@
1
1
  .mds-card {
2
2
  padding: ($mds-size-baseline * 3) ($mds-size-baseline * 4);
3
- border: $mds-size-border-width solid $mds-color-base;
3
+ border: $mds-size-border-width solid $mds-color-border;
4
4
  }
5
5
  .mds-card--highlighted {
6
- background: $mds-color-neutral-95;
6
+ background: $mds-color-neutral-lightest;
7
7
  }
@@ -1,3 +1,3 @@
1
1
  .mds-section-title {
2
- border-bottom: $mds-size-border-width solid $mds-color-base;
2
+ border-bottom: $mds-size-border-width solid $mds-color-border;
3
3
  }
@@ -6,7 +6,7 @@
6
6
  margin-bottom: $mds-size-baseline * 2;
7
7
 
8
8
  .js & {
9
- border-bottom: $mds-size-border-width solid $mds-color-base;
9
+ border-bottom: $mds-size-border-width solid $mds-color-border;
10
10
  margin-bottom: 0;
11
11
  }
12
12
  }
@@ -21,12 +21,12 @@
21
21
 
22
22
  .js & {
23
23
  text-decoration: none;
24
- background-color: $mds-color-neutral-95;
24
+ background-color: $mds-color-neutral-lightest;
25
25
  margin-right: $mds-size-baseline;
26
26
  margin-bottom: 0;
27
27
  padding: ($mds-size-baseline * 2) ($mds-size-baseline * 3);
28
28
  border-radius: $mds-size-border-radius $mds-size-border-radius 0 0;
29
- border: $mds-size-border-width solid $mds-color-base;
29
+ border: $mds-size-border-width solid $mds-color-border;
30
30
  border-bottom: 0;
31
31
  }
32
32
  }
@@ -39,6 +39,6 @@
39
39
 
40
40
  .js .mds-tabs__panel{
41
41
  padding: ($mds-size-baseline * 3) ($mds-size-baseline * 4);
42
- border: $mds-size-border-width solid $mds-color-base;
42
+ border: $mds-size-border-width solid $mds-color-border;
43
43
  border-top: 0;
44
44
  }
@@ -5,18 +5,6 @@
5
5
  @import 'utilities/_index';
6
6
  @import 'helpers/_index';
7
7
 
8
- // body {
9
- // color: $mds-color-base;
10
- // font-family: $mds-font-family-base;
11
-
12
- // @include mq($from: mobile) {
13
- // background-color: $mds-color-primary;
14
- // }
15
- // @include mq($until: tablet) {
16
- // background-color: $mds-color-secondary;
17
- // }
18
- // }
19
-
20
8
  *,
21
9
  *::before,
22
10
  *::after {
@@ -2,7 +2,8 @@ const config = {
2
2
  source: ['src/tokens/**/*.json'],
3
3
  platforms: {
4
4
  'css-variables': {
5
- transformGroup: 'css',
5
+ // transformGroup: 'css',
6
+ transforms: ['attribute/cti', 'name/cti/kebab', 'time/seconds', 'content/icon', 'color/css'],
6
7
  buildPath: 'dist/_tokens/css/',
7
8
  prefix: 'mds',
8
9
  files: [
@@ -13,8 +14,9 @@ const config = {
13
14
  ],
14
15
  },
15
16
  'scss-variables': {
16
- transformGroup: 'web',
17
+ // transformGroup: 'web',
17
18
  // transforms: ['size/px'],
19
+ transforms: ['attribute/cti', 'name/cti/kebab', 'color/css', 'color/scssColorFunctions'],
18
20
  buildPath: 'dist/_tokens/scss/',
19
21
  prefix: 'mds',
20
22
  files: [
@@ -1,25 +1,77 @@
1
1
  {
2
2
  "color": {
3
- "base": {
4
- "value": "#71767a",
5
- "comment": "Base colour"
3
+ "brand": {
4
+ "1" : {
5
+ "base": { "value" : "#1B75BB" },
6
+ "light": {
7
+ "value" : "#2990e0",
8
+ "scssColorFunction" : "lighten($mds-color-brand-1-base,10%)"
9
+ },
10
+ "lightest" : {
11
+ "value" : "#e9f3fc",
12
+ "scssColorFunction" : "lighten($mds-color-brand-1-base,(95% - lightness($mds-color-brand-1-base)))"
13
+ },
14
+ "dark" : {
15
+ "value" : "#15598e",
16
+ "scssColorFunction" : "darken($mds-color-brand-1-base,10%)"
17
+ },
18
+ "darkest" : {
19
+ "value" : "#082135",
20
+ "scssColorFunction" : "darken($mds-color-brand-1-base,(lightness($mds-color-brand-1-base) - 12%))"
21
+ }
22
+ },
23
+ "2" : {
24
+ "base": { "value" : "#f0af11" },
25
+ "light": {
26
+ "value" : "#f3bf41",
27
+ "scssColorFunction" : "lighten($mds-color-brand-2-base,10%)"
28
+ },
29
+ "lightest" : {
30
+ "value" : "#fdf7e7",
31
+ "scssColorFunction" : "lighten($mds-color-brand-2-base,(95% - lightness($mds-color-brand-2-base)))"
32
+ },
33
+ "dark" : {
34
+ "value" : "#c28d0c",
35
+ "scssColorFunction" : "darken($mds-color-brand-2-base,10%)"
36
+ },
37
+ "darkest" : {
38
+ "value" : "#3a2a04",
39
+ "scssColorFunction" : "darken($mds-color-brand-2-base,(lightness($mds-color-brand-2-base) - 12%))"
40
+ }
41
+ },
42
+ "3" : {
43
+ "base": { "value" : "#16C1B4" },
44
+ "light": {
45
+ "value" : "#24e6d7",
46
+ "scssColorFunction" : "lighten($mds-color-brand-3-base,10%)"
47
+ },
48
+ "lightest" : {
49
+ "value" : "#e8fcfb",
50
+ "scssColorFunction" : "lighten($mds-color-brand-3-base,(95% - lightness($mds-color-brand-3-base)))"
51
+ },
52
+ "dark" : {
53
+ "value" : "#119389",
54
+ "scssColorFunction" : "darken($mds-color-brand-3-base,10%)"
55
+ },
56
+ "darkest" : {
57
+ "value" : "#063733",
58
+ "scssColorFunction" : "darken($mds-color-brand-3-base,(lightness($mds-color-brand-3-base) - 12%))"
59
+ }
60
+ }
6
61
  },
62
+ "background" : {
63
+ "body" : { "value" : "{color.background.site-container.value}" },
64
+ "site-container" : { "value" : "#f0f0f0" },
65
+ "surface" : { "value" : "#ffffff" }
66
+ },
67
+ "text" : { "value" : "#222" },
68
+ "border" : { "value" : "{color.neutral.base.value}" },
7
69
  "white": { "value": "#FFFFFF" },
8
70
  "black": { "value": "#000000" },
9
- "primary": { "value": "#2c608a" },
10
- "secondary": { "value": "#d83933" },
11
- "destructive": { "value": "red" },
12
- "text": {
13
- "primary": { "value": "{color.black.value}" }
14
- },
15
- "accent-warm": { "value": "#fa9441" },
16
- "accent-cool": { "value": "#00bde3" },
17
71
  "neutral": {
18
- "15": { "value": "#262626" },
19
- "20": { "value": "#323232" },
20
- "30": { "value": "#4d4d4d" },
21
- "53": { "value": "#888888" },
22
- "95": { "value": "#f3f1f1" }
72
+ "base": { "value": "#979797" },
73
+ "lightest": { "value": "#F0F0F0" },
74
+ "darker": { "value": "#333333" }
23
75
  }
24
76
  }
25
77
  }
@@ -1,29 +1,29 @@
1
- <h2>Canon:</h2>
1
+ <h4>Canon (Usage: H1):</h4>
2
2
  <p class="mds-font-canon">The quick brown fox jumps over the lazy dog</p>
3
3
 
4
- <h2>Trafalgar:</h2>
4
+ <h4>Trafalgar (Usage: h4, section header):</h4>
5
5
  <p class="mds-font-trafalgar">The quick brown fox jumps over the lazy dog</p>
6
6
 
7
- <h2>Paragon:</h2>
7
+ <h4>Paragon (Usage: Primary headline):</h4>
8
8
  <p class="mds-font-paragon">The quick brown fox jumps over the lazy dog</p>
9
9
 
10
- <h2>Double Pica:</h2>
10
+ <h4>Double Pica (Usage: Sub header):</h4>
11
11
  <p class="mds-font-double-pica">The quick brown fox jumps over the lazy dog</p>
12
12
 
13
- <h2>Great Primer:</h2>
13
+ <h4>Great Primer (Usage: Headline title or subtitle):</h4>
14
14
  <p class="mds-font-great-primer">The quick brown fox jumps over the lazy dog</p>
15
15
 
16
- <h2>Body copy:</h2>
16
+ <h4>Body copy (Usage: Body copy):</h4>
17
17
  <p class="mds-font-body-copy">The quick brown fox jumps over the lazy dog</p>
18
18
 
19
- <h2>Pica:</h2>
19
+ <h4>Pica (Usage: Index links, titles or headlines):</h4>
20
20
  <p class="mds-font-pica">The quick brown fox jumps over the lazy dog</p>
21
21
 
22
- <h2>Long Primer:</h2>
22
+ <h4>Long Primer (Usage: Index body copy and image captions):</h4>
23
23
  <p class="mds-font-long-primer">The quick brown fox jumps over the lazy dog</p>
24
24
 
25
- <h2>Brevier:</h2>
25
+ <h4>Brevier (Usage: Time stamps and bylines):</h4>
26
26
  <p class="mds-font-brevier">The quick brown fox jumps over the lazy dog</p>
27
27
 
28
- <h2>Minion:</h2>
28
+ <h4>Minion (Usage: Small header capitals):</h4>
29
29
  <p class="mds-font-minion">The quick brown fox jumps over the lazy dog</p>