@patternfly/design-tokens 1.14.9 → 1.15.1

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 (55) hide show
  1. package/build/css/tokens-dark.scss +16 -16
  2. package/build/css/tokens-default.scss +17 -15
  3. package/build/css/tokens-glass-dark.scss +21 -4
  4. package/build/css/tokens-glass.scss +17 -4
  5. package/build/css/tokens-palette.scss +1 -1
  6. package/build/css/tokens-redhat-dark.scss +9 -2
  7. package/build/css/tokens-redhat-glass-dark.scss +27 -4
  8. package/build/css/tokens-redhat-glass.scss +17 -4
  9. package/build/css/tokens-redhat-highcontrast-dark.scss +5 -4
  10. package/build/css/tokens-redhat-highcontrast.scss +2 -2
  11. package/build/css/tokens-redhat.scss +1 -1
  12. package/build.js +44 -1
  13. package/package.json +1 -1
  14. package/patternfly-docs/content/token-layers-glass-dark.json +497 -965
  15. package/patternfly-docs/content/token-layers-glass.json +12337 -991
  16. package/patternfly-docs/content/token-layers-highcontrast-dark.json +849 -553
  17. package/patternfly-docs/content/token-layers-highcontrast.json +1237 -927
  18. package/patternfly-docs/content/token-layers-redhat-dark.json +2731 -2662
  19. package/patternfly-docs/content/token-layers-redhat-glass-dark.json +1700 -2230
  20. package/patternfly-docs/content/token-layers-redhat-glass.json +12497 -1151
  21. package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +500 -373
  22. package/patternfly-docs/content/token-layers-redhat-highcontrast.json +1304 -998
  23. package/patternfly-docs/content/token-layers-redhat.json +1650 -1340
  24. package/plugins/export-patternfly-tokens/dist/ui.html +32 -24
  25. package/plugins/export-patternfly-tokens/src/ui.tsx +8 -0
  26. package/tokens/default/dark/base.dark.json +5 -5
  27. package/tokens/default/dark/charts.dark.json +20 -20
  28. package/tokens/default/dark/semantic.dark.json +45 -36
  29. package/tokens/default/glass/base.dimension.json +16 -16
  30. package/tokens/default/glass/base.json +2 -2
  31. package/tokens/default/glass/semantic.dimension.glass.json +1109 -0
  32. package/tokens/default/glass/semantic.glass.json +49 -40
  33. package/tokens/default/glass-dark/base.dark.json +5 -5
  34. package/tokens/default/glass-dark/semantic.glass.dark.json +56 -47
  35. package/tokens/default/highcontrast/base.dimension.json +16 -16
  36. package/tokens/default/highcontrast/base.json +2 -2
  37. package/tokens/default/highcontrast/semantic.dimension.highcontrast.json +51 -39
  38. package/tokens/default/highcontrast/semantic.highcontrast.json +41 -32
  39. package/tokens/default/highcontrast-dark/base.dark.json +5 -5
  40. package/tokens/default/highcontrast-dark/semantic.highcontrast.dark.json +44 -35
  41. package/tokens/default/light/base.dimension.json +16 -16
  42. package/tokens/default/light/base.json +2 -2
  43. package/tokens/default/light/charts.json +20 -20
  44. package/tokens/default/light/semantic.dimension.json +51 -39
  45. package/tokens/default/light/semantic.json +41 -32
  46. package/tokens/default/light/semantic.motion.json +24 -24
  47. package/tokens/redhat/dark/redhat.color.dark.json +71 -24
  48. package/tokens/redhat/glass/redhat.color.glass.json +25 -25
  49. package/tokens/redhat/glass/redhat.dimension.glass.json +2 -0
  50. package/tokens/redhat/glass-dark/redhat.color.glass.dark.json +67 -25
  51. package/tokens/redhat/highcontrast/redhat.color.highcontrast.json +25 -25
  52. package/tokens/redhat/highcontrast/redhat.dimension.highcontrast.json +6 -6
  53. package/tokens/redhat/highcontrast-dark/redhat.color.highcontrast.dark.json +25 -25
  54. package/tokens/redhat/light/redhat.color.json +25 -25
  55. package/tokens/redhat/light/redhat.dimension.json +6 -6
