@patternfly/design-tokens 1.15.0 → 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 (45) hide show
  1. package/build/css/tokens-dark.scss +15 -14
  2. package/build/css/tokens-default.scss +8 -5
  3. package/build/css/tokens-glass-dark.scss +9 -5
  4. package/build/css/tokens-glass.scss +14 -7
  5. package/build/css/tokens-palette.scss +1 -1
  6. package/build/css/tokens-redhat-dark.scss +8 -2
  7. package/build/css/tokens-redhat-glass-dark.scss +14 -5
  8. package/build/css/tokens-redhat-glass.scss +14 -7
  9. package/build/css/tokens-redhat-highcontrast-dark.scss +2 -8
  10. package/build/css/tokens-redhat-highcontrast.scss +1 -1
  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 +465 -333
  15. package/patternfly-docs/content/token-layers-glass.json +12130 -212
  16. package/patternfly-docs/content/token-layers-highcontrast-dark.json +491 -220
  17. package/patternfly-docs/content/token-layers-highcontrast.json +727 -438
  18. package/patternfly-docs/content/token-layers-redhat-dark.json +307 -201
  19. package/patternfly-docs/content/token-layers-redhat-glass-dark.json +364 -238
  20. package/patternfly-docs/content/token-layers-redhat-glass.json +12286 -368
  21. package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +263 -157
  22. package/patternfly-docs/content/token-layers-redhat-highcontrast.json +727 -438
  23. package/patternfly-docs/content/token-layers-redhat.json +1086 -797
  24. package/tokens/default/dark/base.dark.json +2 -2
  25. package/tokens/default/dark/charts.dark.json +4 -4
  26. package/tokens/default/dark/semantic.dark.json +31 -17
  27. package/tokens/default/glass/semantic.dimension.glass.json +1109 -0
  28. package/tokens/default/glass/semantic.glass.json +30 -16
  29. package/tokens/default/glass-dark/base.dark.json +2 -2
  30. package/tokens/default/glass-dark/semantic.glass.dark.json +34 -20
  31. package/tokens/default/highcontrast/semantic.dimension.highcontrast.json +46 -34
  32. package/tokens/default/highcontrast/semantic.highcontrast.json +24 -10
  33. package/tokens/default/highcontrast-dark/base.dark.json +2 -2
  34. package/tokens/default/highcontrast-dark/semantic.highcontrast.dark.json +27 -13
  35. package/tokens/default/light/charts.json +4 -4
  36. package/tokens/default/light/semantic.dimension.json +46 -34
  37. package/tokens/default/light/semantic.json +24 -10
  38. package/tokens/default/light/semantic.motion.json +28 -28
  39. package/tokens/redhat/dark/redhat.color.dark.json +24 -24
  40. package/tokens/redhat/glass/redhat.color.glass.json +5 -5
  41. package/tokens/redhat/glass/redhat.dimension.glass.json +2 -0
  42. package/tokens/redhat/glass-dark/redhat.color.glass.dark.json +19 -19
  43. package/tokens/redhat/highcontrast/redhat.color.highcontrast.json +5 -5
  44. package/tokens/redhat/highcontrast-dark/redhat.color.highcontrast.dark.json +5 -5
  45. package/tokens/redhat/light/redhat.color.json +5 -5
@@ -33,6 +33,12 @@
33
33
  "type": "number",
34
34
  "value": "{global.border.radius.500}"
35
35
  },
36
+ "glass": {
37
+ "default": {
38
+ "type": "number",
39
+ "value": "{global.border.radius.medium}"
40
+ }
41
+ },
36
42
  "control": {
37
43
  "default": {
38
44
  "type": "number",
@@ -57,6 +63,11 @@
57
63
  }
58
64
  },
