@patternfly/design-tokens 1.15.1 → 1.15.2

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 (78) hide show
  1. package/build/css/tokens-dark.scss +3 -3
  2. package/build/css/tokens-default.scss +4 -5
  3. package/build/css/{tokens-redhat-dark.scss → tokens-felt-dark.scss} +1 -1
  4. package/build/css/{tokens-redhat-glass-dark.scss → tokens-felt-glass-dark.scss} +4 -3
  5. package/build/css/{tokens-redhat-glass.scss → tokens-felt-glass.scss} +4 -2
  6. package/build/css/{tokens-redhat-highcontrast-dark.scss → tokens-felt-highcontrast-dark.scss} +5 -3
  7. package/build/css/tokens-felt-highcontrast.scss +121 -0
  8. package/build/css/{tokens-redhat.scss → tokens-felt.scss} +1 -1
  9. package/build/css/tokens-glass-dark.scss +2 -2
  10. package/build/css/tokens-glass.scss +1 -1
  11. package/build/css/tokens-palette.scss +1 -1
  12. package/build/css/tokens-redhat-highcontrast.scss +641 -10
  13. package/build.js +42 -42
  14. package/{config.redhat-dark.json → config.felt-dark.json} +2 -2
  15. package/{config.redhat-glass-dark.json → config.felt-glass-dark.json} +2 -2
  16. package/{config.redhat-glass.json → config.felt-glass.json} +2 -2
  17. package/{config.redhat-highcontrast-dark.json → config.felt-highcontrast-dark.json} +2 -2
  18. package/{config.redhat.json → config.felt.json} +2 -2
  19. package/{config.layers.redhat-dark.json → config.layers.felt-dark.json} +2 -2
  20. package/{config.layers.redhat-glass-dark.json → config.layers.felt-glass-dark.json} +2 -2
  21. package/{config.layers.redhat-glass.json → config.layers.felt-glass.json} +2 -2
  22. package/{config.layers.redhat-highcontrast-dark.json → config.layers.felt-highcontrast-dark.json} +2 -2
  23. package/package.json +1 -1
  24. package/patternfly-docs/content/token-layers-felt-dark.json +48543 -0
  25. package/patternfly-docs/content/token-layers-felt-glass-dark.json +37670 -0
  26. package/patternfly-docs/content/token-layers-felt-glass.json +52576 -0
  27. package/patternfly-docs/content/token-layers-felt-highcontrast-dark.json +38323 -0
  28. package/patternfly-docs/content/token-layers-glass-dark.json +4214 -4247
  29. package/patternfly-docs/content/token-layers-glass.json +4997 -5049
  30. package/patternfly-docs/content/token-layers-highcontrast-dark.json +2978 -3005
  31. package/patternfly-docs/content/token-layers-highcontrast.json +4177 -4229
  32. package/patternfly-docs/content/token-layers-redhat-dark.json +147 -170
  33. package/patternfly-docs/content/token-layers-redhat-glass-dark.json +165 -194
  34. package/patternfly-docs/content/token-layers-redhat-glass.json +298 -346
  35. package/patternfly-docs/content/token-layers-redhat-highcontrast-dark.json +46 -69
  36. package/patternfly-docs/content/token-layers-redhat-highcontrast.json +4911 -4641
  37. package/patternfly-docs/content/token-layers-redhat.json +6147 -5881
  38. package/plugins/export-patternfly-tokens/dist/ui.html +344 -334
  39. package/plugins/export-patternfly-tokens/src/ui.tsx +44 -34
  40. package/tokens/default/dark/base.dark.json +42 -42
  41. package/tokens/default/dark/charts.dark.json +32 -32
  42. package/tokens/default/dark/charts.highcontrast.dark.json +765 -0
  43. package/tokens/default/dark/palette.color.json +4 -4
  44. package/tokens/default/dark/semantic.dark.json +115 -115
  45. package/tokens/default/glass/base.dimension.json +24 -24
  46. package/tokens/default/glass/palette.color.json +4 -4
  47. package/tokens/default/glass/semantic.dimension.glass.json +137 -141
  48. package/tokens/default/glass/semantic.glass.json +114 -114
  49. package/tokens/default/glass-dark/base.dark.json +42 -42
  50. package/tokens/default/glass-dark/palette.color.json +4 -4
  51. package/tokens/default/glass-dark/semantic.glass.dark.json +115 -115
  52. package/tokens/default/highcontrast/base.dimension.json +24 -24
  53. package/tokens/default/highcontrast/palette.color.json +4 -4
  54. package/tokens/default/highcontrast/semantic.dimension.highcontrast.json +136 -140
  55. package/tokens/default/highcontrast/semantic.highcontrast.json +114 -114
  56. package/tokens/default/highcontrast-dark/base.dark.json +42 -42
  57. package/tokens/default/highcontrast-dark/palette.color.json +4 -4
  58. package/tokens/default/highcontrast-dark/semantic.highcontrast.dark.json +115 -115
  59. package/tokens/default/light/base.dimension.json +24 -24
  60. package/tokens/default/light/charts.highcontrast.json +765 -0
  61. package/tokens/default/light/charts.json +32 -32
  62. package/tokens/default/light/palette.color.json +4 -4
  63. package/tokens/default/light/semantic.dimension.json +137 -141
  64. package/tokens/default/light/semantic.json +114 -114
  65. package/tokens/default/light/semantic.motion.json +17 -17
  66. package/tokens/{redhat/dark/redhat.color.dark.json → felt/dark/felt.color.dark.json} +19 -19
  67. package/tokens/{redhat/light/redhat.color.json → felt/glass/felt.color.glass.json} +10 -10
  68. package/tokens/{redhat/highcontrast/redhat.dimension.highcontrast.json → felt/glass/felt.dimension.glass.json} +6 -6
  69. package/tokens/{redhat/glass-dark/redhat.color.glass.dark.json → felt/glass-dark/felt.color.glass.dark.json} +22 -17
  70. package/tokens/{redhat/highcontrast/redhat.color.highcontrast.json → felt/highcontrast/felt.color.highcontrast.json} +10 -10
  71. package/tokens/{redhat/light/redhat.dimension.json → felt/highcontrast/felt.dimension.highcontrast.json} +6 -6
  72. package/tokens/{redhat/highcontrast-dark/redhat.color.highcontrast.dark.json → felt/highcontrast-dark/felt.color.highcontrast.dark.json} +10 -10
  73. package/tokens/{redhat/glass/redhat.color.glass.json → felt/light/felt.color.json} +10 -10
  74. package/tokens/felt/light/felt.dimension.json +23 -0
  75. package/tokens/redhat/glass/redhat.dimension.glass.json +0 -2
  76. /package/{config.redhat-highcontrast.json → config.felt-highcontrast.json} +0 -0
  77. /package/{config.layers.redhat-highcontrast.json → config.layers.felt-highcontrast.json} +0 -0
  78. /package/{config.layers.redhat.json → config.layers.felt.json} +0 -0
