@patternfly/design-tokens 1.0.1 → 1.0.3

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.
@@ -1,7 +1,7 @@
1
- /**
2
- * Do not edit directly
3
- * Generated on Wed, 14 Feb 2024 00:59:20 GMT
4
- */
1
+ // /**
2
+ // * Do not edit directly
3
+ // * Generated on Thu, 21 Mar 2024 17:46:16 GMT
4
+ // */
5
5
 
6
6
  :root {
7
7
  --pf-t--color--red--70: #5f0000;
package/build.js CHANGED
@@ -12,6 +12,7 @@ StyleDictionary.registerTransform({
12
12
  token.attributes.type === 'spacer' ||
13
13
  token.attributes.type === 'border' ||
14
14
  token.attributes.type === 'icon' ||
15
+ token.attributes.type === 'box-shadow' ||
15
16
  token.attributes.type === 'font',
16
17
  transformer: (token) => `${token.value}px`
17
18
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/design-tokens",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Define the design tokens for patternfly design system and component library",
5
5
  "main": "dist/esm/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -31,17 +31,17 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@patternfly/react-core": "^6.0.0-alpha.5"
34
+ "@patternfly/react-core": "^6.0.0-alpha.36"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^16.8 || ^17 || ^18",
38
38
  "react-dom": "^18.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@patternfly/documentation-framework": "6.0.0-alpha.10",
42
- "@patternfly/patternfly": "6.0.0-alpha.38",
43
- "@patternfly/react-code-editor": "6.0.0-alpha.5",
44
- "@patternfly/react-table": "6.0.0-alpha.5",
41
+ "@patternfly/documentation-framework": "6.0.0-alpha.12",
42
+ "@patternfly/patternfly": "6.0.0-alpha.91",
43
+ "@patternfly/react-code-editor": "6.0.0-alpha.36",
44
+ "@patternfly/react-table": "6.0.0-alpha.36",
45
45
  "rimraf": "^2.6.2",
46
46
  "@patternfly/patternfly-a11y": "^4.3.1",
47
47
  "react-monaco-editor": "^0.51.0",
@@ -6,7 +6,7 @@
6
6
  "color": {
7
7
  "100": {
8
8
  "type": "color",
9
- "value": "{color.black}"
9
+ "value": "{color.gray.95}"
10
10
  },
11
11
  "200": {
12
12
  "type": "color",
@@ -24,6 +24,10 @@
24
24
  "type": "color",
25
25
  "value": "rgba(21, 21, 21, 0.8000)"
26
26
  },
27
+ "600": {
28
+ "type": "color",
29
+ "value": "rgba(199, 199, 199, 0.1500)"
30
+ },
27
31
  "highlight": {
28
32
  "100": {
29
33
  "type": "color",
@@ -127,11 +131,11 @@
127
131
  "custom": {
128
132
  "100": {
129
133
  "type": "color",
130
- "value": "{color.teal.30}"
134
+ "value": "{color.teal.40}"
131
135
  },
132
136
  "200": {
133
137
  "type": "color",
134
- "value": "{color.teal.20}"
138
+ "value": "{color.teal.30}"
135
139
  }
136
140
  }
137
141
  },
@@ -284,7 +288,7 @@
284
288
  },
285
289
  "200": {
286
290
  "type": "color",
287
- "value": "{color.gray.40}"
291
+ "value": "{color.gray.30}"
288
292
  },
289
293
  "300": {
290
294
  "type": "color",
@@ -325,6 +329,14 @@
325
329
  "value": "{color.gray.90}"
326
330
  }
327
331
  }
332
+ },
333
+ "box-shadow": {
334
+ "color": {
335
+ "100": {
336
+ "type": "color",
337
+ "value": "rgba(0, 0, 0, 0.5000)"
338
+ }
339
+ }
328
340
  }
329
341
  }
330
342
  }
@@ -38,11 +38,11 @@
38
38
  },
39
39
  "hover": {
40
40
  "type": "color",
41
- "value": "{global.background.color.action.plain.hover}"
41
+ "value": "{global.dark.background.color.200}"
42
42
  },