@@ -91,6 +91,10 @@ const saveVars = (text, setJsonFiles, setZipFile) => {
91
91
  saveFileName = 'semantic.dimension.highcontrast.json';
92
92
  saveFolderNames = ['default/highcontrast'];
93
93
  break;
94
+ case ('/* Semantic Dimension Tokens.Glass.tokens.json */'):
95
+ saveFileName = 'semantic.dimension.glass.json';
96
+ saveFolderNames = ['default/glass'];
97
+ break;
94
98
  // Semantic motion
95
99
  case '/* Semantic Motion Tokens.Mode 1.tokens.json */':
96
100
  saveFileName = 'semantic.motion.json';
@@ -139,6 +143,10 @@ const saveVars = (text, setJsonFiles, setZipFile) => {
139
143
  saveFileName = 'redhat.dimension.json';
140
144
  saveFolderNames = ['redhat/light'];
141
145
  break;
146
+ case '/* Red Hat Dimension Tokens.Glass.tokens.json */':
147
+ saveFileName = 'redhat.dimension.glass.json';
148
+ saveFolderNames = ['redhat/glass'];
149
+ break;
142
150
  case '/* Red Hat Dimension Tokens.High Contrast - Beta.tokens.json */':
143
151
  saveFileName = 'redhat.dimension.highcontrast.json';
144
152
  saveFolderNames = ['redhat/highcontrast'];
@@ -69,15 +69,15 @@
69
69
  },
70
70
  "200": {
71
71
  "type": "color",
72
- "value": "{color.red.40}"
72
+ "value": "{color.red.60}"
73
73
  },
74
74
  "300": {
75
75
  "type": "color",
76
- "value": "{color.red.30}"
76
+ "value": "{color.red.40}"
77
77
  },
78
78
  "350": {
79
79
  "type": "color",
80
- "value": "{color.red.20}"
80
+ "value": "{color.gray.20}"
81
81
  },
82
82
  "400": {
83
83
  "type": "color",
@@ -382,7 +382,7 @@
382
382
  },
383
383
  "100": {
384
384
  "type": "color",
385
- "value": "{color.gray.50}"
385
+ "value": "{color.gray.60}"
386
386
  },
387
387
  "200": {
388
388
  "type": "color",
@@ -456,7 +456,7 @@
456
456
  },
457
457
  "200": {
458
458
  "type": "color",
459
- "value": "rgba(0, 0, 0, 0.7000)"
459
+ "value": "rgba(0, 0, 0, 0.6000)"
460
460
  }
461
461
  }
462
462
  },
@@ -270,10 +270,6 @@
270
270
  }
271
271
  }
272
272
  },
273
- "letter-spacing": {
274
- "type": "string",
275
- "value": "normal"
276
- },
277
273
  "FontSize": {
278
274
  "xs": {
279
275
  "type": "number",
@@ -292,23 +288,9 @@
292
288
  "value": 22
293
289
  }
294
290
  },