@@ -5,6 +5,10 @@
5
5
  "type": "color",
6
6
  "value": "#ffffff"
7
7
  },
8
+ "black": {
9
+ "type": "color",
10
+ "value": "#000000"
11
+ },
8
12
  "gray": {
9
13
  "10": {
10
14
  "type": "color",
@@ -51,10 +55,6 @@
51
55
  "value": "#151515"
52
56
  }
53
57
  },
54
- "black": {
55
- "type": "color",
56
- "value": "#000000"
57
- },
58
58
  "blue": {
59
59
  "10": {
60
60
  "type": "color",
@@ -559,6 +559,31 @@
559
559
  },
560
560
  "icon": {
561
561
  "color": {
562
+ "regular": {
563
+ "description": "Use as the default color for icons in icon buttons and/or when paired with regular-colored text",
564
+ "type": "color",
565
+ "value": "{global.dark.icon.color.100}"
566
+ },
567
+ "subtle": {
568
+ "description": "Use as the color for icons when you want the icon to have less emphasis and/or when paired with subtle-colored text",
569
+ "type": "color",
570
+ "value": "{global.dark.icon.color.200}"
571
+ },
572
+ "inverse": {
573
+ "description": "Use as the color for icons that are placed on an inverse background color",
574
+ "type": "color",
575
+ "value": "{global.dark.icon.color.300}"
576
+ },
577
+ "disabled": {
578
+ "description": "Use as the color for icons that show in disabled icon buttons and/or when paired with disabled-color text",
579
+ "type": "color",
580
+ "value": "{global.dark.color.disabled.200}"
581
+ },
582
+ "on-disabled": {
583
+ "description": "Use as the color for icons that are placed on a disabled background color and/or are paired with on-disabled colored text.",
584
+ "type": "color",
585
+ "value": "{global.dark.color.disabled.300}"
586
+ },
562
587
  "brand": {
563
588
  "default": {
564
589
  "description": "Use as the color for icons that convey your brand and/or are paired with branded text color.",
@@ -869,31 +894,6 @@
869
894
  }
870
895
  }
871
896
  },
872
- "regular": {
873
- "description": "Use as the default color for icons in icon buttons and/or when paired with regular-colored text",
874
- "type": "color",
875
- "value": "{global.dark.icon.color.100}"
876
- },
877
- "subtle": {
878
- "description": "Use as the color for icons when you want the icon to have less emphasis and/or when paired with subtle-colored text",
879
- "type": "color",
880
- "value": "{global.dark.icon.color.200}"
881
- },
882
- "inverse": {
883
- "description": "Use as the color for icons that are placed on an inverse background color",
884
- "type": "color",
885
- "value": "{global.dark.icon.color.300}"
886
- },
887
- "disabled": {
888
- "description": "Use as the color for icons that show in disabled icon buttons and/or when paired with disabled-color text",
889
- "type": "color",
890
- "value": "{global.dark.color.disabled.200}"
891
- },
892
- "on-disabled": {
893
- "description": "Use as the color for icons that are placed on a disabled background color and/or are paired with on-disabled colored text.",
894
- "type": "color",
895
- "value": "{global.dark.color.disabled.300}"
896
- },
897
897
  "severity": {
898
898
  "undefined": {
899
899
  "default": {
@@ -1097,6 +1097,46 @@
1097
1097
  },
1098
1098
  "border": {
1099
1099
  "color": {
1100
+ "high-contrast": {
1101
+ "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1102
+ "type": "color",
1103
+ "value": "rgba(255, 255, 255, 0.0000)"
1104
+ },
1105
+ "default": {
1106
+ "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1107
+ "type": "color",
1108
+ "value": "{global.dark.border.color.100}"
1109
+ },
1110
+ "hover": {
1111
+ "description": "Use as the hover state border color for elements like form inputs, menu toggles, cards, etc.",
1112
+ "type": "color",
1113
+ "value": "{global.dark.color.brand.100}"
1114
+ },
1115
+ "clicked": {
1116
+ "description": "Use as the clicked state border color for elements like form inputs, menu toggles, cards, etc.",
1117
+ "type": "color",
1118
+ "value": "{global.dark.color.brand.200}"
1119
+ },
1120
+ "subtle": {
1121
+ "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1122
+ "type": "color",
1123
+ "value": "{global.dark.border.color.100}"
1124
+ },
1125
+ "disabled": {
1126
+ "description": "Use as the disabled border color for elements like form inputs, menu toggles, cards, etc.",
1127
+ "type": "color",
1128
+ "value": "{global.dark.color.disabled.200}"
1129
+ },
1130
+ "alt": {
1131
+ "description": "Use when border color needs to match the primary bkg color – helpful when you want a divider to look like negative space when shown on a colored bkg",
1132
+ "type": "color",
1133
+ "value": "{global.background.color.primary.default}"
1134
+ },
1135
+ "on-secondary": {
1136
+ "description": "Use on borders/dividers that are placed on a secondary bkg color.",
1137
+ "type": "color",
1138
+ "value": "{global.dark.border.color.200}"
1139
+ },
1100
1140
  "control": {
1101
1141
  "default": {
1102
1142
  "type": "color",
@@ -1104,7 +1144,7 @@
1104
1144
  },
1105
1145
  "read-only": {
1106
1146
  "type": "color",
1107
- "value": "{global.dark.border.color.50}"
1147
+ "value": "{global.dark.border.color.100}"
1108
1148
  }
1109
1149
  },
1110
1150
  "brand": {
@@ -1245,46 +1285,6 @@
1245
1285
  }
1246
1286
  }
1247
1287
  },
1248
- "high-contrast": {
1249
- "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1250
- "type": "color",
1251
- "value": "rgba(255, 255, 255, 0.0000)"
1252
- },
1253
- "default": {
1254
- "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1255
- "type": "color",
1256
- "value": "{global.dark.border.color.100}"
1257
- },
1258
- "hover": {
1259
- "description": "Use as the hover state border color for elements like form inputs, menu toggles, cards, etc.",
1260
- "type": "color",
1261
- "value": "{global.dark.color.brand.100}"
1262
- },
1263
- "clicked": {
1264
- "description": "Use as the clicked state border color for elements like form inputs, menu toggles, cards, etc.",
1265
- "type": "color",
1266
- "value": "{global.dark.color.brand.200}"
1267
- },
1268
- "subtle": {
1269
- "description": "Use as the default border color for elements like form inputs, menu toggles, cards, etc.",
1270
- "type": "color",
1271
- "value": "{global.dark.border.color.100}"
1272
- },
1273
- "disabled": {
1274
- "description": "Use as the disabled border color for elements like form inputs, menu toggles, cards, etc.",
1275
- "type": "color",
1276
- "value": "{global.dark.color.disabled.200}"
1277
- },
1278
- "alt": {
1279
- "description": "Use when border color needs to match the primary bkg color – helpful when you want a divider to look like negative space when shown on a colored bkg",
1280
- "type": "color",
1281
- "value": "{global.background.color.primary.default}"
1282
- },
1283
- "on-secondary": {
1284
- "description": "Use on borders/dividers that are placed on a secondary bkg color.",
1285
- "type": "color",
1286
- "value": "{global.dark.border.color.200}"
1287
- },
1288
1288
  "glass": {
1289
1289
  "default": {
1290
1290
  "type": "color",
@@ -1456,6 +1456,46 @@
1456
1456
  },
1457
1457
  "text": {
1458
1458
  "color": {
1459
+ "regular": {
1460
+ "description": "Use as the primary color for standard text, like heading/body copy. Icons paired with regular text should inherit this color or should use global/icon/color/regular.",
1461
+ "type": "color",
1462
+ "value": "{global.dark.text.color.100}"
1463
+ },
1464
+ "subtle": {
1465
+ "description": "Use as a subtle text color for text in an element that is secondary or less important, like descriptions or inactive tab labels.",
1466
+ "type": "color",
1467
+ "value": "{global.dark.text.color.200}"
1468
+ },
1469
+ "inverse": {
1470
+ "description": "Use as the color of text that is placed on an inverse background color, like tooltips.",
1471
+ "type": "color",
1472
+ "value": "{global.dark.text.color.300}"
1473
+ },
1474
+ "placeholder": {
1475
+ "description": "Use as the color of text that serves as a placeholder, like within a search bar/input.",
1476
+ "type": "color",
1477
+ "value": "{global.text.color.subtle}"
1478
+ },
1479
+ "disabled": {
1480
+ "description": "Use as the color of text on disabled elements, like disabled menu items.",
1481
+ "type": "color",
1482
+ "value": "{global.dark.color.disabled.200}"
1483
+ },
1484
+ "on-disabled": {
1485
+ "description": "Use as the color of text that is placed on a disabled background, like disabled menu toggles or tabs.",
1486
+ "type": "color",
1487
+ "value": "{global.dark.color.disabled.300}"
1488
+ },
1489
+ "required": {
1490
+ "description": "Use as the color of text that signals that action/information is required from users, like asterisks placed beside form fields or checkboxes.",
1491
+ "type": "color",
1492
+ "value": "{global.dark.text.color.400}"
1493
+ },
1494
+ "on-highlight": {
1495
+ "description": "Use as the color of text that is highlighted.",
1496
+ "type": "color",
1497
+ "value": "{global.dark.text.color.300}"
1498
+ },
1459
1499
  "link": {
1460
1500
  "default": {
1461
1501
  "description": "Use as the default text color for links.",
@@ -1490,21 +1530,6 @@
1490
1530
  "value": "{global.dark.color.brand.300}"
1491
1531
  }
1492
1532
  },
1493
- "regular": {
1494
- "description": "Use as the primary color for standard text, like heading/body copy. Icons paired with regular text should inherit this color or should use global/icon/color/regular.",
1495
- "type": "color",
1496
- "value": "{global.dark.text.color.100}"
1497
- },
1498
- "subtle": {
1499
- "description": "Use as a subtle text color for text in an element that is secondary or less important, like descriptions or inactive tab labels.",
1500
- "type": "color",
1501
- "value": "{global.dark.text.color.200}"
1502
- },
1503
- "inverse": {
1504
- "description": "Use as the color of text that is placed on an inverse background color, like tooltips.",
1505
- "type": "color",
1506
- "value": "{global.dark.text.color.300}"
1507
- },
1508
1533
  "on-brand": {
1509
1534
  "default": {
1510
1535
  "description": "Use as the default color for text placed on a brand-colored background.",
@@ -1556,31 +1581,6 @@
1556
1581
  }
1557
1582
  }
1558
1583
  },
1559
- "placeholder": {
1560
- "description": "Use as the color of text that serves as a placeholder, like within a search bar/input.",
1561
- "type": "color",
1562
- "value": "{global.text.color.subtle}"
1563
- },
1564
- "disabled": {
1565
- "description": "Use as the color of text on disabled elements, like disabled menu items.",
1566
- "type": "color",
1567
- "value": "{global.dark.color.disabled.200}"
1568
- },
1569
- "on-disabled": {
1570
- "description": "Use as the color of text that is placed on a disabled background, like disabled menu toggles or tabs.",
1571
- "type": "color",
1572
- "value": "{global.dark.color.disabled.300}"
1573
- },
1574
- "required": {
1575
- "description": "Use as the color of text that signals that action/information is required from users, like asterisks placed beside form fields or checkboxes.",
1576
- "type": "color",
1577
- "value": "{global.dark.text.color.400}"
1578
- },
1579
- "on-highlight": {
1580
- "description": "Use as the color of text that is highlighted.",
1581
- "type": "color",
1582
- "value": "{global.dark.text.color.300}"
1583
- },
1584
1584
  "status": {
1585
1585
  "success": {
1586
1586
  "default": {
@@ -1980,24 +1980,24 @@
1980
1980
  }
1981
1981
  }
1982
1982
  },
1983
- "focus-ring": {
1983
+ "text-decoration": {
1984
1984
  "color": {
1985
1985
  "default": {
1986
- "description": "Use as color value for custom focus rings",
1987
1986
  "type": "color",
1988
- "value": "{global.dark.focus-ring.color.100}"
1987
+ "value": "{global.dark.border.color.200}"
1988
+ },
1989
+ "hover": {
1990
+ "type": "color",
1991
+ "value": "{global.border.color.hover}"
1989
1992
  }
1990
1993
  }
1991
1994
  },
1992
- "text-decoration": {
1995
+ "focus-ring": {
1993
1996
  "color": {
1994
1997
  "default": {
1998
+ "description": "Use as color value for custom focus rings",
1995
1999
  "type": "color",
1996
- "value": "{global.border.color.default}"
1997
- },
1998
- "hover": {
1999
- "type": "color",
2000
- "value": "{global.border.color.hover}"
2000
+ "value": "{global.dark.focus-ring.color.100}"
2001
2001
  }
2002
2002
  }
2003
2003
  }
@@ -110,6 +110,30 @@
110
110
  }
111
111
  },
112
112
  "font": {
113
+ "family": {
114
+ "100": {
115
+ "type": "string",
116
+ "value": "\"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"
117
+ },
118
+ "200": {
119
+ "type": "string",
120
+ "value": "\"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"
121
+ },
122
+ "300": {
123
+ "type": "string",
124
+ "value": "\"Red Hat Mono\", \"RedHatMono\", \"Courier New\", Courier, monospace"
125
+ }
126
+ },
127
+ "line-height": {
128
+ "100": {
129
+ "type": "number",
130
+ "value": 1.2999999523162842
131
+ },
132
+ "200": {
133
+ "type": "number",
134
+ "value": 1.5
135
+ }
136
+ },
113
137
  "weight": {
114
138
  "100": {
115
139
  "type": "number",
@@ -128,16 +152,6 @@
128
152
  "value": 700
129
153
  }
130
154
  },
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
155
  "size": {
142
156
  "100": {
143
157
  "type": "number",
@@ -171,20 +185,6 @@
171
185
  "type": "number",
172
186
  "value": 36
173
187
  }
174
- },
175
- "family": {
176
- "100": {
177
- "type": "string",
178
- "value": "\"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"
179
- },
180
- "200": {
181
- "type": "string",
182
- "value": "\"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"
183
- },
184
- "300": {
185
- "type": "string",
186
- "value": "\"Red Hat Mono\", \"RedHatMono\", \"Courier New\", Courier, monospace"
187
- }
188
188
  }
189
189
  },
190
190
  "z-index": {
@@ -5,6 +5,10 @@
5
5
  "type": "color",
6
6
  "value": "#ffffff"
7
7
  },
8
+ "black": {
9
+ "type": "color",
10
+ "value": "#000000"
11
+ },
8
12
  "gray": {
9
13
  "10": {
10
14
  "type": "color",
@@ -51,10 +55,6 @@
51
55
  "value": "#151515"
52
56
  }
53
57
  },
54
- "black": {
55
- "type": "color",
56
- "value": "#000000"
57
- },
58
58
  "blue": {
59
59
  "10": {
60
60
  "type": "color",