43
43
  "clicked": {
44
44
  "type": "color",
45
- "value": "{global.background.color.action.plain.hover}"
45
+ "value": "{global.dark.background.color.200}"
46
46
  }
47
47
  },
48
48
  "action": {
@@ -53,11 +53,11 @@
53
53
  },
54
54
  "hover": {
55
55
  "type": "color",
56
- "value": "{global.dark.background.color.200}"
56
+ "value": "{global.dark.background.color.600}"
57
57
  },
58
58
  "clicked": {
59
59
  "type": "color",
60
- "value": "{global.dark.background.color.200}"
60
+ "value": "{global.dark.background.color.600}"
61
61
  },
62
62
  "alt": {
63
63
  "hover": {
@@ -137,20 +137,6 @@
137
137
  }
138
138
  },
139
139
  "status": {
140
- "success": {
141
- "default": {
142
- "type": "color",
143
- "value": "{global.dark.color.status.success.100}"
144
- },
145
- "hover": {
146
- "type": "color",
147
- "value": "{global.dark.color.status.success.200}"
148
- },
149
- "clicked": {
150
- "type": "color",
151
- "value": "{global.dark.color.status.success.200}"
152
- }
153
- },
154
140
  "unread": {
155
141
  "default": {
156
142
  "default": {
@@ -171,16 +157,30 @@
171
157
  "type": "color",
172
158
  "value": "{global.color.status.danger.default}"
173
159
  },
174
- "clicked": {
175
- "type": "color",
176
- "value": "{global.color.status.danger.clicked}"
177
- },
178
160
  "hover": {
179
161
  "type": "color",
180
162
  "value": "{global.color.status.danger.hover}"
163
+ },
164
+ "clicked": {
165
+ "type": "color",
166
+ "value": "{global.color.status.danger.clicked}"
181
167
  }
182
168
  }
183
169
  },
170
+ "success": {
171
+ "default": {
172
+ "type": "color",
173
+ "value": "{global.dark.color.status.success.100}"
174
+ },
175
+ "hover": {
176
+ "type": "color",
177
+ "value": "{global.dark.color.status.success.200}"
178
+ },
179
+ "clicked": {
180
+ "type": "color",
181
+ "value": "{global.dark.color.status.success.200}"
182
+ }
183
+ },
184
184
  "warning": {
185
185
  "default": {
186
186
  "type": "color",
@@ -851,6 +851,10 @@
851
851
  "type": "color",
852
852
  "value": "{global.background.color.primary.default}"
853
853
  },
854
+ "on-secondary": {
855
+ "type": "color",
856
+ "value": "{global.dark.border.color.200}"
857
+ },
854
858
  "nonstatus": {
855
859
  "red": {
856
860
  "default": {
@@ -1354,6 +1358,22 @@
1354
1358
  }
1355
1359
  }
1356
1360
  }
1361
+ },
1362
+ "box-shadow": {
1363
+ "color": {
1364
+ "sm": {
1365
+ "type": "color",
1366
+ "value": "{global.dark.box-shadow.color.100}"
1367
+ },
1368
+ "md": {
1369
+ "type": "color",
1370
+ "value": "{global.dark.box-shadow.color.100}"
1371
+ },
1372
+ "lg": {
1373
+ "type": "color",
1374
+ "value": "{global.dark.box-shadow.color.100}"
1375
+ }
1376
+ }
1357
1377
  }
1358
1378
  }
1359
1379
  }
@@ -166,6 +166,88 @@
166
166
  "type": "number",
167
167
  "value": 600
168
168
  }
