@patternfly/design-tokens 1.14.6 → 1.14.7

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 (87) 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 +52 -4
  4. package/build/css/tokens-default.scss +68 -14
  5. package/build/css/tokens-glass-dark.scss +12 -0
  6. package/build/css/tokens-glass.scss +12 -0
  7. package/build/css/tokens-highcontrast-dark.scss +2 -2
  8. package/build/css/tokens-highcontrast.scss +2 -2
  9. package/build/css/tokens-palette.scss +2 -2
  10. package/build/css/tokens-redhat-dark.scss +14 -0
  11. package/build/css/tokens-redhat-glass-dark.scss +19 -0
  12. package/build/css/tokens-redhat-glass.scss +18 -0
  13. package/build/css/tokens-redhat-highcontrast-dark.scss +47 -0
  14. package/build/css/tokens-redhat-highcontrast.scss +127 -0
  15. package/build/css/tokens-redhat.scss +15 -0
  16. package/build.js +201 -13
  17. package/config.dark.json +1 -1
  18. package/config.default.json +1 -1
  19. package/config.glass.dark.json +23 -0
  20. package/config.glass.json +24 -0
  21. package/config.layers.glass-dark.json +19 -0
  22. package/config.layers.glass.json +19 -0
  23. package/config.layers.highcontrast-dark.json +19 -0
  24. package/config.layers.highcontrast.json +19 -0
  25. package/config.layers.redhat-dark.json +22 -0
  26. package/config.layers.redhat-glass-dark.json +22 -0
  27. package/config.layers.redhat-glass.json +22 -0
  28. package/config.layers.redhat-highcontrast-dark.json +22 -0
  29. package/config.layers.redhat-highcontrast.json +22 -0
  30. package/config.layers.redhat.json +22 -0
  31. package/config.redhat-dark.json +25 -0
  32. package/config.redhat-glass-dark.json +25 -0
  33. package/config.redhat-glass.json +26 -0
  34. package/config.redhat-highcontrast-dark.json +25 -0
  35. package/config.redhat-highcontrast.json +26 -0
  36. package/config.redhat.json +26 -0
  37. package/package.json +2 -2
  38. package/patternfly-docs/content/all-patternfly-tokens.md +24 -1
  39. package/patternfly-docs/content/token-layers-glass-dark.json +38562 -0
  40. package/patternfly-docs/content/token-layers-glass.json +41600 -0
  41. package/patternfly-docs/content/token-layers-highcontrast-dark.json +38385 -0
  42. package/patternfly-docs/content/token-layers-highcontrast.json +53091 -0
  43. package/patternfly-docs/content/token-layers-redhat-dark.json +48501 -0
  44. package/patternfly-docs/content/token-layers-redhat-glass-dark.json +38233 -0
  45. package/patternfly-docs/content/token-layers-redhat-glass.json +41282 -0
  46. package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +38223 -0
  47. package/patternfly-docs/content/token-layers-redhat-highcontrast.json +52773 -0
  48. package/patternfly-docs/content/token-layers-redhat.json +65159 -0
  49. package/plugins/export-patternfly-tokens/dist/code.js +26 -10
  50. package/plugins/export-patternfly-tokens/dist/ui.html +65 -21
  51. package/plugins/export-patternfly-tokens/src/code.ts +29 -10
  52. package/plugins/export-patternfly-tokens/src/ui.tsx +65 -20
  53. package/tokens/{dark → default/dark}/base.dark.json +83 -43
  54. package/tokens/{highcontrast-dark → default/dark}/palette.color.json +8 -0
  55. package/tokens/{dark → default/dark}/semantic.dark.json +235 -12
  56. package/tokens/default/{base.dimension.json → glass/base.dimension.json} +12 -12
  57. package/tokens/{highcontrast → default/glass}/base.json +45 -5
  58. package/tokens/{dark → default/glass}/palette.color.json +8 -0
  59. package/tokens/default/glass/semantic.glass.json +1996 -0
  60. package/tokens/{highcontrast-dark → default/glass-dark}/base.dark.json +83 -43
  61. package/tokens/{highcontrast → default/glass-dark}/palette.color.json +8 -0
  62. package/tokens/default/glass-dark/semantic.glass.dark.json +1996 -0
  63. package/tokens/{highcontrast → default/highcontrast}/base.dimension.json +12 -12
  64. package/tokens/default/{base.json → highcontrast/base.json} +45 -5
  65. package/tokens/default/highcontrast/palette.color.json +335 -0
  66. package/tokens/{highcontrast → default/highcontrast}/semantic.dimension.highcontrast.json +92 -56
  67. package/tokens/{highcontrast → default/highcontrast}/semantic.highcontrast.json +246 -23
  68. package/tokens/default/highcontrast-dark/base.dark.json +473 -0
  69. package/tokens/default/{palette.color.json → highcontrast-dark/palette.color.json} +8 -0
  70. package/tokens/{highcontrast-dark → default/highcontrast-dark}/semantic.highcontrast.dark.json +234 -11
  71. package/tokens/default/light/base.dimension.json +387 -0
  72. package/tokens/default/light/base.json +611 -0
  73. package/tokens/default/light/palette.color.json +335 -0
  74. package/tokens/default/{semantic.dimension.json → light/semantic.dimension.json} +95 -59
  75. package/tokens/default/{semantic.json → light/semantic.json} +235 -12
  76. package/tokens/default/{semantic.motion.json → light/semantic.motion.json} +18 -18
  77. package/tokens/redhat/dark/redhat.color.dark.json +62 -0
  78. package/tokens/redhat/glass/redhat.color.glass.json +49 -0
  79. package/tokens/redhat/glass-dark/redhat.color.glass.dark.json +62 -0
  80. package/tokens/redhat/highcontrast/redhat.color.highcontrast.json +49 -0
  81. package/tokens/redhat/highcontrast/redhat.dimension.highcontrast.json +23 -0
  82. package/tokens/redhat/highcontrast-dark/redhat.color.highcontrast.dark.json +49 -0
  83. package/tokens/redhat/light/redhat.color.json +49 -0
  84. package/tokens/redhat/light/redhat.dimension.json +23 -0
  85. /package/tokens/{dark → default/dark}/charts.dark.json +0 -0
  86. /package/tokens/default/{base.motion.json → light/base.motion.json} +0 -0
  87. /package/tokens/default/{charts.json → light/charts.json} +0 -0
