hpe-design-tokens 0.6.0 → 0.7.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/dist/cjs/base.cjs +1 -1
- package/dist/cjs/color.dark.cjs +2 -2
- package/dist/cjs/color.light.cjs +1 -1
- package/dist/cjs/dimension.medium.cjs +21 -43
- package/dist/cjs/dimension.small.cjs +22 -44
- package/dist/css/base.css +10 -10
- package/dist/css/color.dark.css +48 -48
- package/dist/css/color.light.css +23 -23
- package/dist/css/dimension.medium.css +19 -27
- package/dist/css/dimension.small.css +19 -27
- package/dist/docs/base.js +38 -38
- package/dist/docs/color.dark.js +48 -48
- package/dist/docs/color.light.js +46 -46
- package/dist/docs/components.js +84 -28
- package/dist/docs/dimension.medium.js +467 -795
- package/dist/docs/dimension.small.js +467 -795
- package/dist/esm/base.js +1 -1
- package/dist/esm/color.dark.js +2 -2
- package/dist/esm/color.light.js +1 -1
- package/dist/esm/dimension.medium.js +21 -43
- package/dist/esm/dimension.small.js +22 -44
- package/package.json +1 -1
package/dist/cjs/base.cjs
CHANGED
package/dist/cjs/color.dark.cjs
CHANGED
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
},
|
|
32
32
|
"primary": {
|
|
33
33
|
"default": "#01a982",
|
|
34
|
-
"hover": "
|
|
34
|
+
"hover": "#01a982"
|
|
35
35
|
},
|
|
36
36
|
"ok": "rgba(23, 208, 166, 0.3)",
|
|
37
37
|
"neutral": {
|
|
@@ -111,7 +111,7 @@ module.exports = {
|
|
|
111
111
|
"onSelectedWeak": "#ffffff"
|
|
112
112
|
},
|
|
113
113
|
"decorative": {
|
|
114
|
-
"brand": "#
|
|
114
|
+
"brand": "#01a982",
|
|
115
115
|
"green": "#008567",
|
|
116
116
|
"purple": "#6633bc",
|
|
117
117
|
"teal": "#117b82",
|
package/dist/cjs/color.light.cjs
CHANGED
|
@@ -35,7 +35,7 @@ module.exports = {
|
|
|
35
35
|
"default": "1px"
|
|
36
36
|
},
|
|
37
37
|
"size": {
|
|
38
|
-
"
|
|
38
|
+
"container": {
|
|
39
39
|
"xxsmall": "48px",
|
|
40
40
|
"xsmall": "96px",
|
|
41
41
|
"small": "192px",
|
|
@@ -66,52 +66,62 @@ module.exports = {
|
|
|
66
66
|
"xsmall": {
|
|
67
67
|
"fontSize": "0.875rem",
|
|
68
68
|
"lineHeight": "1rem",
|
|
69
|
-
"fontWeight": 400
|
|
69
|
+
"fontWeight": 400,
|
|
70
|
+
"maxWidth": "25em"
|
|
70
71
|
},
|
|
71
72
|
"small": {
|
|
72
73
|
"fontSize": "1rem",
|
|
73
74
|
"lineHeight": "1.25rem",
|
|
74
|
-
"fontWeight": 400
|
|
75
|
+
"fontWeight": 400,
|
|
76
|
+
"maxWidth": "25em"
|
|
75
77
|
},
|
|
76
78
|
"medium": {
|
|
77
79
|
"fontSize": "1.125rem",
|
|
78
80
|
"lineHeight": "1.5rem",
|
|
79
|
-
"fontWeight": 400
|
|
81
|
+
"fontWeight": 400,
|
|
82
|
+
"maxWidth": "25em"
|
|
80
83
|
},
|
|
81
84
|
"large": {
|
|
82
85
|
"fontSize": "1.375rem",
|
|
83
86
|
"lineHeight": "1.75rem",
|
|
84
|
-
"fontWeight": 400
|
|
87
|
+
"fontWeight": 400,
|
|
88
|
+
"maxWidth": "25em"
|
|
85
89
|
},
|
|
86
90
|
"xlarge": {
|
|
87
91
|
"fontSize": "1.5rem",
|
|
88
92
|
"lineHeight": "1.875rem",
|
|
89
|
-
"fontWeight": 400
|
|
93
|
+
"fontWeight": 400,
|
|
94
|
+
"maxWidth": "25em"
|
|
90
95
|
},
|
|
91
96
|
"xxlarge": {
|
|
92
97
|
"fontSize": "2.25rem",
|
|
93
98
|
"lineHeight": "2.5rem",
|
|
94
|
-
"fontWeight": 300
|
|
99
|
+
"fontWeight": 300,
|
|
100
|
+
"maxWidth": "25em"
|
|
95
101
|
},
|
|
96
102
|
"3xl": {
|
|
97
103
|
"fontSize": "2.625rem",
|
|
98
104
|
"lineHeight": "2.875rem",
|
|
99
|
-
"fontWeight": 300
|
|
105
|
+
"fontWeight": 300,
|
|
106
|
+
"maxWidth": "25em"
|
|
100
107
|
},
|
|
101
108
|
"4xl": {
|
|
102
109
|
"fontSize": "3rem",
|
|
103
110
|
"lineHeight": "3rem",
|
|
104
|
-
"fontWeight": 300
|
|
111
|
+
"fontWeight": 300,
|
|
112
|
+
"maxWidth": "25em"
|
|
105
113
|
},
|
|
106
114
|
"5xl": {
|
|
107
115
|
"fontSize": "4.5rem",
|
|
108
116
|
"lineHeight": "4.5rem",
|
|
109
|
-
"fontWeight": 300
|
|
117
|
+
"fontWeight": 300,
|
|
118
|
+
"maxWidth": "25em"
|
|
110
119
|
},
|
|
111
120
|
"6xl": {
|
|
112
121
|
"fontSize": "4.5rem",
|
|
113
122
|
"lineHeight": "4.5rem",
|
|
114
|
-
"fontWeight": 300
|
|
123
|
+
"fontWeight": 300,
|
|
124
|
+
"maxWidth": "25em"
|
|
115
125
|
}
|
|
116
126
|
},
|
|
117
127
|
"heading": {
|
|
@@ -145,38 +155,6 @@ module.exports = {
|
|
|
145
155
|
"lineHeight": "0.75rem",
|
|
146
156
|
"fontWeight": 600
|
|
147
157
|
}
|
|
148
|
-
},
|
|
149
|
-
"paragraph": {
|
|
150
|
-
"xsmall": {
|
|
151
|
-
"fontSize": "0.875rem",
|
|
152
|
-
"lineHeight": "1rem",
|
|
153
|
-
"maxWidth": "25em"
|
|
154
|
-
},
|
|
155
|
-
"small": {
|
|
156
|
-
"fontSize": "1rem",
|
|
157
|
-
"lineHeight": "1.75rem",
|
|
158
|
-
"maxWidth": "25em"
|
|
159
|
-
},
|
|
160
|
-
"medium": {
|
|
161
|
-
"fontSize": "1.125rem",
|
|
162
|
-
"lineHeight": "1.5rem",
|
|
163
|
-
"maxWidth": "25em"
|
|
164
|
-
},
|
|
165
|
-
"large": {
|
|
166
|
-
"fontSize": "1.375rem",
|
|
167
|
-
"lineHeight": "1.75rem",
|
|
168
|
-
"maxWidth": "25em"
|
|
169
|
-
},
|
|
170
|
-
"xlarge": {
|
|
171
|
-
"fontSize": "1.5rem",
|
|
172
|
-
"lineHeight": "1.875rem",
|
|
173
|
-
"maxWidth": "25em"
|
|
174
|
-
},
|
|
175
|
-
"xxlarge": {
|
|
176
|
-
"fontSize": "2.25rem",
|
|
177
|
-
"lineHeight": "2.5rem",
|
|
178
|
-
"maxWidth": "25em"
|
|
179
|
-
}
|
|
180
158
|
}
|
|
181
159
|
}
|
|
182
160
|
}
|
|
@@ -35,11 +35,11 @@ module.exports = {
|
|
|
35
35
|
"default": "1px"
|
|
36
36
|
},
|
|
37
37
|
"size": {
|
|
38
|
-
"
|
|
38
|
+
"container": {
|
|
39
39
|
"xxsmall": "48px",
|
|
40
40
|
"xsmall": "48px",
|
|
41
41
|
"small": "96px",
|
|
42
|
-
"smallPlus": "
|
|
42
|
+
"smallPlus": "192px",
|
|
43
43
|
"medium": "192px",
|
|
44
44
|
"mediumPlus": "384px",
|
|
45
45
|
"large": "384px",
|
|
@@ -66,52 +66,62 @@ module.exports = {
|
|
|
66
66
|
"xsmall": {
|
|
67
67
|
"fontSize": "0.875rem",
|
|
68
68
|
"lineHeight": "1rem",
|
|
69
|
-
"fontWeight": 400
|
|
69
|
+
"fontWeight": 400,
|
|
70
|
+
"maxWidth": "25em"
|
|
70
71
|
},
|
|
71
72
|
"small": {
|
|
72
73
|
"fontSize": "1rem",
|
|
73
74
|
"lineHeight": "1.25rem",
|
|
74
|
-
"fontWeight": 400
|
|
75
|
+
"fontWeight": 400,
|
|
76
|
+
"maxWidth": "25em"
|
|
75
77
|
},
|
|
76
78
|
"medium": {
|
|
77
79
|
"fontSize": "1.125rem",
|
|
78
80
|
"lineHeight": "1.5rem",
|
|
79
|
-
"fontWeight": 400
|
|
81
|
+
"fontWeight": 400,
|
|
82
|
+
"maxWidth": "25em"
|
|
80
83
|
},
|
|
81
84
|
"large": {
|
|
82
85
|
"fontSize": "1.375rem",
|
|
83
86
|
"lineHeight": "1.75rem",
|
|
84
|
-
"fontWeight": 400
|
|
87
|
+
"fontWeight": 400,
|
|
88
|
+
"maxWidth": "25em"
|
|
85
89
|
},
|
|
86
90
|
"xlarge": {
|
|
87
91
|
"fontSize": "1.5rem",
|
|
88
92
|
"lineHeight": "1.875rem",
|
|
89
|
-
"fontWeight": 400
|
|
93
|
+
"fontWeight": 400,
|
|
94
|
+
"maxWidth": "25em"
|
|
90
95
|
},
|
|
91
96
|
"xxlarge": {
|
|
92
97
|
"fontSize": "2.25rem",
|
|
93
98
|
"lineHeight": "2.5rem",
|
|
94
|
-
"fontWeight": 300
|
|
99
|
+
"fontWeight": 300,
|
|
100
|
+
"maxWidth": "25em"
|
|
95
101
|
},
|
|
96
102
|
"3xl": {
|
|
97
103
|
"fontSize": "2.625rem",
|
|
98
104
|
"lineHeight": "2.875rem",
|
|
99
|
-
"fontWeight": 300
|
|
105
|
+
"fontWeight": 300,
|
|
106
|
+
"maxWidth": "25em"
|
|
100
107
|
},
|
|
101
108
|
"4xl": {
|
|
102
109
|
"fontSize": "3rem",
|
|
103
110
|
"lineHeight": "3rem",
|
|
104
|
-
"fontWeight": 300
|
|
111
|
+
"fontWeight": 300,
|
|
112
|
+
"maxWidth": "25em"
|
|
105
113
|
},
|
|
106
114
|
"5xl": {
|
|
107
115
|
"fontSize": "4.5rem",
|
|
108
116
|
"lineHeight": "4.5rem",
|
|
109
|
-
"fontWeight": 300
|
|
117
|
+
"fontWeight": 300,
|
|
118
|
+
"maxWidth": "25em"
|
|
110
119
|
},
|
|
111
120
|
"6xl": {
|
|
112
121
|
"fontSize": "4.5rem",
|
|
113
122
|
"lineHeight": "4.5rem",
|
|
114
|
-
"fontWeight": 300
|
|
123
|
+
"fontWeight": 300,
|
|
124
|
+
"maxWidth": "25em"
|
|
115
125
|
}
|
|
116
126
|
},
|
|
117
127
|
"heading": {
|
|
@@ -145,38 +155,6 @@ module.exports = {
|
|
|
145
155
|
"lineHeight": "0.75rem",
|
|
146
156
|
"fontWeight": 600
|
|
147
157
|
}
|
|
148
|
-
},
|
|
149
|
-
"paragraph": {
|
|
150
|
-
"xsmall": {
|
|
151
|
-
"fontSize": "0.875rem",
|
|
152
|
-
"lineHeight": "1rem",
|
|
153
|
-
"maxWidth": "25em"
|
|
154
|
-
},
|
|
155
|
-
"small": {
|
|
156
|
-
"fontSize": "1rem",
|
|
157
|
-
"lineHeight": "1.75rem",
|
|
158
|
-
"maxWidth": "25em"
|
|
159
|
-
},
|
|
160
|
-
"medium": {
|
|
161
|
-
"fontSize": "1.125rem",
|
|
162
|
-
"lineHeight": "1.5rem",
|
|
163
|
-
"maxWidth": "25em"
|
|
164
|
-
},
|
|
165
|
-
"large": {
|
|
166
|
-
"fontSize": "1.375rem",
|
|
167
|
-
"lineHeight": "1.75rem",
|
|
168
|
-
"maxWidth": "25em"
|
|
169
|
-
},
|
|
170
|
-
"xlarge": {
|
|
171
|
-
"fontSize": "1.5rem",
|
|
172
|
-
"lineHeight": "1.875rem",
|
|
173
|
-
"maxWidth": "25em"
|
|
174
|
-
},
|
|
175
|
-
"xxlarge": {
|
|
176
|
-
"fontSize": "2.25rem",
|
|
177
|
-
"lineHeight": "2.5rem",
|
|
178
|
-
"maxWidth": "25em"
|
|
179
|
-
}
|
|
180
158
|
}
|
|
181
159
|
}
|
|
182
160
|
}
|
package/dist/css/base.css
CHANGED
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
--hpe-base-line-height-800: 3rem;
|
|
158
158
|
--hpe-base-line-height-900: 4.5rem;
|
|
159
159
|
--hpe-base-line-height-1000: 4.5rem;
|
|
160
|
-
--hpe-tbd: rgba(0, 255, 10, 0); /* Placeholder for
|
|
160
|
+
--hpe-tbd: rgba(0, 255, 10, 0); /* Placeholder for colors that still need finalising. */
|
|
161
161
|
--hpe-base-color-brand: var(--hpe-base-color-green-600);
|
|
162
162
|
--hpe-base-static-spacing-none: var(--hpe-base-dimension-0);
|
|
163
163
|
--hpe-base-static-spacing-hair: var(--hpe-base-dimension-25);
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
--hpe-base-static-border-width-large: var(--hpe-base-dimension-300);
|
|
184
184
|
--hpe-base-static-border-width-xlarge: var(--hpe-base-dimension-600);
|
|
185
185
|
--hpe-base-static-border-width-default: var(--hpe-base-dimension-25);
|
|
186
|
-
--hpe-base-static-
|
|
187
|
-
--hpe-base-static-
|
|
188
|
-
--hpe-base-static-
|
|
189
|
-
--hpe-base-static-
|
|
190
|
-
--hpe-base-static-
|
|
191
|
-
--hpe-base-static-
|
|
192
|
-
--hpe-base-static-
|
|
193
|
-
--hpe-base-static-
|
|
194
|
-
--hpe-base-static-
|
|
186
|
+
--hpe-base-static-container-xxsmall: var(--hpe-base-dimension-1200);
|
|
187
|
+
--hpe-base-static-container-xsmall: var(--hpe-base-dimension-2400);
|
|
188
|
+
--hpe-base-static-container-small: var(--hpe-base-dimension-4800);
|
|
189
|
+
--hpe-base-static-container-small-plus: var(--hpe-base-dimension-7200);
|
|
190
|
+
--hpe-base-static-container-medium: var(--hpe-base-dimension-9600);
|
|
191
|
+
--hpe-base-static-container-medium-plus: var(--hpe-base-dimension-14400);
|
|
192
|
+
--hpe-base-static-container-large: var(--hpe-base-dimension-19200);
|
|
193
|
+
--hpe-base-static-container-xlarge: var(--hpe-base-dimension-38400);
|
|
194
|
+
--hpe-base-static-container-xxlarge: var(--hpe-base-dimension-76800);
|
|
195
195
|
}
|
package/dist/css/color.dark.css
CHANGED
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root[data-mode=dark] {
|
|
6
|
-
--hpe-color-decorative-brand: #ffffff;
|
|
7
6
|
--hpe-color-transparent: rgba(0, 0, 0, 0);
|
|
8
7
|
--hpe-color-background-default: var(--hpe-base-color-grey-1300); /* Default color for component backgrounds in the default/enabled state. Can also be used for page background. */
|
|
9
|
-
--hpe-color-background-hover: var(--hpe-base-color-white-opacity6); /*
|
|
8
|
+
--hpe-color-background-hover: var(--hpe-base-color-white-opacity6); /* Generic hover state of components that have no fill in their default/enabled state. For example, unselected menu-items. */
|
|
10
9
|
--hpe-color-background-active: var(--hpe-base-color-white-opacity6); /* Standard active state color */
|
|
11
|
-
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /* Disabled background color. Using disabled
|
|
12
|
-
--hpe-color-background-back: var(--hpe-base-color-grey-1300); /* Elevation level 0. Typically used for the page
|
|
10
|
+
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /* Disabled background color. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
11
|
+
--hpe-color-background-back: var(--hpe-base-color-grey-1300); /* Elevation level 0. Typically used for the page color. color.background.back creates a contrasted page backdrop for components to sit on. It’s useful to make components stand out on pages that use it. The nature of back is that it forms a contrast with any foreground component. */
|
|
13
12
|
--hpe-color-background-front: var(--hpe-base-color-grey-1200); /* Elevation level 1. Lowest level of elevation for container/surfaces that sit directly on top of the page. Example: container that houses a data table. */
|
|
14
13
|
--hpe-color-background-floating: var(--hpe-base-color-grey-1100); /* Elevation level 3. The highest level of elevation for elements that sit above everything else. Example: dropdowns, layer, side drawers and floating buttons. */
|
|
15
14
|
--hpe-color-background-screen-overlay: var(--hpe-base-color-black-opacity12); /* Use for the backdrop overlay that sits behind dialogues, modals or layers. */
|
|
@@ -18,46 +17,46 @@
|
|
|
18
17
|
--hpe-color-background-unknown: var(--hpe-base-color-white-opacity6);
|
|
19
18
|
--hpe-color-background-critical: var(--hpe-base-color-red-800-opacity30);
|
|
20
19
|
--hpe-color-background-warning: var(--hpe-base-color-yellow-400-opacity12);
|
|
21
|
-
--hpe-color-background-selected-weak-enabled: var(--hpe-base-color-green-1000); /* Lower emphasis variant of selected
|
|
22
|
-
--hpe-color-background-selected-weak-hover: var(--hpe-base-color-green-900); /* Lower emphasis variant of selected
|
|
20
|
+
--hpe-color-background-selected-weak-enabled: var(--hpe-base-color-green-1000); /* Lower emphasis variant of selected color. Use if selection color needs to be less prominent. */
|
|
21
|
+
--hpe-color-background-selected-weak-hover: var(--hpe-base-color-green-900); /* Lower emphasis variant of selected color. Use if selection color needs to be less prominent. */
|
|
23
22
|
--hpe-color-background-primary-default: var(--hpe-base-color-green-600); /* The default primary color of components at a rest/ enabled state. The term ‘primary’ denoting hierarchy - the most important thing. Use to style components prominently and give greater visual hierarchy. */
|
|
24
|
-
--hpe-color-background-primary-hover: var(--hpe-
|
|
23
|
+
--hpe-color-background-primary-hover: var(--hpe-base-color-green-600); /* Hover color variant of the primary color. */
|
|
25
24
|
--hpe-color-background-ok: var(--hpe-base-color-green-500-opacity30);
|
|
26
25
|
--hpe-color-background-neutral-xstrong: var(--hpe-base-color-grey-50);
|
|
27
26
|
--hpe-color-border-strong: var(--hpe-base-color-white-opacity72); /* Stronger border color for added emphasis */
|
|
28
|
-
--hpe-color-border-default: var(--hpe-base-color-white-opacity36); /* Default border
|
|
27
|
+
--hpe-color-border-default: var(--hpe-base-color-white-opacity36); /* Default border color */
|
|
29
28
|
--hpe-color-border-weak: var(--hpe-base-color-white-opacity12); /* Weaker border color for reduced emphasis */
|
|
30
|
-
--hpe-color-border-disabled: var(--hpe-base-color-white-opacity12); /* Disabled
|
|
31
|
-
--hpe-color-border-selected: var(--hpe-base-color-green-600); /* Selected (or checked)
|
|
29
|
+
--hpe-color-border-disabled: var(--hpe-base-color-white-opacity12); /* Disabled color for borders. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
30
|
+
--hpe-color-border-selected: var(--hpe-base-color-green-600); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggles, active tabs. */
|
|
32
31
|
--hpe-color-text-default: var(--hpe-base-color-white-100); /* Default text color that is accessible on standard background colors */
|
|
33
32
|
--hpe-color-text-strong: var(--hpe-base-color-white-100); /* Stronger text color for added prominence */
|
|
34
33
|
--hpe-color-text-weak: var(--hpe-base-color-white-opacity50); /* Weaker text color for reduced emphasis */
|
|
35
34
|
--hpe-color-text-xweak: var(--hpe-base-color-white-opacity20);
|
|
36
|
-
--hpe-color-text-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for text. Using disabled
|
|
37
|
-
--hpe-color-text-on-primary: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on a primary
|
|
35
|
+
--hpe-color-text-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for text. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
36
|
+
--hpe-color-text-on-primary: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on a primary color (for example a background styled with the primary color). This text and background pairing helps ensure accessibility. Furthermore, it enables precise theming updates and allows easier maintenance of colors, where if the primary color changes, we can update color.text.onPrimary to be accessible on the new primary color. */
|
|
38
37
|
--hpe-color-text-brand: var(--hpe-base-color-green-600); /* Brand text color. Use with caution. Currently not accessible for text that is below a bold weight and below 19px. */
|
|
39
38
|
--hpe-color-text-on-strong-default: var(--hpe-base-color-grey-1200);
|
|
40
39
|
--hpe-color-text-on-selected-strong: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on background-selected-strong. */
|
|
41
|
-
--hpe-color-icon-default: var(--hpe-base-color-white-100); /* Default icon
|
|
40
|
+
--hpe-color-icon-default: var(--hpe-base-color-white-100); /* Default icon color that is accessible on standard background colors */
|
|
42
41
|
--hpe-color-icon-strong: var(--hpe-base-color-white-100); /* Stronger icon color for added prominence */
|
|
43
42
|
--hpe-color-icon-weak: var(--hpe-base-color-white-opacity50); /* Weaker icon color for reduced emphasis */
|
|
44
43
|
--hpe-color-icon-xweak: var(--hpe-base-color-white-opacity20);
|
|
45
|
-
--hpe-color-icon-disabled: var(--hpe-base-color-white-opacity24); /* Disabled
|
|
44
|
+
--hpe-color-icon-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for icons. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
46
45
|
--hpe-color-icon-critical: var(--hpe-base-color-red-550);
|
|
47
46
|
--hpe-color-icon-info: var(--hpe-base-color-blue-700);
|
|
48
47
|
--hpe-color-icon-ok: var(--hpe-base-color-green-500);
|
|
49
48
|
--hpe-color-icon-warning: var(--hpe-base-color-orange-600);
|
|
50
49
|
--hpe-color-icon-unknown: var(--hpe-base-color-grey-700);
|
|
51
|
-
--hpe-color-icon-on-primary: var(--hpe-base-color-white-100); /* Icon
|
|
50
|
+
--hpe-color-icon-on-primary: var(--hpe-base-color-white-100); /* Icon color to be used when text sits on primary color (for example a background styled with the primary color). This text and background pairing ensures text used on primary is accessible. Furthermore, it enables precise theming updates and allows for easier maintenance of colors, where if the primary color changes, we can update color.text.onPrimary to be accessible on the new primary color. */
|
|
52
51
|
--hpe-color-icon-brand: var(--hpe-base-color-green-600); /* Brand color for icons. */
|
|
53
52
|
--hpe-color-icon-on-selected-strong: var(--hpe-base-color-white-100); /* Icon color to be used for Icon sitting on background-selected-strong. */
|
|
54
|
-
--hpe-color-decorative-green: var(--hpe-base-color-green-700); /* Use for decorative purposes when
|
|
55
|
-
--hpe-color-decorative-purple: var(--hpe-base-color-purple-900); /* Use for decorative purposes when
|
|
56
|
-
--hpe-color-decorative-teal: var(--hpe-base-color-teal-700); /* Use for decorative purposes when
|
|
57
|
-
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when
|
|
58
|
-
--hpe-color-decorative-red: var(--hpe-base-color-red-850); /* Use for decorative purposes when
|
|
59
|
-
--hpe-color-decorative-orange: var(--hpe-base-color-orange-700); /* Use for decorative purposes when
|
|
60
|
-
--hpe-color-decorative-yellow: var(--hpe-base-color-yellow-700); /* Use for decorative purposes when
|
|
53
|
+
--hpe-color-decorative-green: var(--hpe-base-color-green-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
54
|
+
--hpe-color-decorative-purple: var(--hpe-base-color-purple-900); /* Use for decorative purposes when color has no specific meaning. */
|
|
55
|
+
--hpe-color-decorative-teal: var(--hpe-base-color-teal-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
56
|
+
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
57
|
+
--hpe-color-decorative-red: var(--hpe-base-color-red-850); /* Use for decorative purposes when color has no specific meaning. */
|
|
58
|
+
--hpe-color-decorative-orange: var(--hpe-base-color-orange-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
59
|
+
--hpe-color-decorative-yellow: var(--hpe-base-color-yellow-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
61
60
|
--hpe-color-decorative-purple: var(--hpe-base-color-purple-800); /* Use for decorative purposes when color has no specific meaning. */
|
|
62
61
|
--hpe-color-decorative-teal: var(--hpe-base-color-teal-400); /* Use for decorative purposes when color has no specific meaning. */
|
|
63
62
|
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
@@ -77,8 +76,8 @@
|
|
|
77
76
|
--hpe-color-foreground-warning: var(--hpe-base-color-orange-600);
|
|
78
77
|
--hpe-color-foreground-unknown: var(--hpe-base-color-grey-700);
|
|
79
78
|
--hpe-shadow-small: 0 var(--hpe-base-dimension-100) var(--hpe-base-dimension-100) var(--hpe-base-color-black-opacity24) ;
|
|
80
|
-
--hpe-color-background-selected-strong-enabled: var(--hpe-base-color-brand); /* Selected (or checked)
|
|
81
|
-
--hpe-color-background-selected-strong-hover: var(--hpe-base-color-brand); /* Selected (or checked)
|
|
79
|
+
--hpe-color-background-selected-strong-enabled: var(--hpe-base-color-brand); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs. */
|
|
80
|
+
--hpe-color-background-selected-strong-hover: var(--hpe-base-color-brand); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs. */
|
|
82
81
|
--hpe-color-border-critical: var(--hpe-color-border-default);
|
|
83
82
|
--hpe-color-border-info: var(--hpe-color-border-default);
|
|
84
83
|
--hpe-color-border-ok: var(--hpe-color-border-default);
|
|
@@ -104,6 +103,7 @@
|
|
|
104
103
|
--hpe-color-text-on-warning-strong: var(--hpe-color-text-strong); /* Text color to be used on status backgrounds. */
|
|
105
104
|
--hpe-color-text-on-warning-default: var(--hpe-color-text-default); /* Text color to be used on status backgrounds. */
|
|
106
105
|
--hpe-color-icon-on-selected-weak: var(--hpe-color-text-strong); /* Icon color to be used for icon sitting on background-selected-strong. */
|
|
106
|
+
--hpe-color-decorative-brand: var(--hpe-base-color-brand);
|
|
107
107
|
--hpe-color-decorative-green: var(--hpe-base-color-brand); /* Use for decorative purposes when color has no specific meaning. */
|
|
108
108
|
--hpe-color-foreground-primary: var(--hpe-base-color-brand);
|
|
109
109
|
--hpe-shadow-medium: var(--hpe-base-static-spacing-none) var(--hpe-base-static-spacing-xsmall) var(--hpe-base-static-spacing-small) var(--hpe-base-static-spacing-none) var(--hpe-base-color-black-opacity36) ;
|
|
@@ -112,13 +112,12 @@
|
|
|
112
112
|
|
|
113
113
|
@media (prefers-color-scheme: dark) {
|
|
114
114
|
:root[data-mode=dark] {
|
|
115
|
-
--hpe-color-decorative-brand: #ffffff;
|
|
116
115
|
--hpe-color-transparent: rgba(0, 0, 0, 0);
|
|
117
116
|
--hpe-color-background-default: var(--hpe-base-color-grey-1300); /* Default color for component backgrounds in the default/enabled state. Can also be used for page background. */
|
|
118
|
-
--hpe-color-background-hover: var(--hpe-base-color-white-opacity6); /*
|
|
117
|
+
--hpe-color-background-hover: var(--hpe-base-color-white-opacity6); /* Generic hover state of components that have no fill in their default/enabled state. For example, unselected menu-items. */
|
|
119
118
|
--hpe-color-background-active: var(--hpe-base-color-white-opacity6); /* Standard active state color */
|
|
120
|
-
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /* Disabled background color. Using disabled
|
|
121
|
-
--hpe-color-background-back: var(--hpe-base-color-grey-1300); /* Elevation level 0. Typically used for the page
|
|
119
|
+
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /* Disabled background color. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
120
|
+
--hpe-color-background-back: var(--hpe-base-color-grey-1300); /* Elevation level 0. Typically used for the page color. color.background.back creates a contrasted page backdrop for components to sit on. It’s useful to make components stand out on pages that use it. The nature of back is that it forms a contrast with any foreground component. */
|
|
122
121
|
--hpe-color-background-front: var(--hpe-base-color-grey-1200); /* Elevation level 1. Lowest level of elevation for container/surfaces that sit directly on top of the page. Example: container that houses a data table. */
|
|
123
122
|
--hpe-color-background-floating: var(--hpe-base-color-grey-1100); /* Elevation level 3. The highest level of elevation for elements that sit above everything else. Example: dropdowns, layer, side drawers and floating buttons. */
|
|
124
123
|
--hpe-color-background-screen-overlay: var(--hpe-base-color-black-opacity12); /* Use for the backdrop overlay that sits behind dialogues, modals or layers. */
|
|
@@ -127,46 +126,46 @@
|
|
|
127
126
|
--hpe-color-background-unknown: var(--hpe-base-color-white-opacity6);
|
|
128
127
|
--hpe-color-background-critical: var(--hpe-base-color-red-800-opacity30);
|
|
129
128
|
--hpe-color-background-warning: var(--hpe-base-color-yellow-400-opacity12);
|
|
130
|
-
--hpe-color-background-selected-weak-enabled: var(--hpe-base-color-green-1000); /* Lower emphasis variant of selected
|
|
131
|
-
--hpe-color-background-selected-weak-hover: var(--hpe-base-color-green-900); /* Lower emphasis variant of selected
|
|
129
|
+
--hpe-color-background-selected-weak-enabled: var(--hpe-base-color-green-1000); /* Lower emphasis variant of selected color. Use if selection color needs to be less prominent. */
|
|
130
|
+
--hpe-color-background-selected-weak-hover: var(--hpe-base-color-green-900); /* Lower emphasis variant of selected color. Use if selection color needs to be less prominent. */
|
|
132
131
|
--hpe-color-background-primary-default: var(--hpe-base-color-green-600); /* The default primary color of components at a rest/ enabled state. The term ‘primary’ denoting hierarchy - the most important thing. Use to style components prominently and give greater visual hierarchy. */
|
|
133
|
-
--hpe-color-background-primary-hover: var(--hpe-
|
|
132
|
+
--hpe-color-background-primary-hover: var(--hpe-base-color-green-600); /* Hover color variant of the primary color. */
|
|
134
133
|
--hpe-color-background-ok: var(--hpe-base-color-green-500-opacity30);
|
|
135
134
|
--hpe-color-background-neutral-xstrong: var(--hpe-base-color-grey-50);
|
|
136
135
|
--hpe-color-border-strong: var(--hpe-base-color-white-opacity72); /* Stronger border color for added emphasis */
|
|
137
|
-
--hpe-color-border-default: var(--hpe-base-color-white-opacity36); /* Default border
|
|
136
|
+
--hpe-color-border-default: var(--hpe-base-color-white-opacity36); /* Default border color */
|
|
138
137
|
--hpe-color-border-weak: var(--hpe-base-color-white-opacity12); /* Weaker border color for reduced emphasis */
|
|
139
|
-
--hpe-color-border-disabled: var(--hpe-base-color-white-opacity12); /* Disabled
|
|
140
|
-
--hpe-color-border-selected: var(--hpe-base-color-green-600); /* Selected (or checked)
|
|
138
|
+
--hpe-color-border-disabled: var(--hpe-base-color-white-opacity12); /* Disabled color for borders. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
139
|
+
--hpe-color-border-selected: var(--hpe-base-color-green-600); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggles, active tabs. */
|
|
141
140
|
--hpe-color-text-default: var(--hpe-base-color-white-100); /* Default text color that is accessible on standard background colors */
|
|
142
141
|
--hpe-color-text-strong: var(--hpe-base-color-white-100); /* Stronger text color for added prominence */
|
|
143
142
|
--hpe-color-text-weak: var(--hpe-base-color-white-opacity50); /* Weaker text color for reduced emphasis */
|
|
144
143
|
--hpe-color-text-xweak: var(--hpe-base-color-white-opacity20);
|
|
145
|
-
--hpe-color-text-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for text. Using disabled
|
|
146
|
-
--hpe-color-text-on-primary: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on a primary
|
|
144
|
+
--hpe-color-text-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for text. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
145
|
+
--hpe-color-text-on-primary: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on a primary color (for example a background styled with the primary color). This text and background pairing helps ensure accessibility. Furthermore, it enables precise theming updates and allows easier maintenance of colors, where if the primary color changes, we can update color.text.onPrimary to be accessible on the new primary color. */
|
|
147
146
|
--hpe-color-text-brand: var(--hpe-base-color-green-600); /* Brand text color. Use with caution. Currently not accessible for text that is below a bold weight and below 19px. */
|
|
148
147
|
--hpe-color-text-on-strong-default: var(--hpe-base-color-grey-1200);
|
|
149
148
|
--hpe-color-text-on-selected-strong: var(--hpe-base-color-white-100); /* Text color to be used for text sitting on background-selected-strong. */
|
|
150
|
-
--hpe-color-icon-default: var(--hpe-base-color-white-100); /* Default icon
|
|
149
|
+
--hpe-color-icon-default: var(--hpe-base-color-white-100); /* Default icon color that is accessible on standard background colors */
|
|
151
150
|
--hpe-color-icon-strong: var(--hpe-base-color-white-100); /* Stronger icon color for added prominence */
|
|
152
151
|
--hpe-color-icon-weak: var(--hpe-base-color-white-opacity50); /* Weaker icon color for reduced emphasis */
|
|
153
152
|
--hpe-color-icon-xweak: var(--hpe-base-color-white-opacity20);
|
|
154
|
-
--hpe-color-icon-disabled: var(--hpe-base-color-white-opacity24); /* Disabled
|
|
153
|
+
--hpe-color-icon-disabled: var(--hpe-base-color-white-opacity24); /* Disabled color for icons. Using disabled colors ensures that disabled components are similarly styled and consistent. Furthermore, it allows us to control disabled colors at the token level, rather than the component build level. */
|
|
155
154
|
--hpe-color-icon-critical: var(--hpe-base-color-red-550);
|
|
156
155
|
--hpe-color-icon-info: var(--hpe-base-color-blue-700);
|
|
157
156
|
--hpe-color-icon-ok: var(--hpe-base-color-green-500);
|
|
158
157
|
--hpe-color-icon-warning: var(--hpe-base-color-orange-600);
|
|
159
158
|
--hpe-color-icon-unknown: var(--hpe-base-color-grey-700);
|
|
160
|
-
--hpe-color-icon-on-primary: var(--hpe-base-color-white-100); /* Icon
|
|
159
|
+
--hpe-color-icon-on-primary: var(--hpe-base-color-white-100); /* Icon color to be used when text sits on primary color (for example a background styled with the primary color). This text and background pairing ensures text used on primary is accessible. Furthermore, it enables precise theming updates and allows for easier maintenance of colors, where if the primary color changes, we can update color.text.onPrimary to be accessible on the new primary color. */
|
|
161
160
|
--hpe-color-icon-brand: var(--hpe-base-color-green-600); /* Brand color for icons. */
|
|
162
161
|
--hpe-color-icon-on-selected-strong: var(--hpe-base-color-white-100); /* Icon color to be used for Icon sitting on background-selected-strong. */
|
|
163
|
-
--hpe-color-decorative-green: var(--hpe-base-color-green-700); /* Use for decorative purposes when
|
|
164
|
-
--hpe-color-decorative-purple: var(--hpe-base-color-purple-900); /* Use for decorative purposes when
|
|
165
|
-
--hpe-color-decorative-teal: var(--hpe-base-color-teal-700); /* Use for decorative purposes when
|
|
166
|
-
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when
|
|
167
|
-
--hpe-color-decorative-red: var(--hpe-base-color-red-850); /* Use for decorative purposes when
|
|
168
|
-
--hpe-color-decorative-orange: var(--hpe-base-color-orange-700); /* Use for decorative purposes when
|
|
169
|
-
--hpe-color-decorative-yellow: var(--hpe-base-color-yellow-700); /* Use for decorative purposes when
|
|
162
|
+
--hpe-color-decorative-green: var(--hpe-base-color-green-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
163
|
+
--hpe-color-decorative-purple: var(--hpe-base-color-purple-900); /* Use for decorative purposes when color has no specific meaning. */
|
|
164
|
+
--hpe-color-decorative-teal: var(--hpe-base-color-teal-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
165
|
+
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
166
|
+
--hpe-color-decorative-red: var(--hpe-base-color-red-850); /* Use for decorative purposes when color has no specific meaning. */
|
|
167
|
+
--hpe-color-decorative-orange: var(--hpe-base-color-orange-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
168
|
+
--hpe-color-decorative-yellow: var(--hpe-base-color-yellow-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
170
169
|
--hpe-color-decorative-purple: var(--hpe-base-color-purple-800); /* Use for decorative purposes when color has no specific meaning. */
|
|
171
170
|
--hpe-color-decorative-teal: var(--hpe-base-color-teal-400); /* Use for decorative purposes when color has no specific meaning. */
|
|
172
171
|
--hpe-color-decorative-blue: var(--hpe-base-color-blue-700); /* Use for decorative purposes when color has no specific meaning. */
|
|
@@ -186,8 +185,8 @@
|
|
|
186
185
|
--hpe-color-foreground-warning: var(--hpe-base-color-orange-600);
|
|
187
186
|
--hpe-color-foreground-unknown: var(--hpe-base-color-grey-700);
|
|
188
187
|
--hpe-shadow-small: 0 var(--hpe-base-dimension-100) var(--hpe-base-dimension-100) var(--hpe-base-color-black-opacity24) ;
|
|
189
|
-
--hpe-color-background-selected-strong-enabled: var(--hpe-base-color-brand); /* Selected (or checked)
|
|
190
|
-
--hpe-color-background-selected-strong-hover: var(--hpe-base-color-brand); /* Selected (or checked)
|
|
188
|
+
--hpe-color-background-selected-strong-enabled: var(--hpe-base-color-brand); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs. */
|
|
189
|
+
--hpe-color-background-selected-strong-hover: var(--hpe-base-color-brand); /* Selected (or checked) color. Used for ‘selected’ state. Examples include, checked checkboxes, checked radios, on toggle, active tabs. */
|
|
191
190
|
--hpe-color-border-critical: var(--hpe-color-border-default);
|
|
192
191
|
--hpe-color-border-info: var(--hpe-color-border-default);
|
|
193
192
|
--hpe-color-border-ok: var(--hpe-color-border-default);
|
|
@@ -213,6 +212,7 @@
|
|
|
213
212
|
--hpe-color-text-on-warning-strong: var(--hpe-color-text-strong); /* Text color to be used on status backgrounds. */
|
|
214
213
|
--hpe-color-text-on-warning-default: var(--hpe-color-text-default); /* Text color to be used on status backgrounds. */
|
|
215
214
|
--hpe-color-icon-on-selected-weak: var(--hpe-color-text-strong); /* Icon color to be used for icon sitting on background-selected-strong. */
|
|
215
|
+
--hpe-color-decorative-brand: var(--hpe-base-color-brand);
|
|
216
216
|
--hpe-color-decorative-green: var(--hpe-base-color-brand); /* Use for decorative purposes when color has no specific meaning. */
|
|
217
217
|
--hpe-color-foreground-primary: var(--hpe-base-color-brand);
|
|
218
218
|
--hpe-shadow-medium: var(--hpe-base-static-spacing-none) var(--hpe-base-static-spacing-xsmall) var(--hpe-base-static-spacing-small) var(--hpe-base-static-spacing-none) var(--hpe-base-color-black-opacity36) ;
|