@patternfly/design-tokens 1.13.1 → 1.14.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.
Files changed (36) hide show
  1. package/build/css/tokens-charts-dark.scss +2 -2
  2. package/build/css/tokens-charts.scss +2 -2
  3. package/build/css/tokens-dark.scss +21 -5
  4. package/build/css/tokens-default.scss +90 -30
  5. package/build/css/tokens-highcontrast-dark.scss +392 -0
  6. package/build/css/tokens-highcontrast.scss +427 -0
  7. package/build/css/tokens-palette.scss +8 -2
  8. package/build.js +15 -1
  9. package/config.highcontrast.dark.json +23 -0
  10. package/config.highcontrast.json +24 -0
  11. package/config.palette-colors.json +1 -1
  12. package/package.json +1 -1
  13. package/patternfly-docs/content/token-layers-dark.json +4308 -966
  14. package/patternfly-docs/content/token-layers-default.json +4382 -1485
  15. package/patternfly-docs/content/tokensTable.css +16 -3
  16. package/patternfly-docs/content/tokensTable.js +7 -5
  17. package/plugins/export-patternfly-tokens/dist/code.js +87 -0
  18. package/plugins/export-patternfly-tokens/dist/ui.html +34212 -0
  19. package/plugins/export-patternfly-tokens/src/ui.tsx +12 -4
  20. package/tokens/dark/base.dark.json +36 -0
  21. package/tokens/dark/charts.dark.json +8 -8
  22. package/tokens/dark/palette.color.json +24 -0
  23. package/tokens/dark/semantic.dark.json +51 -9
  24. package/tokens/default/base.dimension.json +38 -6
  25. package/tokens/default/base.json +171 -3
  26. package/tokens/default/charts.json +8 -8
  27. package/tokens/default/palette.color.json +24 -0
  28. package/tokens/default/semantic.dimension.json +69 -48
  29. package/tokens/default/semantic.json +51 -9
  30. package/tokens/default/semantic.motion.json +28 -28
  31. package/tokens/highcontrast/base.json +559 -0
  32. package/tokens/highcontrast/palette.color.json +319 -0
  33. package/tokens/highcontrast/semantic.highcontrast.json +1758 -0
  34. package/tokens/highcontrast-dark/base.dark.json +421 -0
  35. package/tokens/highcontrast-dark/palette.color.json +319 -0
  36. package/tokens/highcontrast-dark/semantic.highcontrast.dark.json +1758 -0