59
65
  "width": {
66
+ "regular": {
67
+ "description": "Use as the default border width for elements.",
68
+ "type": "number",
69
+ "value": "{global.border.width.100}"
70
+ },
60
71
  "divider": {
61
72
  "default": {
62
73
  "description": "Use as the default border width for dividers.",
@@ -74,11 +85,6 @@
74
85
  "value": "{global.border.width.100}"
75
86
  }
76
87
  },
77
- "regular": {
78
- "description": "Use as the default border width for elements.",
79
- "type": "number",
80
- "value": "{global.border.width.100}"
81
- },
82
88
  "strong": {
83
89
  "description": "Use as a stronger/wider border width for elements.",
84
90
  "type": "number",
@@ -89,6 +95,12 @@
89
95
  "type": "number",
90
96
  "value": "{global.border.width.300}"
91
97
  },
98
+ "glass": {
99
+ "default": {
100
+ "type": "number",
101
+ "value": "{global.border.width.regular}"
102
+ }
103
+ },
92
104
  "box": {
93
105
  "default": {
94
106
  "description": "Use as the default border width for containers like cards, panels, code editors, etc.",
@@ -421,23 +433,6 @@
421
433
  "value": "{global.icon.size.400}"
422
434
  },
423
435
  "font": {
424
- "body": {
425
- "sm": {
426
- "description": "Use for icons that are placed inline with small body text",
427
- "type": "number",
428
- "value": "{global.font.size.body.sm}"
429
- },
430
- "default": {
431
- "description": "Use for icons that are placed inline with default body text",
432
- "type": "number",
433
- "value": "{global.font.size.body.default}"
434
- },
435
- "lg": {
436
- "description": "Use for icons that are placed inline with large body text",
437
- "type": "number",
438
- "value": "{global.font.size.body.lg}"
439
- }
440
- },
441
436
  "heading": {
442
437
  "h1": {
443
438
  "description": "Use for icons that are placed inline with first level headings",
@@ -470,6 +465,23 @@
470
465
  "value": "{global.font.size.heading.h6}"
471
466
  }
472
467
  },
468
+ "body": {
469
+ "sm": {
470
+ "description": "Use for icons that are placed inline with small body text",
471
+ "type": "number",
472
+ "value": "{global.font.size.body.sm}"
473
+ },
474
+ "default": {
475
+ "description": "Use for icons that are placed inline with default body text",
476
+ "type": "number",
477
+ "value": "{global.font.size.body.default}"
478
+ },
479
+ "lg": {
480
+ "description": "Use for icons that are placed inline with large body text",
481
+ "type": "number",
482
+ "value": "{global.font.size.body.lg}"
483
+ }
484
+ },
473
485
  "xs": {
474
486
  "description": "Use for icons that are placed inline with font–size–xs text",
475
487
  "type": "number",
@@ -519,6 +531,18 @@
519
531
  }
520
532
  },
521
533
  "font": {
534
+ "line-height": {
535
+ "body": {
536
+ "description": "Use to define the line height for body text",
537
+ "type": "number",
538
+ "value": "{global.font.line-height.200}"
539
+ },
540
+ "heading": {
541
+ "description": "Use to define the line height for heading text",
542
+ "type": "number",
543
+ "value": "{global.font.line-height.100}"
544
+ }
545
+ },
522
546
  "weight": {
523
547
  "body": {
524
548
  "default": {
@@ -545,18 +569,6 @@
545
569
  }
546
570
  }
547
571
  },
548
- "line-height": {
549
- "body": {
550
- "description": "Use to define the line height for body text",
551
- "type": "number",
552
- "value": "{global.font.line-height.200}"
553
- },
554
- "heading": {
555
- "description": "Use to define the line height for heading text",
556
- "type": "number",
557
- "value": "{global.font.line-height.100}"
558
- }
559
- },
560
572
  "family": {
561
573
  "body": {
562
574
  "description": "Use to define the font family for body text",
@@ -46,12 +46,10 @@
46
46
  },
47
47
  "glass": {
48
48
  "primary": {
49
- "type": "color",
50
- "value": "{global.background.color.primary.default}"
51
- },
52
- "floating": {
53
- "type": "color",
54
- "value": "{global.background.color.floating.default}"
49
+ "default": {
50
+ "type": "color",
51
+ "value": "{global.background.color.primary.default}"
52
+ }
55
53
  }
56
54
  },
57
55
  "floating": {
@@ -69,6 +67,12 @@
69
67
  "description": "Use as the clicked state for floating backgrounds",
70
68
  "type": "color",
71
69
  "value": "{global.background.color.200}"
70
+ },
71
+ "secondary": {
72
+ "default": {
73
+ "type": "color",
74
+ "value": "{global.background.color.secondary.default}"
75
+ }
72
76
  }
73
77
  },
74
78
  "sticky": {
@@ -163,6 +167,14 @@
163
167
  "value": "{global.background.color.500}"
164
168
  }
165
169
  },
170
+ "striped": {
171
+ "row": {
172
+ "default": {
173
+ "type": "color",
174
+ "value": "{global.background.color.700}"
175
+ }
176
+ }
177
+ },
166
178
  "loading": {
167
179
  "skeleton": {
168
180
  "default": {
@@ -182,10 +194,6 @@
182
194
  "primary": {
183
195
  "type": "number",
184
196
  "value": 0
185
- },
186
- "floating": {
187
- "type": "number",
188
- "value": 0
189
197
  }
190
198
  }
191
199
  }
@@ -1277,6 +1285,12 @@
1277
1285
  "type": "color",
1278
1286
  "value": "{global.border.color.300}"
1279
1287
  },
1288
+ "glass": {
1289
+ "default": {
1290
+ "type": "color",
1291
+ "value": "{global.border.color.subtle}"
1292
+ }
1293
+ },
1280
1294
  "nonstatus": {
1281
1295
  "red": {
1282
1296
  "default": {
@@ -38,55 +38,38 @@
38
38
  "type": "number",
39
39
  "value": "{global.duration.600}"
40
40
  },
41
- "fade": {
42
- "short": {
43
- "description": "Use a short/quick fade to transition color and/or opacity. Useful for fading in one or more elements. Short fades are used for small elements traveling short distances. Used in small interactions like buttons.",
44
- "type": "number",
45
- "value": "{global.motion.duration.sm}"
46
- },
47
- "default": {
48
- "description": "Use a default fade to transition color and/or opacity. Useful for fading in one or more elements. Default fades are used for medium sized elements traveling medium distances. Used on alerts.",
49
- "type": "number",
50
- "value": "{global.motion.duration.md}"
51
- },
52
- "long": {
53
- "description": "Use a long fade to transition color and/or opacity. Useful for fading in one or more elements. Long fades are used for large elements traveling long distances.",
54
- "type": "number",
55
- "value": "{global.motion.duration.lg}"
56
- }
57
- },
58
- "slide-in": {
41
+ "slide-out": {
59
42
  "short": {
60
- "description": "Use for a short duration of a slide-in animation, which moves an offscreen element into the viewport.",
43
+ "description": "Use for a shorter duration of a slide-out animation, which moves an element out of the viewport.",
61
44
  "type": "number",
62
45
  "value": "{global.motion.duration.lg}"
63
46
  },
64
47
  "default": {
65
- "description": "Use for a default duration of a slide-in animation, which moves an offscreen element into the viewport.",
48
+ "description": "Use as the default duration of a slide-out animation, which moves an element out of the viewport.",
66
49
  "type": "number",
67
50
  "value": "{global.motion.duration.xl}"
68
51
  },
69
52
  "long": {
70
- "description": "Use for a longer duration of a slide-in animation, which moves an offscreen element into the viewport.",
53
+ "description": "Use for a longer duration of a slide-out animation, which moves an element out of the viewport.",
71
54
  "type": "number",
72
55
  "value": "{global.motion.duration.2xl}"
73
56
  }
74
57
  },
75
- "slide-out": {
58
+ "fade": {
76
59
  "short": {
77
- "description": "Use for a shorter duration of a slide-out animation, which moves an element out of the viewport.",
60
+ "description": "Use a short/quick fade to transition color and/or opacity. Useful for fading in one or more elements. Short fades are used for small elements traveling short distances. Used in small interactions like buttons.",
78
61
  "type": "number",
79
- "value": "{global.motion.duration.lg}"
62
+ "value": "{global.motion.duration.sm}"
80
63
  },
81
64
  "default": {
82
- "description": "Use as the default duration of a slide-out animation, which moves an element out of the viewport.",
65
+ "description": "Use a default fade to transition color and/or opacity. Useful for fading in one or more elements. Default fades are used for medium sized elements traveling medium distances. Used on alerts.",
83
66
  "type": "number",
84
- "value": "{global.motion.duration.xl}"
67
+ "value": "{global.motion.duration.md}"
85
68
  },
86
69
  "long": {
87
- "description": "Use for a longer duration of a slide-out animation, which moves an element out of the viewport.",
70
+ "description": "Use a long fade to transition color and/or opacity. Useful for fading in one or more elements. Long fades are used for large elements traveling long distances.",
88
71
  "type": "number",
89
- "value": "{global.motion.duration.2xl}"
72
+ "value": "{global.motion.duration.lg}"
90
73
  }
91
74
  },
92
75
  "icon": {
@@ -105,6 +88,23 @@
105
88
  "type": "number",
106
89
  "value": "{global.motion.duration.md}"
107
90
  }
91
+ },
92
+ "slide-in": {
93
+ "short": {
94
+ "description": "Use for a short duration of a slide-in animation, which moves an offscreen element into the viewport.",
95
+ "type": "number",
96
+ "value": "{global.motion.duration.lg}"
97
+ },
98
+ "default": {
99
+ "description": "Use for a default duration of a slide-in animation, which moves an offscreen element into the viewport.",
100
+ "type": "number",
101
+ "value": "{global.motion.duration.xl}"
102
+ },
103
+ "long": {
104
+ "description": "Use for a longer duration of a slide-in animation, which moves an offscreen element into the viewport.",
105
+ "type": "number",
106
+ "value": "{global.motion.duration.2xl}"
107
+ }
108
108
  }
109
109
  },
110
110
  "delay": {
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.dark.color.brand.accent.200}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.dark.color.brand.accent.100}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.dark.color.brand.accent.200}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",
@@ -54,13 +54,13 @@
54
54
  "type": "color",
55
55
  "value": "{global.text.color.regular}"
56
56
  },
57
- "clicked": {
58
- "description": "Use as the clicked state color for text placed on a brand-colored background.",
57
+ "default": {
58
+ "description": "Use as the default color for text placed on a brand-colored background.",
59
59
  "type": "color",
60
60
  "value": "{global.text.color.regular}"
61
61
  },
62
- "default": {
63
- "description": "Use as the default color for text placed on a brand-colored background.",
62
+ "clicked": {
63
+ "description": "Use as the clicked state color for text placed on a brand-colored background.",
64
64
  "type": "color",
65
65
  "value": "{global.text.color.regular}"
66
66
  }
@@ -70,36 +70,36 @@
70
70
  },
71
71
  "icon": {
72
72
  "color": {
73
- "on-brand": {
73
+ "brand": {
74
74
  "accent": {
75
75
  "hover": {
76
- "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.",
76
+ "description": "Use as the hover state color for icons that convey your brand and/or are paired with branded text color.",
77
77
  "type": "color",
78
- "value": "{global.icon.color.regular}"
78
+ "value": "{global.dark.color.brand.accent.300}"
79
79
  },
80
80
  "clicked": {
81
- "description": "Use as the clicked state color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
82
- "type": "color",
83
- "value": "{global.icon.color.regular}"
84
- },
85
- "default": {
86
- "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.",
81
+ "description": "Use as the clicked state for icons that convey your brand and/or are paired with branded text color.",
87
82
  "type": "color",
88
- "value": "{global.icon.color.regular}"
83
+ "value": "{global.dark.color.brand.accent.300}"
89
84
  }
90
85
  }
91
86
  },
92
- "brand": {
87
+ "on-brand": {
93
88
  "accent": {
89
+ "default": {
90
+ "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.",
91
+ "type": "color",
92
+ "value": "{global.icon.color.regular}"
93
+ },
94
94
  "clicked": {
95
- "description": "Use as the clicked state for icons that convey your brand and/or are paired with branded text color.",
95
+ "description": "Use as the clicked state color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
96
96
  "type": "color",
97
- "value": "{global.dark.color.brand.accent.300}"
97
+ "value": "{global.icon.color.regular}"
98
98
  },
99
99
  "hover": {
100
- "description": "Use as the hover state color for icons that convey your brand and/or are paired with branded text color.",
100
+ "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.",
101
101
  "type": "color",
102
- "value": "{global.dark.color.brand.accent.300}"
102
+ "value": "{global.icon.color.regular}"
103
103
  }
104
104
  }
105
105
  }
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.color.brand.accent.200}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.color.brand.accent.100}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.color.brand.accent.200}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.dark.color.brand.accent.200}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.dark.color.brand.accent.100}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.dark.color.brand.accent.200}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",
@@ -54,13 +54,13 @@
54
54
  "type": "color",