@@ -32,14 +32,31 @@
32
32
  "description": "Use to adjust the curvature of the border corners for an element. Use for corners that are as round as possible, like standard buttons and badges.",
33
33
  "type": "number",
34
34
  "value": "{global.border.radius.500}"
35
+ },
36
+ "control": {
37
+ "default": {
38
+ "type": "number",
39
+ "value": "{global.border.radius.small}"
40
+ },
41
+ "form-element": {
42
+ "type": "number",
43
+ "value": "{global.border.radius.small}"
44
+ }
45
+ },
46
+ "action": {
47
+ "plain": {
48
+ "default": {
49
+ "type": "number",
50
+ "value": "{global.border.radius.small}"
51
+ }
52
+ },
53
+ "default": {
54
+ "type": "number",
55
+ "value": "{global.border.radius.pill}"
56
+ }
35
57
  }
36
58
  },
37
59
  "width": {
38
- "regular": {
39
- "description": "Use as the default border width for elements.",
40
- "type": "number",
41
- "value": "{global.border.width.100}"
42
- },
43
60
  "divider": {
44
61
  "default": {
45
62
  "description": "Use as the default border width for dividers.",
@@ -57,6 +74,11 @@
57
74
  "value": "{global.border.width.100}"
58
75
  }
59
76
  },
77
+ "regular": {
78
+ "description": "Use as the default border width for elements.",
79
+ "type": "number",
80
+ "value": "{global.border.width.100}"
81
+ },
60
82
  "strong": {
61
83
  "description": "Use as a stronger/wider border width for elements.",
62
84
  "type": "number",
@@ -67,26 +89,6 @@
67
89
  "type": "number",
68
90
  "value": "{global.border.width.300}"
69
91
  },
70
- "main": {
71
- "default": {
72
- "type": "number",
73
- "value": "{global.border.width.200}"
74
- }
75
- },
76
- "high-contrast": {
77
- "regular": {
78
- "type": "number",
79
- "value": "{global.border.width.regular}"
80
- },
81
- "strong": {
82
- "type": "number",
83
- "value": "{global.border.width.strong}"
84
- },
85
- "extra-strong": {
86
- "type": "number",
87
- "value": "{global.border.width.extra-strong}"
88
- }
89
- },
90
92
  "box": {
91
93
  "default": {
92
94
  "description": "Use as the default border width for containers like cards, panels, code editors, etc.",
@@ -116,38 +118,58 @@
116
118
  }
117
119
  }
118
120
  },