@@ -28,13 +28,13 @@ const saveVars = (text, setJsonFiles, setZipFile) => {
28
28
  break;
29
29
  case '/* Base Color Tokens - Light.Value.tokens.json */':
30
30
  saveFileName = 'base.json';
31
- saveFolderNames = ['default'];
31
+ saveFolderNames = ['default', 'highcontrast'];
32
32
  break;
33
33
  case '/* Color Palette.Mode 1.tokens.json */':
34
34
  saveFileName = 'palette.color.json';
35
- saveFolderNames = ['default', 'dark'];
35
+ saveFolderNames = ['default', 'dark', 'highcontrast', 'highcontrast-dark'];
36
36
  break;
37
- case '/* Semantic Dimension Tokens.Mode 1.tokens.json */':
37
+ case ('/* Semantic Dimension Tokens.Value.tokens.json */' || '/* Semantic Dimension Tokens.Mode 1.tokens.json */'):
38
38
  saveFileName = 'semantic.dimension.json';
39
39
  saveFolderNames = ['default'];
40
40
  break;
@@ -44,7 +44,7 @@ const saveVars = (text, setJsonFiles, setZipFile) => {
44
44
  break;
45
45
  case '/* Base Color Tokens - Dark.Mode 1.tokens.json */':
46
46
  saveFileName = 'base.dark.json';
47
- saveFolderNames = ['dark'];
47
+ saveFolderNames = ['dark', 'highcontrast-dark'];
48
48
  break;
49
49
  case '/* Semantic Color Tokens.Dark.tokens.json */':
50
50
  saveFileName = 'semantic.dark.json';
@@ -66,6 +66,14 @@ const saveVars = (text, setJsonFiles, setZipFile) => {
66
66
  saveFileName = 'semantic.motion.json';
67
67
  saveFolderNames = ['default'];
68
68
  break;
69
+ case '/* Semantic Color Tokens.Light - High Contrast.tokens.json */':
70
+ saveFileName = 'semantic.highcontrast.json';
71
+ saveFolderNames = ['highcontrast'];
72
+ break;
73
+ case '/* Semantic Color Tokens.Dark - High Contrast.tokens.json */':
74
+ saveFileName = 'semantic.highcontrast.dark.json';
75
+ saveFolderNames = ['highcontrast-dark'];
76
+ break;
69
77
  default:
70
78
  saveFileName = splitFiles[i].split('\n', 1)[0];
71
79
  saveFolderNames = ['default'];
@@ -20,6 +20,10 @@
20
20
  "type": "color",
21
21
  "value": "{color.gray.10}"
22
22
  },
23
+ "450": {
24
+ "type": "color",
25
+ "value": "{color.gray.20}"
26
+ },
23
27
  "500": {
24
28
  "type": "color",
25
29
  "value": "rgba(21, 21, 21, 0.8000)"
@@ -67,6 +71,10 @@
67
71
  "300": {
68
72
  "type": "color",
69
73
  "value": "{color.gray.70}"
74
+ },
75
+ "400": {
76
+ "type": "color",
77
+ "value": "{color.gray.90}"
70
78
  }
71
79
  },
72
80
  "favorite": {
@@ -88,6 +96,10 @@
88
96
  "200": {
89
97
  "type": "color",
90
98
  "value": "{color.green.30}"
99
+ },
100
+ "300": {
101
+ "type": "color",
102
+ "value": "{color.green.20}"
91
103
  }
92
104
  },
93
105
  "warning": {
@@ -126,6 +138,10 @@
126
138
  "200": {
127
139
  "type": "color",
128
140
  "value": "{color.purple.20}"
141
+ },
142
+ "300": {
143
+ "type": "color",
144
+ "value": "{color.purple.10}"
129
145
  }
130
146
  },
131
147
  "custom": {
@@ -136,6 +152,10 @@
136
152
  "200": {
137
153
  "type": "color",
138
154
  "value": "{color.teal.30}"
155
+ },
156
+ "300": {
157
+ "type": "color",
158
+ "value": "{color.teal.20}"
139
159
  }
140
160
  }
141
161
  },
@@ -174,6 +194,10 @@
174
194
  "100": {
175
195
  "type": "color",
176
196
  "value": "{color.red-orange.50}"
197
+ },
198
+ "200": {
199
+ "type": "color",
200
+ "value": "{color.red-orange.40}"
177
201
  }
178
202
  }
179
203
  },
@@ -291,6 +315,10 @@
291
315
  }
292
316
  },
293
317
  "gray": {
318
+ "50": {
319
+ "type": "color",
320
+ "value": "{color.gray.70}"
321
+ },
294
322
  "100": {
295
323
  "type": "color",
296
324
  "value": "{color.gray.60}"
@@ -352,6 +380,10 @@
352
380
  "300": {
353
381
  "type": "color",
354
382
  "value": "{color.purple.30}"
383
+ },
384
+ "400": {
385
+ "type": "color",
386
+ "value": "{color.purple.20}"
355
387
  }
356
388
  }
357
389
  }
@@ -377,6 +409,10 @@
377
409
  "100": {
378
410
  "type": "color",
379
411
  "value": "rgba(0, 0, 0, 0.5000)"
412
+ },
413
+ "200": {
414
+ "type": "color",
415
+ "value": "rgba(0, 0, 0, 0.7000)"
380
416
  }
381
417
  }
382
418
  }
@@ -270,6 +270,10 @@
270
270
  }
271
271
  }
272
272
  },
273
+ "letter-spacing": {
274
+ "type": "string",
275
+ "value": "normal"
276
+ },
273
277
  "FontSize": {
274
278
  "xs": {
275
279
  "type": "number",
@@ -288,14 +292,6 @@
288
292
  "value": 22
289
293
  }
290
294
  },
