hpe-design-tokens 2.0.0 → 2.1.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.
@@ -118,7 +118,8 @@ module.exports = {
118
118
  "critical": "var(--hpe-color-foreground-critical)",
119
119
  "warning": "var(--hpe-color-foreground-warning)",
120
120
  "unknown": "var(--hpe-color-foreground-unknown)"
121
- }
121
+ },
122
+ "focus-support": "var(--hpe-color-focus-support)"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "var(--hpe-shadow-small)",
@@ -221,7 +221,8 @@
221
221
  --hpe-color-dataVis-categorical-60: var(--hpe-base-color-cyan-300);
222
222
  --hpe-color-dataVis-categorical-70: var(--hpe-base-color-plum-100);
223
223
  --hpe-color-dataVis-categorical-80: var(--hpe-base-color-coral-200);
224
- --hpe-color-focus: var(--hpe-base-color-grey-1000);
224
+ --hpe-color-focus: var(--hpe-base-color-white-100); /** The primary outer ring of the focus indicator, used to define the overall area of the focused element. */
225
+ --hpe-color-focus-support: var(--hpe-base-color-grey-1000); /** The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds. */
225
226
  --hpe-color-foreground-primary: var(--hpe-base-color-green-550);
226
227
  --hpe-color-foreground-critical: var(--hpe-base-color-red-500); /** Use for foreground regions communicating error or danger. Often used to color values in a meter or progress bar. Keywords: status */
227
228
  --hpe-color-foreground-warning: var(--hpe-base-color-orange-500); /** Use for foreground regions communicating warning or caution. Often used to color values in a meter or progress bar. Keywords: status */
@@ -825,7 +826,8 @@
825
826
  --hpe-color-dataVis-categorical-60: var(--hpe-base-color-cyan-300);
826
827
  --hpe-color-dataVis-categorical-70: var(--hpe-base-color-plum-100);
827
828
  --hpe-color-dataVis-categorical-80: var(--hpe-base-color-coral-200);
828
- --hpe-color-focus: var(--hpe-base-color-grey-1000);
829
+ --hpe-color-focus: var(--hpe-base-color-white-100); /** The primary outer ring of the focus indicator, used to define the overall area of the focused element. */
830
+ --hpe-color-focus-support: var(--hpe-base-color-grey-1000); /** The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds. */
829
831
  --hpe-color-foreground-primary: var(--hpe-base-color-green-550);
830
832
  --hpe-color-foreground-critical: var(--hpe-base-color-red-500); /** Use for foreground regions communicating error or danger. Often used to color values in a meter or progress bar. Keywords: status */
831
833
  --hpe-color-foreground-warning: var(--hpe-base-color-orange-500); /** Use for foreground regions communicating warning or caution. Often used to color values in a meter or progress bar. Keywords: status */
@@ -223,7 +223,8 @@
223
223
  --hpe-color-dataVis-categorical-60: var(--hpe-base-color-cyan-500);
224
224
  --hpe-color-dataVis-categorical-70: var(--hpe-base-color-plum-700);
225
225
  --hpe-color-dataVis-categorical-80: var(--hpe-base-color-coral-300);
226
- --hpe-color-focus: var(--hpe-base-color-grey-1000);
226
+ --hpe-color-focus: var(--hpe-base-color-grey-1000); /** The primary outer ring of the focus indicator, used to define the overall area of the focused element. */
227
+ --hpe-color-focus-support: var(--hpe-base-color-white-100); /** The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds. */
227
228
  --hpe-color-foreground-primary: var(--hpe-base-color-green-800);
228
229
  --hpe-color-foreground-critical: var(--hpe-base-color-red-600); /** Use for foreground regions communicating error or danger. Often used to color values in a meter or progress bar. Keywords: status */
229
230
  --hpe-color-foreground-warning: var(--hpe-base-color-orange-600); /** Use for foreground regions communicating warning or caution. Often used to color values in a meter or progress bar. Keywords: status */
@@ -18,5 +18,5 @@
18
18
  --hpe-fontWeight-bold: 700; /** Bold is used sparingly because it has reduced readability especially at smaller font sizes. */
19
19
  --hpe-fontWeight-black: 900; /** Black is rarely, if at all, used. */
20
20
  --hpe-focusIndicator-outline: var(--hpe-base-dimension-50) solid var(--hpe-color-focus);
21
- --hpe-focusIndicator-boxShadow: 0 0 0 var(--hpe-focusIndicator-outlineOffset) var(--hpe-base-color-white-100) ;
21
+ --hpe-focusIndicator-boxShadow: 0 0 0 var(--hpe-focusIndicator-outlineOffset) var(--hpe-color-focus-support) ;
22
22
  }
@@ -4449,9 +4449,51 @@ export default {
4449
4449
  "key": "{color.transparent}"
4450
4450
  },