119
- "action": {
120
- "default": {
121
- "description": "Use as the default border width for actions like secondary and tertiary buttons",
121
+ "high-contrast": {
122
+ "regular": {
122
123
  "type": "number",
123
- "value": "{global.border.width.100}"
124
+ "value": "{global.border.width.regular}"
124
125
  },
125
- "hover": {
126
- "description": "Use as the hover state border width for actions like secondary and tertiary buttons",
126
+ "strong": {
127
127
  "type": "number",
128
- "value": "{global.border.width.200}"
128
+ "value": "{global.border.width.strong}"
129
129
  },
130
- "clicked": {
131
- "description": "Use as the clicked state border width for actions like secondary and tertiary buttons",
130
+ "extra-strong": {
131
+ "type": "number",
132
+ "value": "{global.border.width.extra-strong}"
133
+ }
134
+ },
135
+ "main": {
136
+ "default": {
132
137
  "type": "number",
133
138
  "value": "{global.border.width.200}"
139
+ }
140
+ },
141
+ "action": {
142
+ "default": {
143
+ "description": "Use as the default border width for actions like secondary and tertiary buttons",
144
+ "type": "number",
145
+ "value": "{global.border.width.100}"
134
146
  },
135
147
  "plain": {
136
148
  "default": {
137
- "description": "Use as the default border width for actions like secondary and tertiary buttons",
149
+ "description": "Use as the default border width for plain actions",
138
150
  "type": "number",
139
151
  "value": 0
140
152
  },
141
153
  "hover": {
142
- "description": "Use as the hover state border width for actions like secondary and tertiary buttons",
154
+ "description": "Use as the border width for plain actions in their hover state",
143
155
  "type": "number",
144
156
  "value": "{global.border.width.100}"
145
157
  },
146
158
  "clicked": {
147
- "description": "Use as the clicked state border width for actions like secondary and tertiary buttons",
159
+ "description": "Use as the border width for plain actions in their clicked state",
148
160
  "type": "number",
149
161
  "value": "{global.border.width.200}"
150
162
  }
163
+ },
164
+ "hover": {
165
+ "description": "Use as the hover state border width for actions like secondary and tertiary buttons",
166
+ "type": "number",
167
+ "value": "{global.border.width.200}"
168
+ },
169
+ "clicked": {
170
+ "description": "Use as the clicked state border width for actions like secondary and tertiary buttons",
171
+ "type": "number",
172
+ "value": "{global.border.width.200}"
151
173
  }
152
174
  },
153
175
  "control": {
@@ -358,12 +380,14 @@
358
380
  },
359
381
  "inset": {
360
382
  "page-chrome": {
383
+ "description": "Use to define inner padding for structural elements in order to maintain alignment, like in the masthead, navigation menu, or main page content.",
361
384
  "type": "number",
362
385
  "value": "{global.spacer.lg}"
363
386
  }
364
387
  },
365
388
  "gutter": {
366
389
  "default": {
390
+ "description": "Use to define gutters between elements in certain layouts, like grids.",
367
391
  "type": "number",
368
392
  "value": "{global.spacer.md}"
369
393
  }
@@ -396,11 +420,6 @@
396
420
  "type": "number",
397
421
  "value": "{global.icon.size.400}"
398
422
  },
399
- "3xl": {
400
- "description": "Use for triple extra large icons.",
401
- "type": "number",
402
- "value": "{global.icon.size.500}"
403
- },
404
423
  "font": {
405
424
  "body": {
406
425
  "sm": {
@@ -491,22 +510,15 @@
491
510
  "type": "number",
492
511
  "value": "{global.font.size.4xl}"
493
512
  }
513
+ },
514
+ "3xl": {
515
+ "description": "Use for triple extra large icons.",
516
+ "type": "number",
517
+ "value": "{global.icon.size.500}"
494
518
  }
495
519
  }
496
520
  },
497
521
  "font": {
498
- "line-height": {
499
- "body": {
500
- "description": "Use to define the line height for body text",
501
- "type": "number",
502
- "value": "{global.font.line-height.200}"
503
- },
504
- "heading": {
505
- "description": "Use to define the line height for heading text",
506
- "type": "number",
507
- "value": "{global.font.line-height.100}"
508
- }
509
- },
510
522
  "weight": {
511
523
  "body": {
512
524
  "default": {
@@ -533,6 +545,18 @@
533
545
  }
534
546
  }
535
547
  },
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
+ },
536
560
  "family": {
537
561
  "body": {
538
562
  "description": "Use to define the font family for body text",
@@ -960,12 +984,20 @@
960
984
  "default": {
961
985
  "type": "number",
962
986
  "value": "{global.border.width.regular}"
987
+ },
988
+ "hover": {
989
+ "type": "number",
990
+ "value": "{global.border.width.strong}"
963
991
  }
964
992
  },
965
993
  "offset": {
966
994
  "default": {
967
995
  "type": "number",
968
996
  "value": "{global.spacer.xs}"
997
+ },
998
+ "hover": {
999
+ "type": "number",
1000
+ "value": 5
969
1001
  }
970
1002
  },
971
1003
  "editable-text": {
@@ -1004,11 +1036,11 @@
1004
1036
  "style": {
1005
1037
  "default": {
1006
1038
  "type": "number",
1007
- "value": "{global.text-decoration.style.100}"
1039
+ "value": "{global.text-decoration.style.200}"
1008
1040
  },
1009
1041
  "hover": {
1010
1042
  "type": "number",
1011
- "value": "{global.text-decoration.style.100}"
1043
+ "value": "{global.text-decoration.style.200}"
1012
1044
  }
1013
1045
  }
1014
1046
  },
@@ -1038,20 +1070,24 @@
1038
1070
  "focus-ring": {
1039
1071
  "position": {
1040
1072
  "offset": {
1073
+ "description": "Use to define the position of a custom focus ring that sits outside (offset) of the element receiving focus.",
1041
1074
  "type": "number",
1042
1075
  "value": 2
1043
1076
  },
1044
1077
  "inset": {
1078
+ "description": "Use to define the position of a custom focus ring that sits inside (inset) of the element receiving focus.",
1045
1079
  "type": "number",
1046
1080
  "value": -4
1047
1081
  }
1048
1082
  },
1049
1083
  "width": {
1050
1084
  "offset": {
1085
+ "description": "Use to define the width of a custom focus ring that sits outside (offset) of the element receiving focus.",
1051
1086
  "type": "number",
1052
1087
  "value": 2
1053
1088
  },
1054
1089
  "inset": {
1090
+ "description": "Use to define the width of a custom focus ring that sits inside (inset) of the element receiving focus.",
1055
1091
  "type": "number",
1056
1092
  "value": 3
1057
1093
  }