291
- "letter-spacing": {
292
- "type": "string",
293
- "value": "normal"
294
- },
295
- "stroke-line-cap": {
296
- "type": "string",
297
- "value": "round"
298
- },
299
295
  "label": {
300
296
  "padding": {
301
297
  "type": "number",
@@ -322,6 +318,10 @@
322
318
  "value": "{color.white}"
323
319
  }
324
320
  },
321
+ "stroke-line-cap": {
322
+ "type": "string",
323
+ "value": "round"
324
+ },
325
325
  "layout": {
326
326
  "padding": {
327
327
  "type": "number",
@@ -79,6 +79,10 @@
79
79
  "70": {
80
80
  "type": "color",
81
81
  "value": "#003366"
82
+ },
83
+ "80": {
84
+ "type": "color",
85
+ "value": "#002250"
82
86
  }
83
87
  },
84
88
  "teal": {
@@ -109,6 +113,10 @@
109
113
  "70": {
110
114
  "type": "color",
111
115
  "value": "#004d4d"
116
+ },
117
+ "80": {
118
+ "type": "color",
119
+ "value": "#003333"
112
120
  }
113
121
  },
114
122
  "yellow": {
@@ -139,6 +147,10 @@
139
147
  "70": {
140
148
  "type": "color",
141
149
  "value": "#73480b"
150
+ },
151
+ "80": {
152
+ "type": "color",
153
+ "value": "#54330b"
142
154
  }
143
155
  },
144
156
  "green": {
@@ -199,6 +211,10 @@
199
211
  "70": {
200
212
  "type": "color",
201
213
  "value": "#732e00"
214
+ },
215
+ "80": {
216
+ "type": "color",
217
+ "value": "#4d1f00"
202
218
  }
203
219
  },
204
220
  "red-orange": {
@@ -259,6 +275,10 @@
259
275
  "70": {
260
276
  "type": "color",
261
277
  "value": "#21134d"
278
+ },
279
+ "80": {
280
+ "type": "color",
281
+ "value": "#1b0d33"
262
282
  }
263
283
  },
264
284
  "red": {
@@ -289,6 +309,10 @@
289
309
  "70": {
290
310
  "type": "color",
291
311
  "value": "#5f0000"
312
+ },
313
+ "80": {
314
+ "type": "color",
315
+ "value": "#3f0000"
292
316
  }
293
317
  }
294
318
  }
@@ -37,6 +37,13 @@
37
37
  "value": "{global.dark.background.color.200}"
38
38
  }
39
39
  },
40
+ "tertiary": {
41
+ "default": {
42
+ "description": "Use as the tertiary background color. This is primarily used for containers that can be placed on secondary backgrounds.",
43
+ "type": "color",
44
+ "value": "{global.dark.background.color.600}"
45
+ }
46
+ },
40
47
  "floating": {
41
48
  "default": {
42
49
  "description": "Use as the background color for components that appear over other content, such as toast alerts, menus, modals, overlay drawers, etc.",
@@ -113,6 +120,16 @@
113
120
  "description": "Use as the background color components with inversed backgrounds like tooltips.",
114
121
  "type": "color",
115
122
  "value": "{global.dark.background.color.400}"
123
+ },
124
+ "hover": {
125
+ "description": "Use as the hover color for interactive components with inversed backgrounds.",
126
+ "type": "color",
127
+ "value": "{global.dark.background.color.450}"
128
+ },
129
+ "clicked": {
130
+ "description": "Use as the clicked color for interactive components with inversed backgrounds.",
131
+ "type": "color",
132
+ "value": "{global.dark.background.color.450}"
116
133
  }
117
134
  },
118
135
  "disabled": {
@@ -950,6 +967,10 @@
950
967
  "value": "{global.dark.border.color.50}"
951
968
  }
952
969
  },
