@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.
- package/build/css/tokens-charts-dark.scss +2 -2
- package/build/css/tokens-charts.scss +2 -2
- package/build/css/tokens-dark.scss +21 -5
- package/build/css/tokens-default.scss +90 -30
- package/build/css/tokens-highcontrast-dark.scss +392 -0
- package/build/css/tokens-highcontrast.scss +427 -0
- package/build/css/tokens-palette.scss +8 -2
- package/build.js +15 -1
- package/config.highcontrast.dark.json +23 -0
- package/config.highcontrast.json +24 -0
- package/config.palette-colors.json +1 -1
- package/package.json +1 -1
- package/patternfly-docs/content/token-layers-dark.json +4308 -966
- package/patternfly-docs/content/token-layers-default.json +4382 -1485
- package/patternfly-docs/content/tokensTable.css +16 -3
- package/patternfly-docs/content/tokensTable.js +7 -5
- package/plugins/export-patternfly-tokens/dist/code.js +87 -0
- package/plugins/export-patternfly-tokens/dist/ui.html +34212 -0
- package/plugins/export-patternfly-tokens/src/ui.tsx +12 -4
- package/tokens/dark/base.dark.json +36 -0
- package/tokens/dark/charts.dark.json +8 -8
- package/tokens/dark/palette.color.json +24 -0
- package/tokens/dark/semantic.dark.json +51 -9
- package/tokens/default/base.dimension.json +38 -6
- package/tokens/default/base.json +171 -3
- package/tokens/default/charts.json +8 -8
- package/tokens/default/palette.color.json +24 -0
- package/tokens/default/semantic.dimension.json +69 -48
- package/tokens/default/semantic.json +51 -9
- package/tokens/default/semantic.motion.json +28 -28
- package/tokens/highcontrast/base.json +559 -0
- package/tokens/highcontrast/palette.color.json +319 -0
- package/tokens/highcontrast/semantic.highcontrast.json +1758 -0
- package/tokens/highcontrast-dark/base.dark.json +421 -0
- package/tokens/highcontrast-dark/palette.color.json +319 -0
- 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
|
-
"
|
|
1700
|
-
|
|
1701
|
-
|
|
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
|
-
"
|
|
1705
|
-
|
|
1706
|
-
|
|
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
|
-
"
|
|
1710
|
-
|
|
1711
|
-
|
|
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
|
-
"
|
|
41
|
+
"slide-in": {
|
|
42
42
|
"short": {
|
|
43
|
-
"description": "Use a short
|
|
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.
|
|
45
|
+
"value": "{global.motion.duration.lg}"
|
|
46
46
|
},
|
|
47
47
|
"default": {
|
|
48
|
-
"description": "Use a default
|
|
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.
|
|
50
|
+
"value": "{global.motion.duration.xl}"
|
|
51
51
|
},
|
|
52
52
|
"long": {
|
|
53
|
-
"description": "Use a
|
|
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.
|
|
55
|
+
"value": "{global.motion.duration.2xl}"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"icon": {
|
|
59
59
|
"short": {
|
|
60
|
-
"description": "Use
|
|
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.
|
|
62
|
+
"value": "{global.motion.duration.xs}"
|
|
63
63
|
},
|
|
64
64
|
"default": {
|
|
65
|
-
"description": "Use
|
|
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.
|
|
67
|
+
"value": "{global.motion.duration.sm}"
|
|
68
68
|
},
|
|
69
69
|
"long": {
|
|
70
|
-
"description": "Use
|
|
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.
|
|
72
|
+
"value": "{global.motion.duration.md}"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"
|
|
75
|
+
"fade": {
|
|
76
76
|
"short": {
|
|
77
|
-
"description": "Use
|
|
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.
|
|
79
|
+
"value": "{global.motion.duration.sm}"
|
|
80
80
|
},
|
|
81
81
|
"default": {
|
|
82
|
-
"description": "Use
|
|
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.
|
|
84
|
+
"value": "{global.motion.duration.md}"
|
|
85
85
|
},
|
|
86
86
|
"long": {
|
|
87
|
-
"description": "Use
|
|
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.
|
|
89
|
+
"value": "{global.motion.duration.lg}"
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
"
|
|
92
|
+
"slide-out": {
|
|
93
93
|
"short": {
|
|
94
|
-
"description": "Use a
|
|
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.
|
|
96
|
+
"value": "{global.motion.duration.lg}"
|
|
97
97
|
},
|
|
98
98
|
"default": {
|
|
99
|
-
"description": "Use
|
|
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.
|
|
101
|
+
"value": "{global.motion.duration.xl}"
|
|
102
102
|
},
|
|
103
103
|
"long": {
|
|
104
|
-
"description": "Use a
|
|
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.
|
|
106
|
+
"value": "{global.motion.duration.2xl}"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|