4451
4451
  "hpe.color.focus": {
4452
+ "$type": "color",
4453
+ "$value": "#ffffff",
4454
+ "$description": "The primary outer ring of the focus indicator, used to define the overall area of the focused element.",
4455
+ "$extensions": {
4456
+ "com.figma": {
4457
+ "hiddenFromPublishing": false,
4458
+ "scopes": [
4459
+ "STROKE_COLOR"
4460
+ ],
4461
+ "codeSyntax": {}
4462
+ }
4463
+ },
4464
+ "filePath": "tokens/semantic/color.dark.json",
4465
+ "isSource": true,
4466
+ "original": {
4467
+ "$type": "color",
4468
+ "$value": "{base.color.white.100}",
4469
+ "$description": "The primary outer ring of the focus indicator, used to define the overall area of the focused element.",
4470
+ "$extensions": {
4471
+ "com.figma": {
4472
+ "hiddenFromPublishing": false,
4473
+ "scopes": [
4474
+ "STROKE_COLOR"
4475
+ ],
4476
+ "codeSyntax": {}
4477
+ }
4478
+ }
4479
+ },
4480
+ "name": "hpe.color.focus",
4481
+ "attributes": {
4482
+ "category": "color",
4483
+ "type": "focus",
4484
+ "item": "DEFAULT"
4485
+ },
4486
+ "path": [
4487
+ "color",
4488
+ "focus",
4489
+ "DEFAULT"
4490
+ ],
4491
+ "key": "{color.focus.DEFAULT}"
4492
+ },
4493
+ "hpe.color.focus.support": {
4452
4494
  "$type": "color",
4453
4495
  "$value": "#292d3a",
4454
- "$description": "",
4496
+ "$description": "The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds.",
4455
4497
  "$extensions": {
4456
4498
  "com.figma": {
4457
4499
  "hiddenFromPublishing": false,
@@ -4466,7 +4508,7 @@ export default {
4466
4508
  "original": {
4467
4509
  "$type": "color",
4468
4510
  "$value": "{base.color.grey.1000}",
4469
- "$description": "",
4511
+ "$description": "The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds.",
4470
4512
  "$extensions": {
4471
4513
  "com.figma": {
4472
4514
  "hiddenFromPublishing": false,
@@ -4477,16 +4519,18 @@ export default {
4477
4519
  }
4478
4520
  }
4479
4521
  },
4480
- "name": "hpe.color.focus",
4522
+ "name": "hpe.color.focus.support",
4481
4523
  "attributes": {
4482
4524
  "category": "color",
4483
- "type": "focus"
4525
+ "type": "focus",
4526
+ "item": "support"
4484
4527
  },
4485
4528
  "path": [
4486
4529
  "color",
4487
- "focus"
4530
+ "focus",
4531
+ "support"
4488
4532
  ],
4489
- "key": "{color.focus}"
4533
+ "key": "{color.focus.support}"
4490
4534
  },
4491
4535
  "hpe.color.foreground.primary": {
4492
4536
  "$type": "color",
@@ -4451,7 +4451,7 @@ export default {
4451
4451
  "hpe.color.focus": {
4452
4452
  "$type": "color",
4453
4453
  "$value": "#292d3a",
4454
- "$description": "",
4454
+ "$description": "The primary outer ring of the focus indicator, used to define the overall area of the focused element.",
4455
4455
  "$extensions": {
4456
4456
  "com.figma": {
4457
4457
  "hiddenFromPublishing": false,
@@ -4466,7 +4466,7 @@ export default {
4466
4466
  "original": {
4467
4467
  "$type": "color",
4468
4468
  "$value": "{base.color.grey.1000}",
4469
- "$description": "",
4469
+ "$description": "The primary outer ring of the focus indicator, used to define the overall area of the focused element.",
4470
4470
  "$extensions": {
4471
4471
  "com.figma": {
4472
4472
  "hiddenFromPublishing": false,
@@ -4480,13 +4480,57 @@ export default {
4480
4480
  "name": "hpe.color.focus",
4481
4481
  "attributes": {
4482
4482
  "category": "color",
4483
- "type": "focus"
4483
+ "type": "focus",
4484
+ "item": "DEFAULT"
4485
+ },
4486
+ "path": [
4487
+ "color",
4488
+ "focus",
4489
+ "DEFAULT"
4490
+ ],
4491
+ "key": "{color.focus.DEFAULT}"
4492
+ },
4493
+ "hpe.color.focus.support": {
4494
+ "$type": "color",
4495
+ "$value": "#ffffff",
4496
+ "$description": "The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds.",
4497
+ "$extensions": {
4498
+ "com.figma": {
4499
+ "hiddenFromPublishing": false,
4500
+ "scopes": [
4501
+ "STROKE_COLOR"
4502
+ ],
4503
+ "codeSyntax": {}
4504
+ }
4505
+ },
4506
+ "filePath": "tokens/semantic/color.light.json",
4507
+ "isSource": true,
4508
+ "original": {
4509
+ "$type": "color",
4510
+ "$value": "{base.color.white.100}",
4511
+ "$description": "The secondary inner ring of the focus indicator, designed to provide a high-contrast complement to color.focus against various backgrounds.",
4512
+ "$extensions": {
4513
+ "com.figma": {
4514
+ "hiddenFromPublishing": false,
4515
+ "scopes": [
4516
+ "STROKE_COLOR"
4517
+ ],
4518
+ "codeSyntax": {}
4519
+ }
4520
+ }
4521
+ },
4522
+ "name": "hpe.color.focus.support",
4523
+ "attributes": {
4524
+ "category": "color",
4525
+ "type": "focus",
4526
+ "item": "support"
4484
4527
  },
4485
4528
  "path": [
4486
4529
  "color",
4487
- "focus"
4530
+ "focus",
4531
+ "support"
4488
4532
  ],
4489
- "key": "{color.focus}"
4533
+ "key": "{color.focus.support}"
4490
4534
  },
4491
4535
  "hpe.color.foreground.primary": {
4492
4536
  "$type": "color",
@@ -25,7 +25,7 @@ export default {
25
25
  "$type": "border",
26
26
  "$value": {
27
27
  "width": "{base.dimension.50}",
28
- "color": "{color.focus}",
28
+ "color": "{color.focus.DEFAULT}",
29
29
  "style": "solid"
30
30
  },
31
31
  "$description": "",
@@ -107,7 +107,7 @@ export default {
107
107
  "offsetY": 0,
108
108
  "blur": 0,
109
109
  "spread": "{focusIndicator.outlineOffset}",
110
- "color": "{base.color.white.100}"
110
+ "color": "{color.focus.support}"
111
111
  }
112
112
  ],
113
113
  "$description": "",
package/dist/esm/color.js CHANGED
@@ -118,7 +118,8 @@ export default {
118
118
  "critical": "var(--hpe-color-foreground-critical)",
119
119
  "warning": "var(--hpe-color-foreground-warning)",
120
120
  "unknown": "var(--hpe-color-foreground-unknown)"
121
- }
121
+ },
122
+ "focus-support": "var(--hpe-color-focus-support)"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "var(--hpe-shadow-small)",
@@ -112,13 +112,14 @@ module.exports = {
112
112
  "categorical-80": "#e5786a"
113
113
  },
114
114
  "transparent": "rgba(0, 0, 0, 0)",
115
- "focus": "#292d3a",
115
+ "focus": "#ffffff",
116
116
  "foreground": {
117
117
  "primary": "#05cc93",
118
118
  "critical": "#fc6161",
119
119
  "warning": "#ec8c25",
120
120
  "unknown": "#7d8a92"
121
- }
121
+ },
122
+ "focus-support": "#292d3a"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "0 2px 4px rgba(0, 0, 0, 0.24) ",
@@ -118,7 +118,8 @@ module.exports = {
118
118
  "critical": "#ec3331",
119
119
  "warning": "#d36d00",
120
120
  "unknown": "#7d8a92"
121
- }
121
+ },
122
+ "focus-support": "#ffffff"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "0 2px 4px rgba(0, 0, 0, 0.12) ",
@@ -12,7 +12,13 @@ module.exports = {
12
12
  "style": "solid"
13
13
  },
14
14
  "outlineOffset": "2px",
15
- "boxShadow": "0 0 0 2px #ffffff "
15
+ "boxShadow": {
16
+ "offsetX": 0,
17
+ "offsetY": 0,
18
+ "blur": 0,
19
+ "spread": "{focusIndicator.outlineOffset}",
20
+ "color": "{color.focus.support}"
21
+ }
16
22
  },
17
23
  "fontStack": {
18
24
  "primary": "'Graphik', Arial, sans-serif"
@@ -112,13 +112,14 @@ export default {
112
112
  "categorical-80": "#e5786a"
113
113
  },
114
114
  "transparent": "rgba(0, 0, 0, 0)",
115
- "focus": "#292d3a",
115
+ "focus": "#ffffff",
116
116
  "foreground": {
117
117
  "primary": "#05cc93",
118
118
  "critical": "#fc6161",
119
119
  "warning": "#ec8c25",
120
120
  "unknown": "#7d8a92"
121
- }
121
+ },
122
+ "focus-support": "#292d3a"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "0 2px 4px rgba(0, 0, 0, 0.24) ",
@@ -118,7 +118,8 @@ export default {
118
118
  "critical": "#ec3331",
119
119
  "warning": "#d36d00",
120
120
  "unknown": "#7d8a92"
121
- }
121
+ },
122
+ "focus-support": "#ffffff"
122
123
  },
123
124
  "shadow": {
124
125
  "small": "0 2px 4px rgba(0, 0, 0, 0.12) ",
@@ -12,7 +12,13 @@ export default {
12
12
  "style": "solid"
13
13
  },
14
14
  "outlineOffset": "2px",
15
- "boxShadow": "0 0 0 2px #ffffff "
15
+ "boxShadow": {
16
+ "offsetX": 0,
17
+ "offsetY": 0,
18
+ "blur": 0,
19
+ "spread": "{focusIndicator.outlineOffset}",
20
+ "color": "{color.focus.support}"
21
+ }
16
22
  },
17
23
  "fontStack": {
18
24
  "primary": "'Graphik', Arial, sans-serif"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hpe-design-tokens",
3
3
  "description": "Design tokens for use with the HPE Design System.",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "module": "./dist/esm/index.js",