169
+ },
170
+ "box-shadow": {
171
+ "X": {
172
+ "100": {
173
+ "type": "number",
174
+ "value": -8
175
+ },
176
+ "200": {
177
+ "type": "number",
178
+ "value": -4
179
+ },
180
+ "300": {
181
+ "type": "number",
182
+ "value": -1
183
+ },
184
+ "400": {
185
+ "type": "number",
186
+ "value": 0
187
+ },
188
+ "500": {
189
+ "type": "number",
190
+ "value": 1
191
+ },
192
+ "600": {
193
+ "type": "number",
194
+ "value": 4
195
+ },
196
+ "700": {
197
+ "type": "number",
198
+ "value": 8
199
+ }
200
+ },
201
+ "Y": {
202
+ "100": {
203
+ "type": "number",
204
+ "value": -8
205
+ },
206
+ "200": {
207
+ "type": "number",
208
+ "value": -4
209
+ },
210
+ "300": {
211
+ "type": "number",
212
+ "value": -1
213
+ },
214
+ "400": {
215
+ "type": "number",
216
+ "value": 0
217
+ },
218
+ "500": {
219
+ "type": "number",
220
+ "value": 1
221
+ },
222
+ "600": {
223
+ "type": "number",
224
+ "value": 4
225
+ },
226
+ "700": {
227
+ "type": "number",
228
+ "value": 8
229
+ }
230
+ },
231
+ "blur": {
232
+ "100": {
233
+ "type": "number",
234
+ "value": 2
235
+ },
236
+ "200": {
237
+ "type": "number",
238
+ "value": 8
239
+ },
240
+ "300": {
241
+ "type": "number",
242
+ "value": 24
243
+ }
244
+ },
245
+ "spread": {
246
+ "100": {
247
+ "type": "number",
248
+ "value": 0
249
+ }
250
+ }
169
251
  }
170
252
  }
171
253
  }
@@ -23,6 +23,10 @@
23
23
  "type": "color",
24
24
  "value": "rgba(21, 21, 21, 0.2000)"
25
25
  },
26
+ "600": {
27
+ "type": "color",
28
+ "value": "rgba(199, 199, 199, 0.2500)"
29
+ },
26
30
  "highlight": {
27
31
  "100": {
28
32
  "type": "color",
@@ -78,11 +82,11 @@
78
82
  "success": {
79
83
  "100": {
80
84
  "type": "color",
81
- "value": "{color.green.50}"
85
+ "value": "{color.green.60}"
82
86
  },
83
87
  "200": {
84
88
  "type": "color",
85
- "value": "{color.green.60}"
89
+ "value": "{color.green.70}"
86
90
  }
87
91
  },
88
92
  "warning": {
@@ -102,11 +106,11 @@
102
106
  "danger": {
103
107
  "100": {
104
108
  "type": "color",
105
- "value": "{color.red-orange.50}"
109
+ "value": "{color.red-orange.60}"
106
110
  },
107
111
  "200": {
108
112
  "type": "color",
109
- "value": "{color.red-orange.60}"
113
+ "value": "{color.red-orange.70}"
110
114
  },
111
115
  "300": {
112
116
  "type": "color",
@@ -126,11 +130,11 @@
126
130
  "custom": {
127
131
  "100": {
128
132
  "type": "color",
129
- "value": "{color.teal.50}"
133
+ "value": "{color.teal.60}"
130
134
  },
131
135
  "200": {
132
136
  "type": "color",
133
- "value": "{color.teal.60}"
137
+ "value": "{color.teal.70}"
134
138
  }
135
139
  }
136
140
  },
@@ -272,6 +276,10 @@
272
276
  "200": {
273
277
  "type": "color",
274
278
  "value": "{color.gray.40}"
279
+ },
280
+ "300": {
281
+ "type": "color",
282
+ "value": "{color.gray.50}"
275
283
  }
276
284
  }
277
285
  },
@@ -283,7 +291,7 @@
283
291
  },
284
292
  "200": {
285
293
  "type": "color",
286
- "value": "{color.gray.50}"
294
+ "value": "{color.gray.60}"
287
295
  },
288
296
  "300": {
289
297
  "type": "color",
@@ -324,6 +332,18 @@
324
332
  "value": "{color.white}"
325
333
  }
326
334
  }
