@patternfly/design-tokens 1.13.1 → 1.14.0

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 (36) 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 +21 -5
  4. package/build/css/tokens-default.scss +90 -30
  5. package/build/css/tokens-highcontrast-dark.scss +392 -0
  6. package/build/css/tokens-highcontrast.scss +427 -0
  7. package/build/css/tokens-palette.scss +8 -2
  8. package/build.js +15 -1
  9. package/config.highcontrast.dark.json +23 -0
  10. package/config.highcontrast.json +24 -0
  11. package/config.palette-colors.json +1 -1
  12. package/package.json +1 -1
  13. package/patternfly-docs/content/token-layers-dark.json +4308 -966
  14. package/patternfly-docs/content/token-layers-default.json +4382 -1485
  15. package/patternfly-docs/content/tokensTable.css +16 -3
  16. package/patternfly-docs/content/tokensTable.js +7 -5
  17. package/plugins/export-patternfly-tokens/dist/code.js +87 -0
  18. package/plugins/export-patternfly-tokens/dist/ui.html +34212 -0
  19. package/plugins/export-patternfly-tokens/src/ui.tsx +12 -4
  20. package/tokens/dark/base.dark.json +36 -0
  21. package/tokens/dark/charts.dark.json +8 -8
  22. package/tokens/dark/palette.color.json +24 -0
  23. package/tokens/dark/semantic.dark.json +51 -9
  24. package/tokens/default/base.dimension.json +38 -6
  25. package/tokens/default/base.json +171 -3
  26. package/tokens/default/charts.json +8 -8
  27. package/tokens/default/palette.color.json +24 -0
  28. package/tokens/default/semantic.dimension.json +69 -48
  29. package/tokens/default/semantic.json +51 -9
  30. package/tokens/default/semantic.motion.json +28 -28
  31. package/tokens/highcontrast/base.json +559 -0
  32. package/tokens/highcontrast/palette.color.json +319 -0
  33. package/tokens/highcontrast/semantic.highcontrast.json +1758 -0
  34. package/tokens/highcontrast-dark/base.dark.json +421 -0
  35. package/tokens/highcontrast-dark/palette.color.json +319 -0
  36. package/tokens/highcontrast-dark/semantic.highcontrast.dark.json +1758 -0
@@ -37,6 +37,13 @@
37
37
  "value": "{global.background.color.300}"
38
38
  }
39
39
  },
40
+ "tertiary": {
41
+ "default": {
42
+ "description": "Use as the tertiary background color. This is primarily used for containers that can be placed on secondary backgrounds.",
43
+ "type": "color",
44
+ "value": "{global.background.color.600}"
45
+ }
46
+ },
40
47
  "floating": {
41
48
  "default": {
42
49
  "description": "Use as the background color for components that appear over other content, such as toast alerts, menus, modals, overlay drawers, etc.",
@@ -113,6 +120,16 @@
113
120
  "description": "Use as the background color components with inversed backgrounds like tooltips.",
114
121
  "type": "color",
115
122
  "value": "{global.background.color.400}"
123
+ },
124
+ "hover": {
125
+ "description": "Use as the hover color for interactive components with inversed backgrounds.",
126
+ "type": "color",
127
+ "value": "{global.background.color.450}"
128
+ },
129
+ "clicked": {
130
+ "description": "Use as the clicked color for interactive components with inversed backgrounds.",
131
+ "type": "color",
132
+ "value": "{global.background.color.450}"
116
133
  }
117
134
  },
118
135
  "disabled": {
@@ -950,6 +967,10 @@
950
967
  "value": "{global.border.color.50}"
951
968
  }
952
969
  },
970
+ "high-contrast": {
971
+ "type": "color",
972
+ "value": "rgba(255, 255, 255, 0.0000)"
973
+ },
953
974
  "brand": {
954
975
  "default": {
955
976
  "description": "Use as the default border color for any branded element, like color-coded labels, banners, etc.",
@@ -1696,19 +1717,40 @@
1696
1717
  "box-shadow": {
1697
1718
  "color": {
1698
1719
  "sm": {
1699
- "description": "Use as the color of small box-shadows.",
1700
- "type": "color",
1701
- "value": "{global.box-shadow.color.100}"
1720
+ "default": {
1721
+ "description": "Use as the color of small box-shadows.",
1722
+ "type": "color",
1723
+ "value": "{global.box-shadow.color.100}"
1724
+ },
1725
+ "directional": {
1726
+ "description": "Use as the color of small box-shadows.",
1727
+ "type": "color",
1728
+ "value": "{global.box-shadow.color.200}"
1729
+ }
1702
1730
  },
1703
1731
  "md": {
1704
- "description": "Use as the color of medium box-shadows.",
1705
- "type": "color",
1706
- "value": "{global.box-shadow.color.200}"
1732
+ "default": {
1733
+ "description": "Use as the color of medium box-shadows.",
1734
+ "type": "color",
1735
+ "value": "{global.box-shadow.color.100}"
1736
+ },
1737
+ "directional": {
1738
+ "description": "Use as the color of medium box-shadows.",
1739
+ "type": "color",
1740
+ "value": "{global.box-shadow.color.100}"
1741
+ }
1707
1742
  },
1708
1743
  "lg": {
1709
- "description": "Use as the color of large box-shadows.",
1710
- "type": "color",
1711
- "value": "{global.box-shadow.color.200}"
1744
+ "default": {
1745
+ "description": "Use as the color of large box-shadows.",
1746
+ "type": "color",
1747
+ "value": "{global.box-shadow.color.100}"
1748
+ },
1749
+ "directional": {
1750
+ "description": "Use as the color of large box-shadows.",
1751
+ "type": "color",
1752
+ "value": "{global.box-shadow.color.200}"
1753
+ }
1712
1754
  }
1713
1755
  }
1714
1756
  }
@@ -38,72 +38,72 @@
38
38
  "type": "number",
39
39
  "value": "{global.duration.600}"
40
40
  },
41
- "fade": {
41
+ "slide-in": {
42
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.",
43
+ "description": "Use for a short duration of a slide-in animation, which moves an offscreen element into the viewport.",
44
44
  "type": "number",
45
- "value": "{global.motion.duration.sm}"
45
+ "value": "{global.motion.duration.lg}"
46
46
  },
47
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.",
48
+ "description": "Use for a default duration of a slide-in animation, which moves an offscreen element into the viewport.",
49
49
  "type": "number",
50
- "value": "{global.motion.duration.md}"
50
+ "value": "{global.motion.duration.xl}"
51
51
  },
52
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.",
53
+ "description": "Use for a longer duration of a slide-in animation, which moves an offscreen element into the viewport.",
54
54
  "type": "number",
55
- "value": "{global.motion.duration.lg}"
55
+ "value": "{global.motion.duration.2xl}"
56
56
  }