55
55
  "value": "{global.text.color.regular}"
56
56
  },
57
- "clicked": {
58
- "description": "Use as the clicked state color for text placed on a brand-colored background.",
57
+ "default": {
58
+ "description": "Use as the default color for text placed on a brand-colored background.",
59
59
  "type": "color",
60
60
  "value": "{global.text.color.regular}"
61
61
  },
62
- "default": {
63
- "description": "Use as the default color for text placed on a brand-colored background.",
62
+ "clicked": {
63
+ "description": "Use as the clicked state color for text placed on a brand-colored background.",
64
64
  "type": "color",
65
65
  "value": "{global.text.color.regular}"
66
66
  }
@@ -70,31 +70,31 @@
70
70
  },
71
71
  "icon": {
72
72
  "color": {
73
- "on-brand": {
73
+ "brand": {
74
74
  "accent": {
75
75
  "hover": {
76
- "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.",
76
+ "description": "Use as the hover state color for icons that convey your brand and/or are paired with branded text color.",
77
77
  "type": "color",
78
- "value": "{global.icon.color.regular}"
78
+ "value": "{global.dark.color.brand.accent.300}"
79
79
  },
80
80
  "clicked": {
81
- "description": "Use as the clicked state color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
81
+ "description": "Use as the clicked state for icons that convey your brand and/or are paired with branded text color.",
82
82
  "type": "color",
83
- "value": "{global.icon.color.regular}"
83
+ "value": "{global.dark.color.brand.accent.300}"
84
84
  }
85
85
  }
86
86
  },
87
- "brand": {
87
+ "on-brand": {
88
88
  "accent": {
89
89
  "clicked": {
90
- "description": "Use as the clicked state for icons that convey your brand and/or are paired with branded text color.",
90
+ "description": "Use as the clicked state color for icons that are placed on a brand background color and/or are paired with on-brand colored text.",
91
91
  "type": "color",
92
- "value": "{global.dark.color.brand.accent.300}"
92
+ "value": "{global.icon.color.regular}"
93
93
  },
94
94
  "hover": {
95
- "description": "Use as the hover state color for icons that convey your brand and/or are paired with branded text color.",
95
+ "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.",
96
96
  "type": "color",
97
- "value": "{global.dark.color.brand.accent.300}"
97
+ "value": "{global.icon.color.regular}"
98
98
  }
99
99
  }
100
100
  }
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.color.brand.accent.300}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.color.brand.accent.400}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.color.brand.accent.300}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.dark.color.brand.accent.350}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.dark.color.brand.accent.400}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.dark.color.brand.accent.350}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",
@@ -4,16 +4,16 @@
4
4
  "color": {
5
5
  "brand": {
6
6
  "accent": {
7
- "hover": {
8
- "description": "Use as the hover state for elements that have a branded background color",
9
- "type": "color",
10
- "value": "{global.color.brand.accent.200}"
11
- },
12
7
  "default": {
13
8
  "description": "Use this color for elements that you want to reinforce your brand",
14
9
  "type": "color",
15
10
  "value": "{global.color.brand.accent.100}"
16
11
  },
12
+ "hover": {
13
+ "description": "Use as the hover state for elements that have a branded background color",
14
+ "type": "color",
15
+ "value": "{global.color.brand.accent.200}"
16
+ },
17
17
  "clicked": {
18
18
  "description": "Use as the clicked state for elements that have a brand background color",
19
19
  "type": "color",