970
+ "high-contrast": {
971
+ "type": "color",
972
+ "value": "rgba(255, 255, 255, 0.0000)"
973
+ },
953
974
  "brand": {
954
975
  "default": {
955
976
  "description": "Use as the default border color for any branded element, like color-coded labels, banners, etc.",
@@ -1696,19 +1717,40 @@
1696
1717
  "box-shadow": {
1697
1718
  "color": {
1698
1719
  "sm": {
1699
- "description": "Use as the color of small box-shadows.",
1700
- "type": "color",
1701
- "value": "{global.dark.box-shadow.color.100}"
1720
+ "default": {
1721
+ "description": "Use as the color of small box-shadows.",
1722
+ "type": "color",
1723
+ "value": "{global.dark.box-shadow.color.100}"
1724
+ },
1725
+ "directional": {
1726
+ "description": "Use as the color of small box-shadows.",
1727
+ "type": "color",
1728
+ "value": "{global.dark.box-shadow.color.200}"
1729
+ }
1702
1730
  },
1703
1731
  "md": {
1704
- "description": "Use as the color of medium box-shadows.",
1705
- "type": "color",
1706
- "value": "{global.dark.box-shadow.color.100}"
1732
+ "default": {
1733
+ "description": "Use as the color of medium box-shadows.",
1734
+ "type": "color",
1735
+ "value": "{global.dark.box-shadow.color.100}"
1736
+ },
1737
+ "directional": {
1738
+ "description": "Use as the color of medium box-shadows.",
1739
+ "type": "color",
1740
+ "value": "{global.dark.box-shadow.color.200}"
1741
+ }
1707
1742
  },
1708
1743
  "lg": {
1709
- "description": "Use as the color of large box-shadows.",
1710
- "type": "color",
1711
- "value": "{global.dark.box-shadow.color.100}"
1744
+ "default": {
1745
+ "description": "Use as the color of large box-shadows.",
1746
+ "type": "color",
1747
+ "value": "{global.dark.box-shadow.color.100}"
1748
+ },
1749
+ "directional": {
1750
+ "description": "Use as the color of large box-shadows.",
1751
+ "type": "color",
1752
+ "value": "{global.dark.box-shadow.color.200}"
1753
+ }
1712
1754
  }
1713
1755
  }
1714
1756
  }
@@ -76,6 +76,10 @@
76
76
  "300": {
77
77
  "type": "number",
78
78
  "value": 3
79
+ },
80
+ "400": {
81
+ "type": "number",
82
+ "value": 4
79
83
  }
80
84
  },
81
85
  "radius": {
@@ -211,9 +215,13 @@
211
215
  },
212
216
  "box-shadow": {
213
217
  "X": {
218
+ "50": {
219
+ "type": "number",
220
+ "value": -20
221
+ },
214
222
  "100": {
215
223
  "type": "number",
216
- "value": -8
224
+ "value": -10
217
225
  },
218
226
  "200": {
219
227
  "type": "number",
@@ -237,13 +245,21 @@
237
245
  },
238
246
  "700": {
239
247
  "type": "number",
240
- "value": 8
248
+ "value": 10
249
+ },
250
+ "800": {
251
+ "type": "number",
252
+ "value": 20
241
253
  }
242
254
  },
243
255
  "Y": {
256
+ "50": {
257
+ "type": "number",
258
+ "value": -20
259
+ },
244
260
  "100": {
245
261
  "type": "number",
246
- "value": -8
262
+ "value": -10
247
263
  },
248
264
  "200": {
249
265
  "type": "number",
@@ -267,7 +283,11 @@
267
283
  },
268
284
  "700": {
269
285
  "type": "number",
270
- "value": 8
286
+ "value": 10
287
+ },
288
+ "800": {
289
+ "type": "number",
290
+ "value": 20
271
291
  }
272
292
  },
273
293
  "blur": {
@@ -277,17 +297,29 @@
277
297
  },
278
298
  "200": {
279
299
  "type": "number",
280
- "value": 8
300
+ "value": 9
281
301
  },
282
302
  "300": {
283
303
  "type": "number",
284
- "value": 24
304
+ "value": 20
285
305
  }
286
306
  },
287
307
  "spread": {
288
308
  "100": {
289
309
  "type": "number",
290
310
  "value": 0
311
+ },
312
+ "200": {
313
+ "type": "number",
314
+ "value": -4
315
+ },
316
+ "300": {
317
+ "type": "number",
318
+ "value": -8
319
+ },
320
+ "400": {
321
+ "type": "number",
322
+ "value": -20
291
323
  }
292
324
  }
293
325
  },