57
57
  },
58
- "slide-out": {
58
+ "icon": {
59
59
  "short": {
60
- "description": "Use for a shorter duration of a slide-out animation, which moves an element out of the viewport.",
60
+ "description": "Use a short duration on an icon that requires a fast/snappy transition. Used to define the speed at which an icon may animate. Used on a notification badge(stateful button).",
61
61
  "type": "number",
62
- "value": "{global.motion.duration.lg}"
62
+ "value": "{global.motion.duration.xs}"
63
63
  },
64
64
  "default": {
65
- "description": "Use as the default duration of a slide-out animation, which moves an element out of the viewport.",
65
+ "description": "Use a default duration on an icon that requires a moderately timed transition. Used to define the speed at which an icon may animate. Used on a favoriting star(icon button).",
66
66
  "type": "number",
67
- "value": "{global.motion.duration.xl}"
67
+ "value": "{global.motion.duration.sm}"
68
68
  },
69
69
  "long": {
70
- "description": "Use for a longer duration of a slide-out animation, which moves an element out of the viewport.",
70
+ "description": "Use a long duration on an icon that requires a slow transition. Used to define the speed at which an icon may animate. Used on the settings cog icon(plain menu toggle).",
71
71
  "type": "number",
72
- "value": "{global.motion.duration.2xl}"
72
+ "value": "{global.motion.duration.md}"
73
73
  }
74
74
  },
75
- "slide-in": {
75
+ "fade": {
76
76
  "short": {
77
- "description": "Use for a short duration of a slide-in animation, which moves an offscreen element into the viewport.",
77
+ "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
78
  "type": "number",
79
- "value": "{global.motion.duration.lg}"
79
+ "value": "{global.motion.duration.sm}"
80
80
  },
81
81
  "default": {
82
- "description": "Use for a default duration of a slide-in animation, which moves an offscreen element into the viewport.",
82
+ "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
83
  "type": "number",
84
- "value": "{global.motion.duration.xl}"
84
+ "value": "{global.motion.duration.md}"
85
85
  },
86
86
  "long": {
87
- "description": "Use for a longer duration of a slide-in animation, which moves an offscreen element into the viewport.",
87
+ "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
88
  "type": "number",
89
- "value": "{global.motion.duration.2xl}"
89
+ "value": "{global.motion.duration.lg}"
90
90
  }
91
91
  },
92
- "icon": {
92
+ "slide-out": {
93
93
  "short": {
94
- "description": "Use a short duration on an icon that requires a fast/snappy transition. Used to define the speed at which an icon may animate. Used on a notification badge(stateful button).",
94
+ "description": "Use for a shorter duration of a slide-out animation, which moves an element out of the viewport.",
95
95
  "type": "number",
96
- "value": "{global.motion.duration.xs}"
96
+ "value": "{global.motion.duration.lg}"
97
97
  },
98
98
  "default": {
99
- "description": "Use a default duration on an icon that requires a moderately timed transition. Used to define the speed at which an icon may animate. Used on a favoriting star(icon button).",
99
+ "description": "Use as the default duration of a slide-out animation, which moves an element out of the viewport.",
100
100
  "type": "number",
101
- "value": "{global.motion.duration.sm}"
101
+ "value": "{global.motion.duration.xl}"
102
102
  },
103
103
  "long": {
104
- "description": "Use a long duration on an icon that requires a slow transition. Used to define the speed at which an icon may animate. Used on the settings cog icon(plain menu toggle).",
104
+ "description": "Use for a longer duration of a slide-out animation, which moves an element out of the viewport.",
105
105
  "type": "number",
106
- "value": "{global.motion.duration.md}"
106
+ "value": "{global.motion.duration.2xl}"
107
107
  }
108
108
  }
109
109
  },