335
+ },
336
+ "box-shadow": {
337
+ "color": {
338
+ "100": {
339
+ "type": "color",
340
+ "value": "rgba(0, 0, 0, 0.1600)"
341
+ },
342
+ "200": {
343
+ "type": "color",
344
+ "value": "rgba(0, 0, 0, 0.1200)"
345
+ }
346
+ }
327
347
  }
328
348
  }
329
349
  }
@@ -441,7 +441,7 @@
441
441
  }
442
442
  }
443
443
  },
444
- "Multi-colored-ordered": {
444
+ "multi-colored-ordered": {
445
445
  "colorscale": {
446
446
  "100": {
447
447
  "type": "color",
@@ -29,6 +29,10 @@
29
29
  }
30
30
  },
31
31
  "width": {
32
+ "regular": {
33
+ "type": "number",
34
+ "value": "{global.border.width.100}"
35
+ },
32
36
  "divider": {
33
37
  "default": {
34
38
  "type": "number",
@@ -43,10 +47,6 @@
43
47
  "value": "{global.border.width.100}"
44
48
  }
45
49
  },
46
- "regular": {
47
- "type": "number",
48
- "value": "{global.border.width.100}"
49
- },
50
50
  "strong": {
51
51
  "type": "number",
52
52
  "value": "{global.border.width.200}"
@@ -197,21 +197,11 @@
197
197
  "type": "number",
198
198
  "value": "{global.icon.size.400}"
199
199
  },
200
+ "3xl": {
201
+ "type": "number",
202
+ "value": "{global.icon.size.500}"
203
+ },
200
204
  "font": {
201
- "body": {
202
- "sm": {
203
- "type": "number",
204
- "value": "{global.font.size.body.sm}"
205
- },
206
- "default": {
207
- "type": "number",
208
- "value": "{global.font.size.body.default}"
209
- },
210
- "lg": {
211
- "type": "number",
212
- "value": "{global.font.size.body.lg}"
213
- }
214
- },
215
205
  "heading": {
216
206
  "h1": {
217
207
  "type": "number",
@@ -238,6 +228,20 @@
238
228
  "value": "{global.font.size.heading.h6}"
239
229
  }
240
230
  },
231
+ "body": {
232
+ "sm": {
233
+ "type": "number",
234
+ "value": "{global.font.size.body.sm}"
235
+ },
236
+ "default": {
237
+ "type": "number",
238
+ "value": "{global.font.size.body.default}"
239
+ },
240
+ "lg": {
241
+ "type": "number",
242
+ "value": "{global.font.size.body.lg}"
243
+ }
244
+ },
241
245
  "xs": {
242
246
  "type": "number",
243
247
  "value": "{global.font.size.xs}"
@@ -270,10 +274,6 @@
270
274
  "type": "number",
271
275
  "value": "{global.font.size.4xl}"
272
276
  }
273
- },
274
- "3xl": {
275
- "type": "number",
276
- "value": "{global.icon.size.500}"
277
277
  }
278
278
  }
279
279
  },
@@ -378,6 +378,172 @@
378
378
  "type": "number",
379
379
  "value": "{global.Zindex.600}"
380
380
  }
