@patternfly/design-tokens 1.12.0 → 1.13.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 02 Jul 2024 18:11:52 GMT
3
+ // Generated on Fri, 13 Sep 2024 01:51:18 GMT
4
4
 
5
5
  @mixin pf-v6-tokens {
6
6
  --pf-t--chart--global--BorderWidth--lg: 8;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 02 Jul 2024 18:11:52 GMT
3
+ // Generated on Fri, 13 Sep 2024 01:51:18 GMT
4
4
 
5
5
  @mixin pf-v6-tokens {
6
6
  --pf-t--chart--global--BorderWidth--lg: 8;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 02 Jul 2024 18:11:52 GMT
3
+ // Generated on Fri, 13 Sep 2024 01:51:18 GMT
4
4
 
5
5
  @mixin pf-v6-tokens {
6
6
  --pf-t--global--background--color--action--plain--default: rgba(0, 0, 0, 0.0000);
@@ -21,6 +21,7 @@
21
21
  --pf-t--global--dark--background--color--highlight--200: var(--pf-t--color--yellow--30);
22
22
  --pf-t--global--dark--border--color--100: var(--pf-t--color--gray--50);
23
23
  --pf-t--global--dark--border--color--200: var(--pf-t--color--gray--40);
24
+ --pf-t--global--dark--border--color--50: var(--pf-t--color--gray--60);
24
25
  --pf-t--global--dark--color--brand--100: var(--pf-t--color--blue--30);
25
26
  --pf-t--global--dark--color--brand--200: var(--pf-t--color--blue--20);
26
27
  --pf-t--global--dark--color--brand--300: var(--pf-t--color--blue--10);
@@ -32,9 +33,9 @@
32
33
  --pf-t--global--dark--color--nonstatus--blue--100: var(--pf-t--color--blue--30);
33
34
  --pf-t--global--dark--color--nonstatus--blue--200: var(--pf-t--color--blue--20);
34
35
  --pf-t--global--dark--color--nonstatus--blue--300: var(--pf-t--color--blue--10);
35
- --pf-t--global--dark--color--nonstatus--gray--100: var(--pf-t--color--gray--30);
36
- --pf-t--global--dark--color--nonstatus--gray--200: var(--pf-t--color--gray--20);
37
- --pf-t--global--dark--color--nonstatus--gray--300: var(--pf-t--color--gray--10);
36
+ --pf-t--global--dark--color--nonstatus--gray--100: var(--pf-t--color--gray--60);
37
+ --pf-t--global--dark--color--nonstatus--gray--200: var(--pf-t--color--gray--50);
38
+ --pf-t--global--dark--color--nonstatus--gray--300: var(--pf-t--color--gray--40);
38
39
  --pf-t--global--dark--color--nonstatus--green--100: var(--pf-t--color--green--30);
39
40
  --pf-t--global--dark--color--nonstatus--green--200: var(--pf-t--color--green--20);
40
41
  --pf-t--global--dark--color--nonstatus--green--300: var(--pf-t--color--green--10);
@@ -77,7 +78,7 @@
77
78
  --pf-t--global--dark--icon--color--100: var(--pf-t--color--gray--10);
78
79
  --pf-t--global--dark--icon--color--200: var(--pf-t--color--gray--40);
79
80
  --pf-t--global--dark--icon--color--300: var(--pf-t--color--gray--90);
80
- --pf-t--global--dark--text--color--100: var(--pf-t--color--gray--10);
81
+ --pf-t--global--dark--text--color--100: var(--pf-t--color--white);
81
82
  --pf-t--global--dark--text--color--200: var(--pf-t--color--gray--30);
82
83
  --pf-t--global--dark--text--color--300: var(--pf-t--color--gray--90);
83
84
  --pf-t--global--dark--text--color--400: var(--pf-t--color--red-orange--30);
@@ -87,6 +88,7 @@
87
88
  --pf-t--global--background--color--action--plain--alt--clicked: var(--pf-t--global--dark--background--color--200);
88
89
  --pf-t--global--background--color--action--plain--alt--hover: var(--pf-t--global--dark--background--color--200);
89
90
  --pf-t--global--background--color--control--default: var(--pf-t--global--dark--background--color--300);
91
+ --pf-t--global--background--color--control--read-only: var(--pf-t--global--dark--background--color--300);
90
92
  --pf-t--global--background--color--disabled--default: var(--pf-t--global--dark--color--disabled--100);
91
93
  --pf-t--global--background--color--floating--clicked: var(--pf-t--global--dark--background--color--200);
92
94
  --pf-t--global--background--color--floating--default: var(--pf-t--global--dark--background--color--300);
@@ -101,15 +103,16 @@
101
103
  --pf-t--global--background--color--secondary--default: var(--pf-t--global--dark--background--color--100);
102
104
  --pf-t--global--background--color--secondary--hover: var(--pf-t--global--dark--background--color--200);
103
105
  --pf-t--global--border--color--clicked: var(--pf-t--global--dark--color--brand--200);
106
+ --pf-t--global--border--color--control--read-only: var(--pf-t--global--dark--border--color--50);
104
107
  --pf-t--global--border--color--default: var(--pf-t--global--dark--border--color--200);
105
108
  --pf-t--global--border--color--disabled: var(--pf-t--global--dark--color--disabled--200);
106
109
  --pf-t--global--border--color--hover: var(--pf-t--global--dark--color--brand--100);
107
110
  --pf-t--global--border--color--nonstatus--blue--clicked: var(--pf-t--global--dark--color--nonstatus--blue--200);
108
111
  --pf-t--global--border--color--nonstatus--blue--default: var(--pf-t--global--dark--color--nonstatus--blue--100);
109
112
  --pf-t--global--border--color--nonstatus--blue--hover: var(--pf-t--global--dark--color--nonstatus--blue--200);
110
- --pf-t--global--border--color--nonstatus--gray--clicked: var(--pf-t--global--dark--color--nonstatus--gray--200);
111
- --pf-t--global--border--color--nonstatus--gray--default: var(--pf-t--global--dark--color--nonstatus--gray--100);
112
- --pf-t--global--border--color--nonstatus--gray--hover: var(--pf-t--global--dark--color--nonstatus--gray--200);
113
+ --pf-t--global--border--color--nonstatus--gray--clicked: var(--pf-t--global--dark--color--nonstatus--gray--300);
114
+ --pf-t--global--border--color--nonstatus--gray--default: var(--pf-t--global--dark--color--nonstatus--gray--200);
115
+ --pf-t--global--border--color--nonstatus--gray--hover: var(--pf-t--global--dark--color--nonstatus--gray--300);
113
116
  --pf-t--global--border--color--nonstatus--green--clicked: var(--pf-t--global--dark--color--nonstatus--green--200);
114
117
  --pf-t--global--border--color--nonstatus--green--default: var(--pf-t--global--dark--color--nonstatus--green--100);
115
118
  --pf-t--global--border--color--nonstatus--green--hover: var(--pf-t--global--dark--color--nonstatus--green--200);
@@ -243,9 +246,9 @@
243
246
  --pf-t--global--icon--color--nonstatus--on-blue--clicked: var(--pf-t--global--icon--color--inverse);
244
247
  --pf-t--global--icon--color--nonstatus--on-blue--default: var(--pf-t--global--icon--color--inverse);
245
248
  --pf-t--global--icon--color--nonstatus--on-blue--hover: var(--pf-t--global--icon--color--inverse);
246
- --pf-t--global--icon--color--nonstatus--on-gray--clicked: var(--pf-t--global--icon--color--inverse);
247
- --pf-t--global--icon--color--nonstatus--on-gray--default: var(--pf-t--global--icon--color--inverse);
248
- --pf-t--global--icon--color--nonstatus--on-gray--hover: var(--pf-t--global--icon--color--inverse);
249
+ --pf-t--global--icon--color--nonstatus--on-gray--clicked: var(--pf-t--global--icon--color--regular);
250
+ --pf-t--global--icon--color--nonstatus--on-gray--default: var(--pf-t--global--icon--color--regular);
251
+ --pf-t--global--icon--color--nonstatus--on-gray--hover: var(--pf-t--global--icon--color--regular);
249
252
  --pf-t--global--icon--color--nonstatus--on-green--clicked: var(--pf-t--global--icon--color--inverse);
250
253
  --pf-t--global--icon--color--nonstatus--on-green--default: var(--pf-t--global--icon--color--inverse);
251
254
  --pf-t--global--icon--color--nonstatus--on-green--hover: var(--pf-t--global--icon--color--inverse);
@@ -309,9 +312,9 @@
309
312
  --pf-t--global--text--color--nonstatus--on-blue--clicked: var(--pf-t--global--text--color--inverse);
310
313
  --pf-t--global--text--color--nonstatus--on-blue--default: var(--pf-t--global--text--color--inverse);
311
314
  --pf-t--global--text--color--nonstatus--on-blue--hover: var(--pf-t--global--text--color--inverse);
312
- --pf-t--global--text--color--nonstatus--on-gray--clicked: var(--pf-t--global--text--color--inverse);
313
- --pf-t--global--text--color--nonstatus--on-gray--default: var(--pf-t--global--text--color--inverse);
314
- --pf-t--global--text--color--nonstatus--on-gray--hover: var(--pf-t--global--text--color--inverse);
315
+ --pf-t--global--text--color--nonstatus--on-gray--clicked: var(--pf-t--global--text--color--regular);
316
+ --pf-t--global--text--color--nonstatus--on-gray--default: var(--pf-t--global--text--color--regular);
317
+ --pf-t--global--text--color--nonstatus--on-gray--hover: var(--pf-t--global--text--color--regular);
315
318
  --pf-t--global--text--color--nonstatus--on-green--clicked: var(--pf-t--global--text--color--inverse);
316
319
  --pf-t--global--text--color--nonstatus--on-green--default: var(--pf-t--global--text--color--inverse);
317
320
  --pf-t--global--text--color--nonstatus--on-green--hover: var(--pf-t--global--text--color--inverse);
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 02 Jul 2024 18:11:52 GMT
3
+ // Generated on Fri, 13 Sep 2024 01:51:18 GMT
4
4
 
5
5
  @mixin pf-v6-tokens {
6
6
  --pf-t--global--background--color--500: rgba(21, 21, 21, 0.2000);
@@ -55,9 +55,9 @@
55
55
  --pf-t--global--duration--50: 50ms;
56
56
  --pf-t--global--duration--500: 500ms;
57
57
  --pf-t--global--duration--600: 600ms;
58
- --pf-t--global--font--family--100: Red Hat Text VF;
59
- --pf-t--global--font--family--200: Red Hat Display VF;
60
- --pf-t--global--font--family--300: Red Hat Mono VF;
58
+ --pf-t--global--font--family--100: "Red Hat Text", "RedHatText", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif;
59
+ --pf-t--global--font--family--200: "Red Hat Display", "RedHatDisplay", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans JP", "Noto Sans KR", "Noto Sans Malayalam", "Noto Sans SC", "Noto Sans TC", "Noto Sans Thai", Helvetica, Arial, sans-serif;
60
+ --pf-t--global--font--family--300: "Red Hat Mono", "RedHatMono", "Courier New", Courier, monospace;
61
61
  --pf-t--global--font--line-height--100: 1.2999999523162842;
62
62
  --pf-t--global--font--line-height--200: 1.5;
63
63
  --pf-t--global--font--size--100: 0.75rem;
@@ -65,17 +65,17 @@
65
65
  --pf-t--global--font--size--300: 1rem;
66
66
  --pf-t--global--font--size--400: 1.125rem;
67
67
  --pf-t--global--font--size--500: 1.25rem;
68
- --pf-t--global--font--size--600: 1.375rem;
68
+ --pf-t--global--font--size--600: 1.5rem;
69
69
  --pf-t--global--font--size--700: 1.75rem;
70
70
  --pf-t--global--font--size--800: 2.25rem;
71
71
  --pf-t--global--font--weight--100: 400;
72
72
  --pf-t--global--font--weight--200: 500;
73
- --pf-t--global--font--weight--300: 700;
73
+ --pf-t--global--font--weight--300: 500;
74
74
  --pf-t--global--font--weight--400: 700;
75
75
  --pf-t--global--icon--size--100: 0.75rem;
76
76
  --pf-t--global--icon--size--200: 0.875rem;
77
77
  --pf-t--global--icon--size--250: 1rem;
78
- --pf-t--global--icon--size--300: 1.375rem;
78
+ --pf-t--global--icon--size--300: 1.5rem;
79
79
  --pf-t--global--icon--size--400: 3.5rem;
80
80
  --pf-t--global--icon--size--500: 6rem;
81
81
  --pf-t--global--spacer--100: 0.25rem;
@@ -86,6 +86,10 @@
86
86
  --pf-t--global--spacer--600: 3rem;
87
87
  --pf-t--global--spacer--700: 4rem;
88
88
  --pf-t--global--spacer--800: 5rem;
89
+ --pf-t--global--text-decoration--line--100: none;
90
+ --pf-t--global--text-decoration--line--200: underline;
91
+ --pf-t--global--text-decoration--style--100: solid;
92
+ --pf-t--global--text-decoration--style--200: dashed;
89
93
  --pf-t--global--timing-function--100: cubic-bezier(.4, 0, .7, .2);
90
94
  --pf-t--global--timing-function--200: cubic-bezier(.4, 0, .2, 1);
91
95
  --pf-t--global--timing-function--300: cubic-bezier(0, 0, .2, 1);
@@ -107,6 +111,7 @@
107
111
  --pf-t--global--border--color--100: var(--pf-t--color--gray--30);
108
112
  --pf-t--global--border--color--200: var(--pf-t--color--gray--40);
109
113
  --pf-t--global--border--color--300: var(--pf-t--color--gray--50);
114
+ --pf-t--global--border--color--50: var(--pf-t--color--gray--20);
110
115
  --pf-t--global--border--radius--large: var(--pf-t--global--border--radius--400);
111
116
  --pf-t--global--border--radius--medium: var(--pf-t--global--border--radius--300);
112
117
  --pf-t--global--border--radius--pill: var(--pf-t--global--border--radius--500);
@@ -236,8 +241,8 @@
236
241
  --pf-t--global--font--family--body: var(--pf-t--global--font--family--100);
237
242
  --pf-t--global--font--family--heading: var(--pf-t--global--font--family--200);
238
243
  --pf-t--global--font--family--mono: var(--pf-t--global--font--family--300);
239
- --pf-t--global--font--line-height--body: var(--pf-t--global--font--line-height--100);
240
- --pf-t--global--font--line-height--heading: var(--pf-t--global--font--line-height--200);
244
+ --pf-t--global--font--line-height--body: var(--pf-t--global--font--line-height--200);
245
+ --pf-t--global--font--line-height--heading: var(--pf-t--global--font--line-height--100);
241
246
  --pf-t--global--font--size--2xl: var(--pf-t--global--font--size--600);
242
247
  --pf-t--global--font--size--3xl: var(--pf-t--global--font--size--700);
243
248
  --pf-t--global--font--size--4xl: var(--pf-t--global--font--size--800);
@@ -246,8 +251,10 @@
246
251
  --pf-t--global--font--size--sm: var(--pf-t--global--font--size--200);
247
252
  --pf-t--global--font--size--xl: var(--pf-t--global--font--size--500);
248
253
  --pf-t--global--font--size--xs: var(--pf-t--global--font--size--100);
249
- --pf-t--global--font--weight--body: var(--pf-t--global--font--weight--100);
250
- --pf-t--global--font--weight--heading: var(--pf-t--global--font--weight--300);
254
+ --pf-t--global--font--weight--body--bold: var(--pf-t--global--font--weight--200);
255
+ --pf-t--global--font--weight--body--default: var(--pf-t--global--font--weight--100);
256
+ --pf-t--global--font--weight--heading--bold: var(--pf-t--global--font--weight--400);
257
+ --pf-t--global--font--weight--heading--default: var(--pf-t--global--font--weight--300);
251
258
  --pf-t--global--icon--color--100: var(--pf-t--color--gray--90);
252
259
  --pf-t--global--icon--color--200: var(--pf-t--color--gray--50);
253
260
  --pf-t--global--icon--color--300: var(--pf-t--color--white);
@@ -286,6 +293,18 @@
286
293
  --pf-t--global--text--color--link--100: var(--pf-t--color--blue--50);
287
294
  --pf-t--global--text--color--link--200: var(--pf-t--color--blue--60);
288
295
  --pf-t--global--text--color--link--300: var(--pf-t--color--purple--50);
296
+ --pf-t--global--text-decoration--editable-text--line--default: var(--pf-t--global--text-decoration--line--200);
297
+ --pf-t--global--text-decoration--editable-text--line--hover: var(--pf-t--global--text-decoration--line--200);
298
+ --pf-t--global--text-decoration--editable-text--style--default: var(--pf-t--global--text-decoration--style--200);
299
+ --pf-t--global--text-decoration--editable-text--style--hover: var(--pf-t--global--text-decoration--style--200);
300
+ --pf-t--global--text-decoration--help-text--line--default: var(--pf-t--global--text-decoration--line--200);
301
+ --pf-t--global--text-decoration--help-text--line--hover: var(--pf-t--global--text-decoration--line--200);
302
+ --pf-t--global--text-decoration--help-text--style--default: var(--pf-t--global--text-decoration--style--200);
303
+ --pf-t--global--text-decoration--help-text--style--hover: var(--pf-t--global--text-decoration--style--200);
304
+ --pf-t--global--text-decoration--link--line--default: var(--pf-t--global--text-decoration--line--200);
305
+ --pf-t--global--text-decoration--link--line--hover: var(--pf-t--global--text-decoration--line--200);
306
+ --pf-t--global--text-decoration--link--style--default: var(--pf-t--global--text-decoration--style--100);
307
+ --pf-t--global--text-decoration--link--style--hover: var(--pf-t--global--text-decoration--style--100);
289
308
  --pf-t--global--z-index--2xl: var(--pf-t--global--z-index--600);
290
309
  --pf-t--global--z-index--lg: var(--pf-t--global--z-index--400);
291
310
  --pf-t--global--z-index--md: var(--pf-t--global--z-index--300);
@@ -294,6 +313,7 @@
294
313
  --pf-t--global--z-index--xs: var(--pf-t--global--z-index--100);
295
314
  --pf-t--global--background--color--action--plain--alt--clicked: var(--pf-t--global--background--color--100);
296
315
  --pf-t--global--background--color--action--plain--alt--hover: var(--pf-t--global--background--color--100);
316
+ --pf-t--global--background--color--control--read-only: var(--pf-t--global--background--color--200);
297
317
  --pf-t--global--background--color--disabled--default: var(--pf-t--global--color--disabled--100);
298
318
  --pf-t--global--background--color--floating--clicked: var(--pf-t--global--background--color--200);
299
319
  --pf-t--global--background--color--floating--default: var(--pf-t--global--background--color--100);
@@ -308,6 +328,7 @@
308
328
  --pf-t--global--background--color--secondary--default: var(--pf-t--global--background--color--200);
309
329
  --pf-t--global--background--color--secondary--hover: var(--pf-t--global--background--color--300);
310
330
  --pf-t--global--border--color--clicked: var(--pf-t--global--color--brand--200);
331
+ --pf-t--global--border--color--control--read-only: var(--pf-t--global--border--color--50);
311
332
  --pf-t--global--border--color--default: var(--pf-t--global--border--color--100);
312
333
  --pf-t--global--border--color--disabled: var(--pf-t--global--color--disabled--200);
313
334
  --pf-t--global--border--color--hover: var(--pf-t--global--color--brand--100);
@@ -435,10 +456,9 @@
435
456
  --pf-t--global--motion--duration--slide-out--short: var(--pf-t--global--motion--duration--lg);
436
457
  --pf-t--global--spacer--action--horizontal--compact: var(--pf-t--global--spacer--md);
437
458
  --pf-t--global--spacer--action--horizontal--default: var(--pf-t--global--spacer--lg);
438
- --pf-t--global--spacer--action--horizontal--plain: var(--pf-t--global--spacer--sm);
459
+ --pf-t--global--spacer--action--horizontal--plain--compact: var(--pf-t--global--spacer--xs);
460
+ --pf-t--global--spacer--action--horizontal--plain--default: var(--pf-t--global--spacer--sm);
439
461
  --pf-t--global--spacer--action--horizontal--spacious: var(--pf-t--global--spacer--xl);
440
- --pf-t--global--spacer--action--vertical--compact: var(--pf-t--global--spacer--xs);
441
- --pf-t--global--spacer--action--vertical--spacious: var(--pf-t--global--spacer--md);
442
462
  --pf-t--global--spacer--control--horizontal--compact: var(--pf-t--global--spacer--sm);
443
463
  --pf-t--global--spacer--control--horizontal--default: var(--pf-t--global--spacer--md);
444
464
  --pf-t--global--spacer--control--horizontal--plain: var(--pf-t--global--spacer--sm);
@@ -446,14 +466,20 @@
446
466
  --pf-t--global--spacer--control--vertical--compact: var(--pf-t--global--spacer--xs);
447
467
  --pf-t--global--spacer--control--vertical--default: var(--pf-t--global--spacer--sm);
448
468
  --pf-t--global--spacer--control--vertical--plain: var(--pf-t--global--spacer--sm);
469
+ --pf-t--global--spacer--control--vertical--spacious: var(--pf-t--global--spacer--md);
449
470
  --pf-t--global--spacer--gap--action-to-action--default: var(--pf-t--global--spacer--md);
450
471
  --pf-t--global--spacer--gap--action-to-action--plain: var(--pf-t--global--spacer--xs);
451
472
  --pf-t--global--spacer--gap--control-to-control--default: var(--pf-t--global--spacer--xs);
452
473
  --pf-t--global--spacer--gap--group--horizontal: var(--pf-t--global--spacer--md);
453
474
  --pf-t--global--spacer--gap--group--vertical: var(--pf-t--global--spacer--sm);
454
- --pf-t--global--spacer--gap--group-to-group--horizontal: var(--pf-t--global--spacer--2xl);
455
- --pf-t--global--spacer--gap--group-to-group--vertical: var(--pf-t--global--spacer--lg);
475
+ --pf-t--global--spacer--gap--group-to-group--horizontal--compact: var(--pf-t--global--spacer--sm);
476
+ --pf-t--global--spacer--gap--group-to-group--horizontal--default: var(--pf-t--global--spacer--2xl);
477
+ --pf-t--global--spacer--gap--group-to-group--vertical--compact: var(--pf-t--global--spacer--md);
478
+ --pf-t--global--spacer--gap--group-to-group--vertical--default: var(--pf-t--global--spacer--lg);
479
+ --pf-t--global--spacer--gap--text-to-element--compact: var(--pf-t--global--spacer--xs);
456
480
  --pf-t--global--spacer--gap--text-to-element--default: var(--pf-t--global--spacer--sm);
481
+ --pf-t--global--spacer--gutter--default: var(--pf-t--global--spacer--md);
482
+ --pf-t--global--spacer--inset--page-chrome: var(--pf-t--global--spacer--lg);
457
483
  --pf-t--global--text--color--disabled: var(--pf-t--global--color--disabled--200);
458
484
  --pf-t--global--text--color--inverse: var(--pf-t--global--text--color--300);
459
485
  --pf-t--global--text--color--link--default: var(--pf-t--global--text--color--link--100);
@@ -467,6 +493,8 @@
467
493
  --pf-t--global--text--color--status--warning--default: var(--pf-t--global--color--status--warning--200);
468
494
  --pf-t--global--text--color--status--warning--hover: var(--pf-t--global--color--status--warning--300);
469
495
  --pf-t--global--text--color--subtle: var(--pf-t--global--text--color--200);
496
+ --pf-t--global--text-decoration--offset--default: var(--pf-t--global--spacer--xs);
497
+ --pf-t--global--text-decoration--width--default: var(--pf-t--global--border--width--regular);
470
498
  --pf-t--global--background--color--control--default: var(--pf-t--global--background--color--primary--default);
471
499
  --pf-t--global--border--color--alt: var(--pf-t--global--background--color--primary--default);
472
500
  --pf-t--global--border--color--brand--clicked: var(--pf-t--global--color--brand--clicked);
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Tue, 02 Jul 2024 18:11:52 GMT
3
+ // Generated on Fri, 13 Sep 2024 01:51:18 GMT
4
4
 
5
5
  @mixin pf-v6-tokens {
6
6
  --pf-t--color--black: #000000;
package/build.js CHANGED
@@ -2,6 +2,21 @@
2
2
  const StyleDictionary = require('style-dictionary');
3
3
  const config = require('./config.default.json'); // Adjust the path if necessary
4
4
  const basePxFontSize = config.basePxFontSize || 16;
5
+ const getTokenLayer = ({ filePath }) => {
6
+ if (filePath.includes('semantic.json')) return ['semantic', 'colors'];
7
+ if (filePath.includes('semantic.dark.json')) return ['semantic', 'colors'];
8
+ if (filePath.includes('semantic.dimension.json')) return ['semantic', 'dimension'];
9
+ if (filePath.includes('semantic.motion.json')) return ['semantic', 'motion'];
10
+ if (filePath.includes('base.json')) return ['base', 'colors'];
11
+ if (filePath.includes('base.dark.json')) return ['base', 'colors'];
12
+ if (filePath.includes('base.dimension.json')) return ['base', 'dimension'];
13
+ if (filePath.includes('base.motion.json')) return ['base', 'motion'];
14
+ if (filePath.includes('chart')) return ['chart'];
15
+ if (filePath.includes('palette.color.json')) return ['palette'];
16
+ return ['palette'];
17
+ };
18
+ // returns subdirectory within 'tokens' directory (ex: default, dark, etc)
19
+ const getTheme = ({ filePath }) => /tokens\/([^\/]*)\//gm.exec(filePath)[1];
5
20
 
6
21
  const build = (selector) => {
7
22
  const { fileHeader, formattedVariables, sortByName } = StyleDictionary.formatHelpers;
@@ -25,6 +40,43 @@ const build = (selector) => {
25
40
  }
26
41
  });
27
42
 
43
+ StyleDictionary.registerFormat({
44
+ name: 'json/flat-categories',
45
+ formatter: function (dictionary) {
46
+ let tokens = {
47
+ semantic: {
48
+ colors: {},
49
+ dimension: {},
50
+ motion: {}
51
+ },
52
+ base: {
53
+ colors: {},
54
+ dimension: {},
55
+ motion: {}
56
+ },
57
+ palette: {},
58
+ chart: {}
59
+ };
60
+ dictionary.allTokens.map((token) => {
61
+ // determine token type based on tokens filepath
62
+ const theme = getTheme(token);
63
+ const layer = getTokenLayer(token);
64
+ let insertLayer = tokens;
65
+ while (layer.length) {
66
+ insertLayer = insertLayer[layer.shift()];
67
+ }
68
+ // assign each token object to token.name
69
+ insertLayer[token.name] = {};
70
+ insertLayer[token.name][theme] = token;
71
+ // attach references to build token chain
72
+ if (dictionary.usesReference(token.original.value)) {
73
+ token.references = dictionary.getReferences(token.original.value);
74
+ }
75
+ });
76
+ return JSON.stringify(tokens, null, 2);
77
+ }
78
+ });
79
+
28
80
  // Register custom transforms
29
81
  StyleDictionary.registerTransform({
30
82
  name: 'patternfly/global/px',
@@ -39,9 +91,7 @@ const build = (selector) => {
39
91
  name: 'patternfly/global/pxToRem',
40
92
  type: 'value',
41
93
  matcher: (token) =>
42
- token.attributes.type === 'spacer' ||
43
- token.attributes.item === 'size' ||
44
- token.attributes.type === 'breakpoint',
94
+ token.attributes.type === 'spacer' || token.attributes.item === 'size' || token.attributes.type === 'breakpoint',
45
95
  transformer: (token) => `${token.value / basePxFontSize}rem`
46
96
  });
47
97
 
@@ -83,6 +133,8 @@ const build = (selector) => {
83
133
  const paletteExtendedSD = StyleDictionary.extend(__dirname + '/config.palette-colors.json');
84
134
  const chartsExtendedSD = StyleDictionary.extend(__dirname + '/config.charts.json');
85
135
  const chartsDarkExtendedSD = StyleDictionary.extend(__dirname + '/config.charts.dark.json');
136
+ const layersSD = StyleDictionary.extend(__dirname + '/config.layers.json');
137
+ const layersDarkSD = StyleDictionary.extend(__dirname + '/config.layers.dark.json');
86
138
 
87
139
  // Build all
88
140
  defaultExtendedSD.buildAllPlatforms();
@@ -90,6 +142,8 @@ const build = (selector) => {
90
142
  paletteExtendedSD.buildAllPlatforms();
91
143
  chartsExtendedSD.buildAllPlatforms();
92
144
  chartsDarkExtendedSD.buildAllPlatforms();
145
+ layersSD.buildAllPlatforms();
146
+ layersDarkSD.buildAllPlatforms();
93
147
 
94
148
  console.log('\n============================');
95
149
  console.log('\nBuild completed.');
package/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const { program } = require('commander');
2
- const {build} = require('./build');
2
+ const { build } = require('./build');
3
3
 
4
4
  program
5
5
  .version(require('./package.json').version)
@@ -0,0 +1,20 @@
1
+ {
2
+ "include": ["tokens/default/*.json"],
3
+ "source": ["tokens/dark/*.json"],
4
+ "platforms": {
5
+ "json/default": {
6
+ "transformGroup": "patternfly/css",
7
+ "buildPath": "patternfly-docs/content/",
8
+ "prefix": "pf-t",
9
+ "files": [
10
+ {
11
+ "destination": "token-layers-dark.json",
12
+ "format": "json/flat-categories",
13
+ "options": {
14
+ "outputReferences": false
15
+ }
16
+ }
17
+ ]
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "source": ["tokens/default/*.json"],
3
+ "platforms": {
4
+ "json/default": {
5
+ "transformGroup": "patternfly/css",
6
+ "buildPath": "patternfly-docs/content/",
7
+ "prefix": "pf-t",
8
+ "files": [
9
+ {
10
+ "destination": "token-layers-default.json",
11
+ "format": "json/flat-categories",
12
+ "options": {
13
+ "outputReferences": false
14
+ }
15
+ }
16
+ ]
17
+ }
18
+ }
19
+ }
package/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@patternfly/design-tokens",
3
- "version": "1.12.0",
3
+ "version": "1.13.1",
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",
7
7
  "scripts": {
8
- "build": "yarn build:js-from-scss",
8
+ "build": "yarn build:scss",
9
9
  "build:fed:packages": "node generate-fed-package-json.js",
10
10
  "build:scss": "node ./cli.js",
11
- "build:js-from-scss": "node ./build-js-for-docs.js",
12
11
  "build:plugin": "webpack",
13
12
  "clean": "rimraf dist",
14
13
  "docs:develop": "pf-docs-framework start",
15
- "docs:build": "yarn build:js-from-scss && pf-docs-framework build all --output public",
14
+ "docs:build": "yarn build:scss && pf-docs-framework build all --output public",
16
15
  "docs:serve": "pf-docs-framework serve public --port 5000",
17
16
  "docs:screenshots": "pf-docs-framework screenshots --urlPrefix http://localhost:5000",
18
17
  "test:a11y": "patternfly-a11y --config patternfly-a11y.config",
@@ -32,7 +31,7 @@
32
31
  "access": "public"
33
32
  },
34
33
  "dependencies": {
35
- "@patternfly/react-core": "^6.0.0-alpha.36",
34
+ "@patternfly/react-core": "6.0.0-alpha.94",
36
35
  "commander": "^12.0.0"
37
36
  },
38
37
  "peerDependencies": {
@@ -41,11 +40,11 @@
41
40
  },
42
41
  "devDependencies": {
43
42
  "@figma/plugin-typings": "^1.95.0",
44
- "@patternfly/documentation-framework": "6.0.0-alpha.12",
45
- "@patternfly/patternfly": "6.0.0-alpha.91",
43
+ "@patternfly/documentation-framework": "^6.0.0-alpha.66",
44
+ "@patternfly/patternfly": "6.0.0-alpha.205",
46
45
  "@patternfly/patternfly-a11y": "^4.3.1",
47
- "@patternfly/react-code-editor": "6.0.0-alpha.36",
48
- "@patternfly/react-table": "6.0.0-alpha.36",
46
+ "@patternfly/react-code-editor": "6.0.0-alpha.94",
47
+ "@patternfly/react-table": "6.0.0-alpha.95",
49
48
  "css-loader": "^7.1.2",
50
49
  "html-inline-script-webpack-plugin": "^3.2.1",
51
50
  "html-webpack-plugin": "^5.6.0",
@@ -3,7 +3,8 @@ section: tokens
3
3
  id: All PatternFly tokens
4
4
  ---
5
5
 
6
-
6
+ import * as defaultTokens from './token-layers-default.json';
7
+ import * as darkTokens from './token-layers-dark.json';
7
8
  import { TokensTable } from './tokensTable.js';
8
9
 
9
- <TokensTable/>
10
+ <TokensTable tokenJson={{default: defaultTokens, dark: darkTokens}} />