295
- "stroke-line-cap": {
291
+ "letter-spacing": {
296
292
  "type": "string",
297
- "value": "round"
298
- },
299
- "layout": {
300
- "padding": {
301
- "type": "number",
302
- "value": 50
303
- },
304
- "height": {
305
- "type": "number",
306
- "value": 300
307
- },
308
- "width": {
309
- "type": "number",
310
- "value": 450
311
- }
293
+ "value": "normal"
312
294
  },
313
295
  "label": {
314
296
  "padding": {
@@ -336,6 +318,24 @@
336
318
  "value": "{color.white}"
337
319
  }
338
320
  },
321
+ "layout": {
322
+ "padding": {
323
+ "type": "number",
324
+ "value": 50
325
+ },
326
+ "height": {
327
+ "type": "number",
328
+ "value": 300
329
+ },
330
+ "width": {
331
+ "type": "number",
332
+ "value": 450
333
+ }
334
+ },
335
+ "stroke-line-cap": {
336
+ "type": "string",
337
+ "value": "round"
338
+ },
339
339
  "stroke-line-join": {
340
340
  "type": "string",
341
341
  "value": "round"
@@ -2,31 +2,7 @@
2
2
  {
3
3
  "global": {
4
4
  "background": {
5
- "filter": {
6
- "glass": {
7
- "blur": {
8
- "primary": {
9
- "type": "number",
10
- "value": 0
11
- },
12
- "floating": {
13
- "type": "number",
14
- "value": 0
15
- }
16
- }
17
- }
18
- },
19
5
  "color": {
20
- "glass": {
21
- "primary": {
22
- "type": "color",
23
- "value": "{global.background.color.primary.default}"
24
- },
25
- "floating": {
26
- "type": "color",
27
- "value": "{global.background.color.floating.default}"
28
- }
29
- },
30
6
  "primary": {
31
7
  "default": {
32
8
  "description": "Use as the primary background color for UI content such as cards, page sections, and other content areas.",
@@ -68,6 +44,14 @@
68
44
  "value": "{global.dark.background.color.600}"
69
45
  }
70
46
  },
47
+ "glass": {
48
+ "primary": {
49
+ "default": {
50
+ "type": "color",
51
+ "value": "{global.background.color.primary.default}"
52
+ }
53
+ }
54
+ },
71
55
  "floating": {
72
56
  "default": {
73
57
  "description": "Use as the background color for components that appear over other content, such as toast alerts, menus, modals, overlay drawers, etc.",
@@ -83,6 +67,19 @@
83
67
  "description": "Use as the clicked state for floating backgrounds",
84
68
  "type": "color",
85
69
  "value": "{global.dark.background.color.200}"
70
+ },
71
+ "secondary": {
72
+ "default": {
73
+ "type": "color",
74
+ "value": "{global.background.color.secondary.default}"
75
+ }
76
+ }
77
+ },
78
+ "sticky": {
79
+ "default": {
80
+ "description": "Use as the background color for components that appear over other content, such as toast alerts, menus, modals, overlay drawers, etc.",
81
+ "type": "color",
82
+ "value": "{global.dark.background.color.200}"
86
83
  }
87
84
  },
88
85
  "action": {
@@ -124,7 +121,7 @@
124
121
  },
125
122
  "read-only": {
126
123
  "type": "color",
127
- "value": "{global.dark.background.color.300}"
124
+ "value": "{global.dark.background.color.200}"
128
125
  }
129
126
  },
130
127
  "highlight": {
@@ -170,6 +167,14 @@
170
167
  "value": "{global.dark.background.color.500}"
171
168
  }
172
169
  },
170
+ "striped": {
171
+ "row": {
172
+ "default": {
173
+ "type": "color",
174
+ "value": "rgba(21, 21, 21, 0.3000)"
175
+ }
176
+ }
177
+ },
173
178
  "loading": {
174
179
  "skeleton": {
175
180
  "default": {
@@ -183,15 +188,13 @@
183
188
  }
184
189
  }
185
190
  },
186
- "opacity": {
191
+ "filter": {
187
192
  "glass": {
188
- "primary": {
189
- "type": "number",
190
- "value": 100
191
- },
192
- "floating": {
193
- "type": "number",
194
- "value": 100
193
+ "blur": {
194
+ "primary": {
195
+ "type": "number",
196
+ "value": 0
197
+ }
195
198
  }
196
199
  }
197
200
  }
@@ -610,7 +613,7 @@
610
613
  "default": {
611
614
  "description": "Use as the default color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
612
615
  "type": "color",
613
- "value": "{global.icon.color.regular}"
616
+ "value": "{global.icon.color.inverse}"
614
617
  },
615
618
  "hover": {
616
619
  "description": "Use as the hover state color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
@@ -1265,7 +1268,7 @@
1265
1268
  "subtle": {
1266
1269
  "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1267
1270
  "type": "color",
1268
- "value": "{global.dark.border.color.50}"
1271
+ "value": "{global.dark.border.color.100}"
1269
1272
  },
1270
1273
  "disabled": {
1271
1274
  "description": "Use as the disabled border color for elements like form inputs, menu toggles, cards, etc.",
@@ -1282,6 +1285,12 @@
1282
1285
  "type": "color",
1283
1286
  "value": "{global.dark.border.color.200}"
1284
1287
  },
1288
+ "glass": {
1289
+ "default": {
1290
+ "type": "color",
1291
+ "value": "{global.border.color.subtle}"
1292
+ }
1293
+ },
1285
1294
  "nonstatus": {
1286
1295
  "red": {
1287
1296
  "default": {
@@ -1954,7 +1963,7 @@
1954
1963
  "directional": {
1955
1964
  "description": "Use as the color of medium box-shadows.",
1956
1965
  "type": "color",
1957
- "value": "{global.dark.box-shadow.color.200}"
1966
+ "value": "{global.dark.box-shadow.color.100}"
1958
1967
  }
1959
1968
  },
1960
1969
  "lg": {
@@ -110,16 +110,6 @@
110
110
  }
111
111
  },
112
112
  "font": {
113
- "line-height": {
114
- "100": {
115
- "type": "number",
116
- "value": 1.2999999523162842
117
- },
118
- "200": {
119
- "type": "number",
120
- "value": 1.5
121
- }
122
- },
123
113
  "weight": {
124
114
  "100": {
125
115
  "type": "number",
@@ -138,6 +128,16 @@
138
128
  "value": 700
139
129
  }
140
130
  },
131
+ "line-height": {
132
+ "100": {
133
+ "type": "number",
134
+ "value": 1.2999999523162842
135
+ },
136
+ "200": {
137
+ "type": "number",
138
+ "value": 1.5
139
+ }
140
+ },
141
141
  "size": {
142
142
  "100": {
143
143
  "type": "number",
@@ -229,7 +229,7 @@
229
229
  },
230
230
  "300": {
231
231
  "type": "number",
232
- "value": -1
232
+ "value": -2
233
233
  },
234
234
  "400": {
235
235
  "type": "number",
@@ -237,7 +237,7 @@
237
237
  },
238
238
  "500": {
239
239
  "type": "number",
240
- "value": 1
240
+ "value": 2
241
241
  },
242
242
  "600": {
243
243
  "type": "number",
@@ -263,7 +263,7 @@
263
263
  },
264
264
  "200": {
265
265
  "type": "number",
266
- "value": -2
266
+ "value": -4
267
267
  },
268
268
  "300": {
269
269
  "type": "number",
@@ -279,7 +279,7 @@
279
279
  },
280
280
  "600": {
281
281
  "type": "number",
282
- "value": 2
282
+ "value": 4
283
283
  },
284
284
  "700": {
285
285
  "type": "number",
@@ -293,11 +293,11 @@
293
293
  "blur": {
294
294
  "100": {
295
295
  "type": "number",
296
- "value": 4
296
+ "value": 6
297
297
  },
298
298
  "200": {
299
299
  "type": "number",
300
- "value": 9
300
+ "value": 10
301
301
  },
302
302
  "300": {
303
303
  "type": "number",
@@ -80,7 +80,7 @@
80
80
  },
81
81
  "300": {
82
82
  "type": "color",
83
- "value": "{color.red.70}"
83
+ "value": "{color.gray.60}"
84
84
  },
85
85
  "400": {
86
86
  "type": "color",
@@ -493,7 +493,7 @@
493
493
  "color": {
494
494
  "50": {
495
495
  "type": "color",
496
- "value": "{color.gray.10}"
496
+ "value": "{color.gray.20}"
497
497
  },
498
498
  "100": {
499
499
  "type": "color",