381
+ },
382
+ "box-shadow": {
383
+ "X": {
384
+ "sm": {
385
+ "default": {
386
+ "type": "number",
387
+ "value": "{global.box-shadow.X.400}"
388
+ },
389
+ "top": {
390
+ "type": "number",
391
+ "value": "{global.box-shadow.X.400}"
392
+ },
393
+ "bottom": {
394
+ "type": "number",
395
+ "value": "{global.box-shadow.X.400}"
396
+ },
397
+ "left": {
398
+ "type": "number",
399
+ "value": "{global.box-shadow.X.300}"
400
+ },
401
+ "right": {
402
+ "type": "number",
403
+ "value": "{global.box-shadow.X.500}"
404
+ }
405
+ },
406
+ "md": {
407
+ "default": {
408
+ "type": "number",
409
+ "value": "{global.box-shadow.X.400}"
410
+ },
411
+ "top": {
412
+ "type": "number",
413
+ "value": "{global.box-shadow.X.400}"
414
+ },
415
+ "bottom": {
416
+ "type": "number",
417
+ "value": "{global.box-shadow.X.400}"
418
+ },
419
+ "left": {
420
+ "type": "number",
421
+ "value": "{global.box-shadow.X.200}"
422
+ },
423
+ "right": {
424
+ "type": "number",
425
+ "value": "{global.box-shadow.X.600}"
426
+ }
427
+ },
428
+ "lg": {
429
+ "default": {
430
+ "type": "number",
431
+ "value": "{global.box-shadow.X.400}"
432
+ },
433
+ "top": {
434
+ "type": "number",
435
+ "value": "{global.box-shadow.X.400}"
436
+ },
437
+ "bottom": {
438
+ "type": "number",
439
+ "value": "{global.box-shadow.X.400}"
440
+ },
441
+ "left": {
442
+ "type": "number",
443
+ "value": "{global.box-shadow.X.100}"
444
+ },
445
+ "right": {
446
+ "type": "number",
447
+ "value": "{global.box-shadow.X.700}"
448
+ }
449
+ }
450
+ },
451
+ "Y": {
452
+ "sm": {
453
+ "default": {
454
+ "type": "number",
455
+ "value": "{global.box-shadow.Y.500}"
456
+ },
457
+ "top": {
458
+ "type": "number",
459
+ "value": "{global.box-shadow.Y.300}"
460
+ },
461
+ "bottom": {
462
+ "type": "number",
463
+ "value": "{global.box-shadow.Y.500}"
464
+ },
465
+ "left": {
466
+ "type": "number",
467
+ "value": "{global.box-shadow.Y.400}"
468
+ },
469
+ "right": {
470
+ "type": "number",
471
+ "value": "{global.box-shadow.Y.400}"
472
+ }
473
+ },
474
+ "md": {
475
+ "default": {
476
+ "type": "number",
477
+ "value": "{global.box-shadow.Y.600}"
478
+ },
479
+ "top": {
480
+ "type": "number",
481
+ "value": "{global.box-shadow.Y.200}"
482
+ },
483
+ "bottom": {
484
+ "type": "number",
485
+ "value": "{global.box-shadow.Y.600}"
486
+ },
487
+ "left": {
488
+ "type": "number",
489
+ "value": "{global.box-shadow.Y.400}"
490
+ },
491
+ "right": {
492
+ "type": "number",
493
+ "value": "{global.box-shadow.Y.400}"
494
+ }
495
+ },
496
+ "lg": {
497
+ "default": {
498
+ "type": "number",
499
+ "value": "{global.box-shadow.Y.700}"
500
+ },
501
+ "top": {
502
+ "type": "number",
503
+ "value": "{global.box-shadow.Y.100}"
504
+ },
505
+ "bottom": {
506
+ "type": "number",
507
+ "value": "{global.box-shadow.Y.700}"
508
+ },
509
+ "left": {
510
+ "type": "number",
511
+ "value": "{global.box-shadow.Y.400}"
512
+ },
513
+ "right": {
514
+ "type": "number",
515
+ "value": "{global.box-shadow.Y.400}"
516
+ }
517
+ }
518
+ },
519
+ "blur": {
520
+ "sm": {
521
+ "type": "number",
522
+ "value": "{global.box-shadow.blur.100}"
523
+ },
524
+ "md": {
525
+ "type": "number",
526
+ "value": "{global.box-shadow.blur.200}"
527
+ },
528
+ "lg": {
529
+ "type": "number",
530
+ "value": "{global.box-shadow.blur.300}"
531
+ }
532
+ },
533
+ "spread": {
534
+ "sm": {
535
+ "type": "number",
536
+ "value": "{global.box-shadow.spread.100}"
537
+ },
538
+ "md": {
539
+ "type": "number",
540
+ "value": "{global.box-shadow.spread.100}"
541
+ },
542
+ "lg": {
543
+ "type": "number",
544
+ "value": "{global.box-shadow.spread.100}"
545
+ }
546
+ }
381
547
  }
382
548
  }
383
549
  }