hpe-design-tokens 2.4.0 → 2.5.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/CHANGELOG.md +15 -1
- package/dist/cjs/color.cjs +3 -0
- package/dist/cjs/primitives.cjs +1 -0
- package/dist/css/color.dark.css +8 -0
- package/dist/css/color.light.css +4 -0
- package/dist/css/primitives.css +1 -0
- package/dist/docs/color.dark.js +146 -0
- package/dist/docs/color.light.js +146 -0
- package/dist/docs/metadata/semanticColorMetadata.dark.js +30 -0
- package/dist/docs/metadata/semanticColorMetadata.light.js +30 -0
- package/dist/docs/primitives.js +44 -0
- package/dist/esm/color.js +3 -0
- package/dist/esm/primitives.js +1 -0
- package/dist/grommet/cjs/color.dark.cjs +3 -0
- package/dist/grommet/cjs/color.light.cjs +3 -0
- package/dist/grommet/cjs/primitives.cjs +1 -0
- package/dist/grommet/color.dark.js +3 -0
- package/dist/grommet/color.light.js +3 -0
- package/dist/grommet/primitives.js +1 -0
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# hpe-design-tokens
|
|
2
2
|
|
|
3
|
+
## 2.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 760e41c: Add `base.color.red.900` (`#9c0f0b`), `color.icon.critical.DEFAULT.hover`,
|
|
8
|
+
`color.background.critical.strong.REST`, and
|
|
9
|
+
`color.background.critical.strong.hover` for critical interactive states in light
|
|
10
|
+
and dark modes.
|
|
11
|
+
|
|
12
|
+
Pair strong critical backgrounds, including hover, with `color.text.onStrong.DEFAULT.REST` and
|
|
13
|
+
`color.icon.onStrong.DEFAULT.REST`. Keep `color.text.onCritical` paired with the existing weak
|
|
14
|
+
`color.background.critical`. No existing token values change and no migration is
|
|
15
|
+
required. See [the change inventory for #6812](https://github.com/grommet/hpe-design-system/issues/6812#issuecomment-6986796660).
|
|
16
|
+
|
|
3
17
|
## 2.4.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -16,7 +30,7 @@
|
|
|
16
30
|
|
|
17
31
|
- 525716f: Adds a new accent color palette and a new `color.foreground.info` color to the semantic colors, fixes the unselected CheckBox/RadioButton control border contrast, and aligns form-input hover styling.
|
|
18
32
|
|
|
19
|
-
- Added accent colors (`color.background.accent.{blue,purple,cyan}.{weak,strong}`, `color.border.accent.{blue,purple,cyan}.strong`) for use as functional, sparingly-applied brand accents. Hues carry no fixed semantic meaning.
|
|
33
|
+
- Added accent colors (`color.background.accent.{blue,purple,cyan}.{weak,strong}`, `color.border.accent.{blue,purple,cyan}.strong`) for use as functional, sparingly-applied brand accents. Hues carry no fixed semantic meaning. Weak background accent colors have been contrast-validated when paired with `color.{text,icon}.{default,strong,weak}`, and strong background accent colors when paired with `color.{text,icon}.onStrong`, in light and dark modes.
|
|
20
34
|
|
|
21
35
|
- Added `color.foreground.info` color for representing an informational status in foreground graphics such as `Meter` and progress bars. Completes the foreground status set (`color.foreground.critical`, `color.foreground.warning`, `color.foreground.ok`, `color.foreground.unknown`, `color.foreground.info`).
|
|
22
36
|
|
package/dist/cjs/color.cjs
CHANGED
|
@@ -19,6 +19,8 @@ module.exports = {
|
|
|
19
19
|
"contrast": "var(--hpe-color-background-contrast)",
|
|
20
20
|
"contrast-hover": "var(--hpe-color-background-contrast-hover)",
|
|
21
21
|
"critical": "var(--hpe-color-background-critical)",
|
|
22
|
+
"critical-strong": "var(--hpe-color-background-critical-strong)",
|
|
23
|
+
"critical-strong-hover": "var(--hpe-color-background-critical-strong-hover)",
|
|
22
24
|
"default": "var(--hpe-color-background-default)",
|
|
23
25
|
"disabled": "var(--hpe-color-background-disabled)",
|
|
24
26
|
"floating": "var(--hpe-color-background-floating)",
|
|
@@ -85,6 +87,7 @@ module.exports = {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "var(--hpe-color-icon-critical)",
|
|
90
|
+
"critical-hover": "var(--hpe-color-icon-critical-hover)",
|
|
88
91
|
"default": "var(--hpe-color-icon-default)",
|
|
89
92
|
"disabled": "var(--hpe-color-icon-disabled)",
|
|
90
93
|
"info": "var(--hpe-color-icon-info)",
|
package/dist/cjs/primitives.cjs
CHANGED
|
@@ -94,6 +94,7 @@ module.exports = {
|
|
|
94
94
|
"red-500": "var(--hpe-base-color-red-500)",
|
|
95
95
|
"red-600": "var(--hpe-base-color-red-600)",
|
|
96
96
|
"red-800": "var(--hpe-base-color-red-800)",
|
|
97
|
+
"red-900": "var(--hpe-base-color-red-900)",
|
|
97
98
|
"red-1000": "var(--hpe-base-color-red-1000)",
|
|
98
99
|
"white-100": "var(--hpe-base-color-white-100)",
|
|
99
100
|
"white-opacity10": "var(--hpe-base-color-white-opacity10)",
|
package/dist/css/color.dark.css
CHANGED
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
--hpe-base-color-red-500: #fc6161;
|
|
92
92
|
--hpe-base-color-red-600: #ec3331;
|
|
93
93
|
--hpe-base-color-red-800: #cc1f1a;
|
|
94
|
+
--hpe-base-color-red-900: #9c0f0b;
|
|
94
95
|
--hpe-base-color-red-1000: #552120;
|
|
95
96
|
--hpe-base-color-white-100: #ffffff;
|
|
96
97
|
--hpe-base-color-white-opacity10: rgba(255, 255, 255, 0.1);
|
|
@@ -183,6 +184,8 @@
|
|
|
183
184
|
--hpe-color-background-contrast: var(--hpe-base-color-white-opacity6); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
184
185
|
--hpe-color-background-contrast-hover: var(--hpe-base-color-white-opacity10); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
185
186
|
--hpe-color-background-critical: var(--hpe-base-color-red-1000); /** Use for backgrounds communicating errors or danger. Keywords: status */
|
|
187
|
+
--hpe-color-background-critical-strong: var(--hpe-base-color-red-500); /** The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status */
|
|
188
|
+
--hpe-color-background-critical-strong-hover: var(--hpe-base-color-red-400); /** Hover variant of background-critical-strong. */
|
|
186
189
|
--hpe-color-background-default: var(--hpe-base-color-grey-1300); /** Default background color to be used on containers. */
|
|
187
190
|
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /** Disabled background color. Using disabled colors ensures that disabled components are consistently styled. */
|
|
188
191
|
--hpe-color-background-floating: var(--hpe-base-color-grey-1200); /** Elevation level 2. The highest level of elevation for elements that sit above everything else. Example: drop downs, layers */
|
|
@@ -231,6 +234,7 @@
|
|
|
231
234
|
--hpe-color-foreground-primary: var(--hpe-base-color-green-550);
|
|
232
235
|
--hpe-color-foreground-unknown: var(--hpe-base-color-grey-600); /** Use for foreground regions communicating unknown status. Often used to color values in a meter or progress bar. Keywords: status */
|
|
233
236
|
--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 */
|
|
237
|
+
--hpe-color-icon-critical-hover: var(--hpe-base-color-red-400); /** Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status */
|
|
234
238
|
--hpe-color-icon-info: var(--hpe-base-color-blue-200); /** Use for icons communicating neutral information. Keywords: status */
|
|
235
239
|
--hpe-color-icon-ok: var(--hpe-base-color-green-550); /** Use for icons communicating success. Keywords: status */
|
|
236
240
|
--hpe-color-icon-onPrimaryStrong: var(--hpe-base-color-grey-1000); /** Icon color to be used when icon sits on primary background. This icon and background pairing ensures accessible contrast ratios. */
|
|
@@ -717,6 +721,7 @@
|
|
|
717
721
|
--hpe-base-color-red-500: #fc6161;
|
|
718
722
|
--hpe-base-color-red-600: #ec3331;
|
|
719
723
|
--hpe-base-color-red-800: #cc1f1a;
|
|
724
|
+
--hpe-base-color-red-900: #9c0f0b;
|
|
720
725
|
--hpe-base-color-red-1000: #552120;
|
|
721
726
|
--hpe-base-color-white-100: #ffffff;
|
|
722
727
|
--hpe-base-color-white-opacity10: rgba(255, 255, 255, 0.1);
|
|
@@ -809,6 +814,8 @@
|
|
|
809
814
|
--hpe-color-background-contrast: var(--hpe-base-color-white-opacity6); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
810
815
|
--hpe-color-background-contrast-hover: var(--hpe-base-color-white-opacity10); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
811
816
|
--hpe-color-background-critical: var(--hpe-base-color-red-1000); /** Use for backgrounds communicating errors or danger. Keywords: status */
|
|
817
|
+
--hpe-color-background-critical-strong: var(--hpe-base-color-red-500); /** The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status */
|
|
818
|
+
--hpe-color-background-critical-strong-hover: var(--hpe-base-color-red-400); /** Hover variant of background-critical-strong. */
|
|
812
819
|
--hpe-color-background-default: var(--hpe-base-color-grey-1300); /** Default background color to be used on containers. */
|
|
813
820
|
--hpe-color-background-disabled: var(--hpe-base-color-white-opacity7); /** Disabled background color. Using disabled colors ensures that disabled components are consistently styled. */
|
|
814
821
|
--hpe-color-background-floating: var(--hpe-base-color-grey-1200); /** Elevation level 2. The highest level of elevation for elements that sit above everything else. Example: drop downs, layers */
|
|
@@ -857,6 +864,7 @@
|
|
|
857
864
|
--hpe-color-foreground-primary: var(--hpe-base-color-green-550);
|
|
858
865
|
--hpe-color-foreground-unknown: var(--hpe-base-color-grey-600); /** Use for foreground regions communicating unknown status. Often used to color values in a meter or progress bar. Keywords: status */
|
|
859
866
|
--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 */
|
|
867
|
+
--hpe-color-icon-critical-hover: var(--hpe-base-color-red-400); /** Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status */
|
|
860
868
|
--hpe-color-icon-info: var(--hpe-base-color-blue-200); /** Use for icons communicating neutral information. Keywords: status */
|
|
861
869
|
--hpe-color-icon-ok: var(--hpe-base-color-green-550); /** Use for icons communicating success. Keywords: status */
|
|
862
870
|
--hpe-color-icon-onPrimaryStrong: var(--hpe-base-color-grey-1000); /** Icon color to be used when icon sits on primary background. This icon and background pairing ensures accessible contrast ratios. */
|
package/dist/css/color.light.css
CHANGED
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
--hpe-base-color-red-500: #fc6161;
|
|
92
92
|
--hpe-base-color-red-600: #ec3331;
|
|
93
93
|
--hpe-base-color-red-800: #cc1f1a;
|
|
94
|
+
--hpe-base-color-red-900: #9c0f0b;
|
|
94
95
|
--hpe-base-color-red-1000: #552120;
|
|
95
96
|
--hpe-base-color-white-100: #ffffff;
|
|
96
97
|
--hpe-base-color-white-opacity10: rgba(255, 255, 255, 0.1);
|
|
@@ -181,6 +182,8 @@
|
|
|
181
182
|
--hpe-color-background-contrast: var(--hpe-base-color-black-opacity4); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
182
183
|
--hpe-color-background-contrast-hover: var(--hpe-base-color-black-opacity8); /** Use to create a subtle differentiation between a component or container and the region it sits on. */
|
|
183
184
|
--hpe-color-background-critical: var(--hpe-base-color-red-50); /** Use for backgrounds communicating errors or danger. Keywords: status */
|
|
185
|
+
--hpe-color-background-critical-strong: var(--hpe-base-color-red-800); /** The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status */
|
|
186
|
+
--hpe-color-background-critical-strong-hover: var(--hpe-base-color-red-900); /** Hover variant of background-critical-strong. */
|
|
184
187
|
--hpe-color-background-default: var(--hpe-base-color-white-100); /** Default background color to be used on containers. */
|
|
185
188
|
--hpe-color-background-disabled: var(--hpe-base-color-black-opacity4); /** Disabled background color. Using disabled colors ensures that disabled components are consistently styled. */
|
|
186
189
|
--hpe-color-background-floating: var(--hpe-base-color-white-100); /** Elevation level 2. The highest level of elevation for elements that sit above everything else. Example: drop downs, layers */
|
|
@@ -231,6 +234,7 @@
|
|
|
231
234
|
--hpe-color-foreground-unknown: var(--hpe-base-color-grey-600); /** Use for foreground regions communicating unknown status. Often used to color values in a meter or progress bar. Keywords: status */
|
|
232
235
|
--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 */
|
|
233
236
|
--hpe-color-icon-critical: var(--hpe-base-color-red-800); /** Use for icons communicating errors or danger. Keywords: status */
|
|
237
|
+
--hpe-color-icon-critical-hover: var(--hpe-base-color-red-900); /** Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status */
|
|
234
238
|
--hpe-color-icon-info: var(--hpe-base-color-blue-700); /** Use for icons communicating neutral information. Keywords: status */
|
|
235
239
|
--hpe-color-icon-ok: var(--hpe-base-color-green-650); /** Use for icons communicating success. Keywords: status */
|
|
236
240
|
--hpe-color-icon-onPrimaryStrong: var(--hpe-base-color-white-100); /** Icon color to be used when icon sits on primary background. This icon and background pairing ensures accessible contrast ratios. */
|
package/dist/css/primitives.css
CHANGED
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
--hpe-base-color-red-500: #fc6161;
|
|
92
92
|
--hpe-base-color-red-600: #ec3331;
|
|
93
93
|
--hpe-base-color-red-800: #cc1f1a;
|
|
94
|
+
--hpe-base-color-red-900: #9c0f0b;
|
|
94
95
|
--hpe-base-color-red-1000: #552120;
|
|
95
96
|
--hpe-base-color-white-100: #ffffff;
|
|
96
97
|
--hpe-base-color-white-opacity10: rgba(255, 255, 255, 0.1);
|
package/dist/docs/color.dark.js
CHANGED
|
@@ -598,6 +598,102 @@ export default {
|
|
|
598
598
|
],
|
|
599
599
|
"key": "{color.background.critical.DEFAULT.REST}"
|
|
600
600
|
},
|
|
601
|
+
"hpe.color.background.critical.strong": {
|
|
602
|
+
"$description": "The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status",
|
|
603
|
+
"$extensions": {
|
|
604
|
+
"com.figma": {
|
|
605
|
+
"codeSyntax": {},
|
|
606
|
+
"hiddenFromPublishing": false,
|
|
607
|
+
"scopes": [
|
|
608
|
+
"FRAME_FILL",
|
|
609
|
+
"SHAPE_FILL"
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"$type": "color",
|
|
614
|
+
"$value": "#fc6161",
|
|
615
|
+
"filePath": "tokens/semantic/color.dark.json",
|
|
616
|
+
"isSource": true,
|
|
617
|
+
"original": {
|
|
618
|
+
"$description": "The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status",
|
|
619
|
+
"$extensions": {
|
|
620
|
+
"com.figma": {
|
|
621
|
+
"codeSyntax": {},
|
|
622
|
+
"hiddenFromPublishing": false,
|
|
623
|
+
"scopes": [
|
|
624
|
+
"FRAME_FILL",
|
|
625
|
+
"SHAPE_FILL"
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"$type": "color",
|
|
630
|
+
"$value": "{base.color.red.500}"
|
|
631
|
+
},
|
|
632
|
+
"name": "hpe.color.background.critical.strong",
|
|
633
|
+
"attributes": {
|
|
634
|
+
"category": "color",
|
|
635
|
+
"type": "background",
|
|
636
|
+
"item": "critical",
|
|
637
|
+
"subitem": "strong",
|
|
638
|
+
"state": "REST"
|
|
639
|
+
},
|
|
640
|
+
"path": [
|
|
641
|
+
"color",
|
|
642
|
+
"background",
|
|
643
|
+
"critical",
|
|
644
|
+
"strong",
|
|
645
|
+
"REST"
|
|
646
|
+
],
|
|
647
|
+
"key": "{color.background.critical.strong.REST}"
|
|
648
|
+
},
|
|
649
|
+
"hpe.color.background.critical.strong.hover": {
|
|
650
|
+
"$description": "Hover variant of background-critical-strong.",
|
|
651
|
+
"$extensions": {
|
|
652
|
+
"com.figma": {
|
|
653
|
+
"codeSyntax": {},
|
|
654
|
+
"hiddenFromPublishing": false,
|
|
655
|
+
"scopes": [
|
|
656
|
+
"FRAME_FILL",
|
|
657
|
+
"SHAPE_FILL"
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"$type": "color",
|
|
662
|
+
"$value": "#ff7b7b",
|
|
663
|
+
"filePath": "tokens/semantic/color.dark.json",
|
|
664
|
+
"isSource": true,
|
|
665
|
+
"original": {
|
|
666
|
+
"$description": "Hover variant of background-critical-strong.",
|
|
667
|
+
"$extensions": {
|
|
668
|
+
"com.figma": {
|
|
669
|
+
"codeSyntax": {},
|
|
670
|
+
"hiddenFromPublishing": false,
|
|
671
|
+
"scopes": [
|
|
672
|
+
"FRAME_FILL",
|
|
673
|
+
"SHAPE_FILL"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"$type": "color",
|
|
678
|
+
"$value": "{base.color.red.400}"
|
|
679
|
+
},
|
|
680
|
+
"name": "hpe.color.background.critical.strong.hover",
|
|
681
|
+
"attributes": {
|
|
682
|
+
"category": "color",
|
|
683
|
+
"type": "background",
|
|
684
|
+
"item": "critical",
|
|
685
|
+
"subitem": "strong",
|
|
686
|
+
"state": "hover"
|
|
687
|
+
},
|
|
688
|
+
"path": [
|
|
689
|
+
"color",
|
|
690
|
+
"background",
|
|
691
|
+
"critical",
|
|
692
|
+
"strong",
|
|
693
|
+
"hover"
|
|
694
|
+
],
|
|
695
|
+
"key": "{color.background.critical.strong.hover}"
|
|
696
|
+
},
|
|
601
697
|
"hpe.color.background.default": {
|
|
602
698
|
"$description": "Default background color to be used on containers.",
|
|
603
699
|
"$extensions": {
|
|
@@ -3319,6 +3415,56 @@ export default {
|
|
|
3319
3415
|
],
|
|
3320
3416
|
"key": "{color.icon.critical.DEFAULT.REST}"
|
|
3321
3417
|
},
|
|
3418
|
+
"hpe.color.icon.critical.hover": {
|
|
3419
|
+
"$description": "Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status",
|
|
3420
|
+
"$extensions": {
|
|
3421
|
+
"com.figma": {
|
|
3422
|
+
"codeSyntax": {},
|
|
3423
|
+
"hiddenFromPublishing": false,
|
|
3424
|
+
"scopes": [
|
|
3425
|
+
"FRAME_FILL",
|
|
3426
|
+
"SHAPE_FILL",
|
|
3427
|
+
"STROKE_COLOR"
|
|
3428
|
+
]
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3431
|
+
"$type": "color",
|
|
3432
|
+
"$value": "#ff7b7b",
|
|
3433
|
+
"filePath": "tokens/semantic/color.dark.json",
|
|
3434
|
+
"isSource": true,
|
|
3435
|
+
"original": {
|
|
3436
|
+
"$description": "Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status",
|
|
3437
|
+
"$extensions": {
|
|
3438
|
+
"com.figma": {
|
|
3439
|
+
"codeSyntax": {},
|
|
3440
|
+
"hiddenFromPublishing": false,
|
|
3441
|
+
"scopes": [
|
|
3442
|
+
"FRAME_FILL",
|
|
3443
|
+
"SHAPE_FILL",
|
|
3444
|
+
"STROKE_COLOR"
|
|
3445
|
+
]
|
|
3446
|
+
}
|
|
3447
|
+
},
|
|
3448
|
+
"$type": "color",
|
|
3449
|
+
"$value": "{base.color.red.400}"
|
|
3450
|
+
},
|
|
3451
|
+
"name": "hpe.color.icon.critical.hover",
|
|
3452
|
+
"attributes": {
|
|
3453
|
+
"category": "color",
|
|
3454
|
+
"type": "icon",
|
|
3455
|
+
"item": "critical",
|
|
3456
|
+
"subitem": "DEFAULT",
|
|
3457
|
+
"state": "hover"
|
|
3458
|
+
},
|
|
3459
|
+
"path": [
|
|
3460
|
+
"color",
|
|
3461
|
+
"icon",
|
|
3462
|
+
"critical",
|
|
3463
|
+
"DEFAULT",
|
|
3464
|
+
"hover"
|
|
3465
|
+
],
|
|
3466
|
+
"key": "{color.icon.critical.DEFAULT.hover}"
|
|
3467
|
+
},
|
|
3322
3468
|
"hpe.color.icon.default": {
|
|
3323
3469
|
"$description": "Default icon color that is accessible on standard background colors.",
|
|
3324
3470
|
"$extensions": {
|
package/dist/docs/color.light.js
CHANGED
|
@@ -598,6 +598,102 @@ export default {
|
|
|
598
598
|
],
|
|
599
599
|
"key": "{color.background.critical.DEFAULT.REST}"
|
|
600
600
|
},
|
|
601
|
+
"hpe.color.background.critical.strong": {
|
|
602
|
+
"$description": "The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status",
|
|
603
|
+
"$extensions": {
|
|
604
|
+
"com.figma": {
|
|
605
|
+
"codeSyntax": {},
|
|
606
|
+
"hiddenFromPublishing": false,
|
|
607
|
+
"scopes": [
|
|
608
|
+
"FRAME_FILL",
|
|
609
|
+
"SHAPE_FILL"
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"$type": "color",
|
|
614
|
+
"$value": "#cc1f1a",
|
|
615
|
+
"filePath": "tokens/semantic/color.light.json",
|
|
616
|
+
"isSource": true,
|
|
617
|
+
"original": {
|
|
618
|
+
"$description": "The strong variant of background-critical. Use for solid, high-emphasis fills communicating errors or danger, such as a selected control in an error state. Pair with text-onStrong and icon-onStrong. Keywords: status",
|
|
619
|
+
"$extensions": {
|
|
620
|
+
"com.figma": {
|
|
621
|
+
"codeSyntax": {},
|
|
622
|
+
"hiddenFromPublishing": false,
|
|
623
|
+
"scopes": [
|
|
624
|
+
"FRAME_FILL",
|
|
625
|
+
"SHAPE_FILL"
|
|
626
|
+
]
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
"$type": "color",
|
|
630
|
+
"$value": "{base.color.red.800}"
|
|
631
|
+
},
|
|
632
|
+
"name": "hpe.color.background.critical.strong",
|
|
633
|
+
"attributes": {
|
|
634
|
+
"category": "color",
|
|
635
|
+
"type": "background",
|
|
636
|
+
"item": "critical",
|
|
637
|
+
"subitem": "strong",
|
|
638
|
+
"state": "REST"
|
|
639
|
+
},
|
|
640
|
+
"path": [
|
|
641
|
+
"color",
|
|
642
|
+
"background",
|
|
643
|
+
"critical",
|
|
644
|
+
"strong",
|
|
645
|
+
"REST"
|
|
646
|
+
],
|
|
647
|
+
"key": "{color.background.critical.strong.REST}"
|
|
648
|
+
},
|
|
649
|
+
"hpe.color.background.critical.strong.hover": {
|
|
650
|
+
"$description": "Hover variant of background-critical-strong.",
|
|
651
|
+
"$extensions": {
|
|
652
|
+
"com.figma": {
|
|
653
|
+
"codeSyntax": {},
|
|
654
|
+
"hiddenFromPublishing": false,
|
|
655
|
+
"scopes": [
|
|
656
|
+
"FRAME_FILL",
|
|
657
|
+
"SHAPE_FILL"
|
|
658
|
+
]
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
"$type": "color",
|
|
662
|
+
"$value": "#9c0f0b",
|
|
663
|
+
"filePath": "tokens/semantic/color.light.json",
|
|
664
|
+
"isSource": true,
|
|
665
|
+
"original": {
|
|
666
|
+
"$description": "Hover variant of background-critical-strong.",
|
|
667
|
+
"$extensions": {
|
|
668
|
+
"com.figma": {
|
|
669
|
+
"codeSyntax": {},
|
|
670
|
+
"hiddenFromPublishing": false,
|
|
671
|
+
"scopes": [
|
|
672
|
+
"FRAME_FILL",
|
|
673
|
+
"SHAPE_FILL"
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
"$type": "color",
|
|
678
|
+
"$value": "{base.color.red.900}"
|
|
679
|
+
},
|
|
680
|
+
"name": "hpe.color.background.critical.strong.hover",
|
|
681
|
+
"attributes": {
|
|
682
|
+
"category": "color",
|
|
683
|
+
"type": "background",
|
|
684
|
+
"item": "critical",
|
|
685
|
+
"subitem": "strong",
|
|
686
|
+
"state": "hover"
|
|
687
|
+
},
|
|
688
|
+
"path": [
|
|
689
|
+
"color",
|
|
690
|
+
"background",
|
|
691
|
+
"critical",
|
|
692
|
+
"strong",
|
|
693
|
+
"hover"
|
|
694
|
+
],
|
|
695
|
+
"key": "{color.background.critical.strong.hover}"
|
|
696
|
+
},
|
|
601
697
|
"hpe.color.background.default": {
|
|
602
698
|
"$description": "Default background color to be used on containers.",
|
|
603
699
|
"$extensions": {
|
|
@@ -3319,6 +3415,56 @@ export default {
|
|
|
3319
3415
|
],
|
|
3320
3416
|
"key": "{color.icon.critical.DEFAULT.REST}"
|
|
3321
3417
|
},
|
|
3418
|
+
"hpe.color.icon.critical.hover": {
|
|
3419
|
+
"$description": "Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status",
|
|
3420
|
+
"$extensions": {
|
|
3421
|
+
"com.figma": {
|
|
3422
|
+
"codeSyntax": {},
|
|
3423
|
+
"hiddenFromPublishing": false,
|
|
3424
|
+
"scopes": [
|
|
3425
|
+
"FRAME_FILL",
|
|
3426
|
+
"SHAPE_FILL",
|
|
3427
|
+
"STROKE_COLOR"
|
|
3428
|
+
]
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3431
|
+
"$type": "color",
|
|
3432
|
+
"$value": "#9c0f0b",
|
|
3433
|
+
"filePath": "tokens/semantic/color.light.json",
|
|
3434
|
+
"isSource": true,
|
|
3435
|
+
"original": {
|
|
3436
|
+
"$description": "Hover variant of icon-critical. Use for interactive icons and icon-like indicators communicating errors or danger. Keywords: status",
|
|
3437
|
+
"$extensions": {
|
|
3438
|
+
"com.figma": {
|
|
3439
|
+
"codeSyntax": {},
|
|
3440
|
+
"hiddenFromPublishing": false,
|
|
3441
|
+
"scopes": [
|
|
3442
|
+
"FRAME_FILL",
|
|
3443
|
+
"SHAPE_FILL",
|
|
3444
|
+
"STROKE_COLOR"
|
|
3445
|
+
]
|
|
3446
|
+
}
|
|
3447
|
+
},
|
|
3448
|
+
"$type": "color",
|
|
3449
|
+
"$value": "{base.color.red.900}"
|
|
3450
|
+
},
|
|
3451
|
+
"name": "hpe.color.icon.critical.hover",
|
|
3452
|
+
"attributes": {
|
|
3453
|
+
"category": "color",
|
|
3454
|
+
"type": "icon",
|
|
3455
|
+
"item": "critical",
|
|
3456
|
+
"subitem": "DEFAULT",
|
|
3457
|
+
"state": "hover"
|
|
3458
|
+
},
|
|
3459
|
+
"path": [
|
|
3460
|
+
"color",
|
|
3461
|
+
"icon",
|
|
3462
|
+
"critical",
|
|
3463
|
+
"DEFAULT",
|
|
3464
|
+
"hover"
|
|
3465
|
+
],
|
|
3466
|
+
"key": "{color.icon.critical.DEFAULT.hover}"
|
|
3467
|
+
},
|
|
3322
3468
|
"hpe.color.icon.default": {
|
|
3323
3469
|
"$description": "Default icon color that is accessible on standard background colors.",
|
|
3324
3470
|
"$extensions": {
|
|
@@ -115,6 +115,26 @@ export const semanticColorMetadata = {
|
|
|
115
115
|
"scale": "default",
|
|
116
116
|
"state": "REST"
|
|
117
117
|
},
|
|
118
|
+
"color/background/critical/strong/REST": {
|
|
119
|
+
"type": "color",
|
|
120
|
+
"target": "background",
|
|
121
|
+
"role": {
|
|
122
|
+
"family": null,
|
|
123
|
+
"name": "critical"
|
|
124
|
+
},
|
|
125
|
+
"scale": "strong",
|
|
126
|
+
"state": "REST"
|
|
127
|
+
},
|
|
128
|
+
"color/background/critical/strong/hover": {
|
|
129
|
+
"type": "color",
|
|
130
|
+
"target": "background",
|
|
131
|
+
"role": {
|
|
132
|
+
"family": null,
|
|
133
|
+
"name": "critical"
|
|
134
|
+
},
|
|
135
|
+
"scale": "strong",
|
|
136
|
+
"state": "hover"
|
|
137
|
+
},
|
|
118
138
|
"color/background/default/REST": {
|
|
119
139
|
"type": "color",
|
|
120
140
|
"target": "background",
|
|
@@ -676,6 +696,16 @@ export const semanticColorMetadata = {
|
|
|
676
696
|
"scale": "default",
|
|
677
697
|
"state": "REST"
|
|
678
698
|
},
|
|
699
|
+
"color/icon/critical/DEFAULT/hover": {
|
|
700
|
+
"type": "color",
|
|
701
|
+
"target": "icon",
|
|
702
|
+
"role": {
|
|
703
|
+
"family": null,
|
|
704
|
+
"name": "critical"
|
|
705
|
+
},
|
|
706
|
+
"scale": "default",
|
|
707
|
+
"state": "hover"
|
|
708
|
+
},
|
|
679
709
|
"color/icon/default/REST": {
|
|
680
710
|
"type": "color",
|
|
681
711
|
"target": "icon",
|
|
@@ -115,6 +115,26 @@ export const semanticColorMetadata = {
|
|
|
115
115
|
"scale": "default",
|
|
116
116
|
"state": "REST"
|
|
117
117
|
},
|
|
118
|
+
"color/background/critical/strong/REST": {
|
|
119
|
+
"type": "color",
|
|
120
|
+
"target": "background",
|
|
121
|
+
"role": {
|
|
122
|
+
"family": null,
|
|
123
|
+
"name": "critical"
|
|
124
|
+
},
|
|
125
|
+
"scale": "strong",
|
|
126
|
+
"state": "REST"
|
|
127
|
+
},
|
|
128
|
+
"color/background/critical/strong/hover": {
|
|
129
|
+
"type": "color",
|
|
130
|
+
"target": "background",
|
|
131
|
+
"role": {
|
|
132
|
+
"family": null,
|
|
133
|
+
"name": "critical"
|
|
134
|
+
},
|
|
135
|
+
"scale": "strong",
|
|
136
|
+
"state": "hover"
|
|
137
|
+
},
|
|
118
138
|
"color/background/default/REST": {
|
|
119
139
|
"type": "color",
|
|
120
140
|
"target": "background",
|
|
@@ -676,6 +696,16 @@ export const semanticColorMetadata = {
|
|
|
676
696
|
"scale": "default",
|
|
677
697
|
"state": "REST"
|
|
678
698
|
},
|
|
699
|
+
"color/icon/critical/DEFAULT/hover": {
|
|
700
|
+
"type": "color",
|
|
701
|
+
"target": "icon",
|
|
702
|
+
"role": {
|
|
703
|
+
"family": null,
|
|
704
|
+
"name": "critical"
|
|
705
|
+
},
|
|
706
|
+
"scale": "default",
|
|
707
|
+
"state": "hover"
|
|
708
|
+
},
|
|
679
709
|
"color/icon/default/REST": {
|
|
680
710
|
"type": "color",
|
|
681
711
|
"target": "icon",
|
package/dist/docs/primitives.js
CHANGED
|
@@ -3832,6 +3832,50 @@ export default {
|
|
|
3832
3832
|
],
|
|
3833
3833
|
"key": "{base.color.red.800}"
|
|
3834
3834
|
},
|
|
3835
|
+
"hpe.base.color.red.900": {
|
|
3836
|
+
"$description": "",
|
|
3837
|
+
"$extensions": {
|
|
3838
|
+
"com.figma": {
|
|
3839
|
+
"codeSyntax": {},
|
|
3840
|
+
"hiddenFromPublishing": false,
|
|
3841
|
+
"scopes": [
|
|
3842
|
+
"ALL_SCOPES"
|
|
3843
|
+
]
|
|
3844
|
+
}
|
|
3845
|
+
},
|
|
3846
|
+
"$type": "color",
|
|
3847
|
+
"$value": "#9c0f0b",
|
|
3848
|
+
"filePath": "tokens/primitive/primitives.default.json",
|
|
3849
|
+
"isSource": true,
|
|
3850
|
+
"original": {
|
|
3851
|
+
"$description": "",
|
|
3852
|
+
"$extensions": {
|
|
3853
|
+
"com.figma": {
|
|
3854
|
+
"codeSyntax": {},
|
|
3855
|
+
"hiddenFromPublishing": false,
|
|
3856
|
+
"scopes": [
|
|
3857
|
+
"ALL_SCOPES"
|
|
3858
|
+
]
|
|
3859
|
+
}
|
|
3860
|
+
},
|
|
3861
|
+
"$type": "color",
|
|
3862
|
+
"$value": "#9c0f0b"
|
|
3863
|
+
},
|
|
3864
|
+
"name": "hpe.base.color.red.900",
|
|
3865
|
+
"attributes": {
|
|
3866
|
+
"category": "base",
|
|
3867
|
+
"type": "color",
|
|
3868
|
+
"item": "red",
|
|
3869
|
+
"subitem": "900"
|
|
3870
|
+
},
|
|
3871
|
+
"path": [
|
|
3872
|
+
"base",
|
|
3873
|
+
"color",
|
|
3874
|
+
"red",
|
|
3875
|
+
"900"
|
|
3876
|
+
],
|
|
3877
|
+
"key": "{base.color.red.900}"
|
|
3878
|
+
},
|
|
3835
3879
|
"hpe.base.color.red.1000": {
|
|
3836
3880
|
"$description": "",
|
|
3837
3881
|
"$extensions": {
|
package/dist/esm/color.js
CHANGED
|
@@ -19,6 +19,8 @@ export default {
|
|
|
19
19
|
"contrast": "var(--hpe-color-background-contrast)",
|
|
20
20
|
"contrast-hover": "var(--hpe-color-background-contrast-hover)",
|
|
21
21
|
"critical": "var(--hpe-color-background-critical)",
|
|
22
|
+
"critical-strong": "var(--hpe-color-background-critical-strong)",
|
|
23
|
+
"critical-strong-hover": "var(--hpe-color-background-critical-strong-hover)",
|
|
22
24
|
"default": "var(--hpe-color-background-default)",
|
|
23
25
|
"disabled": "var(--hpe-color-background-disabled)",
|
|
24
26
|
"floating": "var(--hpe-color-background-floating)",
|
|
@@ -85,6 +87,7 @@ export default {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "var(--hpe-color-icon-critical)",
|
|
90
|
+
"critical-hover": "var(--hpe-color-icon-critical-hover)",
|
|
88
91
|
"default": "var(--hpe-color-icon-default)",
|
|
89
92
|
"disabled": "var(--hpe-color-icon-disabled)",
|
|
90
93
|
"info": "var(--hpe-color-icon-info)",
|
package/dist/esm/primitives.js
CHANGED
|
@@ -94,6 +94,7 @@ export default {
|
|
|
94
94
|
"red-500": "var(--hpe-base-color-red-500)",
|
|
95
95
|
"red-600": "var(--hpe-base-color-red-600)",
|
|
96
96
|
"red-800": "var(--hpe-base-color-red-800)",
|
|
97
|
+
"red-900": "var(--hpe-base-color-red-900)",
|
|
97
98
|
"red-1000": "var(--hpe-base-color-red-1000)",
|
|
98
99
|
"white-100": "var(--hpe-base-color-white-100)",
|
|
99
100
|
"white-opacity10": "var(--hpe-base-color-white-opacity10)",
|
|
@@ -19,6 +19,8 @@ module.exports = {
|
|
|
19
19
|
"contrast": "rgba(255, 255, 255, 0.06)",
|
|
20
20
|
"contrast-hover": "rgba(255, 255, 255, 0.1)",
|
|
21
21
|
"critical": "#552120",
|
|
22
|
+
"critical-strong": "#fc6161",
|
|
23
|
+
"critical-strong-hover": "#ff7b7b",
|
|
22
24
|
"default": "#1d1f27",
|
|
23
25
|
"disabled": "rgba(255, 255, 255, 0.07)",
|
|
24
26
|
"floating": "#22252e",
|
|
@@ -85,6 +87,7 @@ module.exports = {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "#fc6161",
|
|
90
|
+
"critical-hover": "#ff7b7b",
|
|
88
91
|
"default": "#e6e8e9",
|
|
89
92
|
"disabled": "rgba(255, 255, 255, 0.24)",
|
|
90
93
|
"info": "#65aef9",
|
|
@@ -19,6 +19,8 @@ module.exports = {
|
|
|
19
19
|
"contrast": "rgba(0, 0, 0, 0.04)",
|
|
20
20
|
"contrast-hover": "rgba(0, 0, 0, 0.08)",
|
|
21
21
|
"critical": "#ffecec",
|
|
22
|
+
"critical-strong": "#cc1f1a",
|
|
23
|
+
"critical-strong-hover": "#9c0f0b",
|
|
22
24
|
"default": "#ffffff",
|
|
23
25
|
"disabled": "rgba(0, 0, 0, 0.04)",
|
|
24
26
|
"floating": "#ffffff",
|
|
@@ -85,6 +87,7 @@ module.exports = {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "#cc1f1a",
|
|
90
|
+
"critical-hover": "#9c0f0b",
|
|
88
91
|
"default": "#3e4550",
|
|
89
92
|
"disabled": "rgba(0, 0, 0, 0.24)",
|
|
90
93
|
"info": "#0055da",
|
|
@@ -19,6 +19,8 @@ export default {
|
|
|
19
19
|
"contrast": "rgba(255, 255, 255, 0.06)",
|
|
20
20
|
"contrast-hover": "rgba(255, 255, 255, 0.1)",
|
|
21
21
|
"critical": "#552120",
|
|
22
|
+
"critical-strong": "#fc6161",
|
|
23
|
+
"critical-strong-hover": "#ff7b7b",
|
|
22
24
|
"default": "#1d1f27",
|
|
23
25
|
"disabled": "rgba(255, 255, 255, 0.07)",
|
|
24
26
|
"floating": "#22252e",
|
|
@@ -85,6 +87,7 @@ export default {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "#fc6161",
|
|
90
|
+
"critical-hover": "#ff7b7b",
|
|
88
91
|
"default": "#e6e8e9",
|
|
89
92
|
"disabled": "rgba(255, 255, 255, 0.24)",
|
|
90
93
|
"info": "#65aef9",
|
|
@@ -19,6 +19,8 @@ export default {
|
|
|
19
19
|
"contrast": "rgba(0, 0, 0, 0.04)",
|
|
20
20
|
"contrast-hover": "rgba(0, 0, 0, 0.08)",
|
|
21
21
|
"critical": "#ffecec",
|
|
22
|
+
"critical-strong": "#cc1f1a",
|
|
23
|
+
"critical-strong-hover": "#9c0f0b",
|
|
22
24
|
"default": "#ffffff",
|
|
23
25
|
"disabled": "rgba(0, 0, 0, 0.04)",
|
|
24
26
|
"floating": "#ffffff",
|
|
@@ -85,6 +87,7 @@ export default {
|
|
|
85
87
|
},
|
|
86
88
|
"icon": {
|
|
87
89
|
"critical": "#cc1f1a",
|
|
90
|
+
"critical-hover": "#9c0f0b",
|
|
88
91
|
"default": "#3e4550",
|
|
89
92
|
"disabled": "rgba(0, 0, 0, 0.24)",
|
|
90
93
|
"info": "#0055da",
|
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.
|
|
4
|
+
"version": "2.5.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -30,22 +30,22 @@
|
|
|
30
30
|
"repository": "https://github.com/grommet/hpe-design-system",
|
|
31
31
|
"homepage": "https://design-system.hpe.design/",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@babel/preset-env": "^
|
|
34
|
-
"@babel/preset-typescript": "^
|
|
35
|
-
"@types/node": "^
|
|
33
|
+
"@babel/preset-env": "^8.0.7",
|
|
34
|
+
"@babel/preset-typescript": "^8.0.7",
|
|
35
|
+
"@types/node": "^26.6.6",
|
|
36
36
|
"ajv": "^8.20.0",
|
|
37
37
|
"ajv-formats": "^3.0.1",
|
|
38
|
-
"axios": "^1.
|
|
38
|
+
"axios": "^1.21.0",
|
|
39
39
|
"del": "^6.1.1",
|
|
40
|
-
"dotenv": "^16.
|
|
41
|
-
"fs-extra": "^11.
|
|
42
|
-
"prettier": "^3.
|
|
43
|
-
"simple-git": "^3.
|
|
44
|
-
"style-dictionary": "^4.
|
|
45
|
-
"style-dictionary-utils": "^3.
|
|
46
|
-
"tsx": "^4.
|
|
40
|
+
"dotenv": "^16.6.1",
|
|
41
|
+
"fs-extra": "^11.4.1",
|
|
42
|
+
"prettier": "^3.10.1",
|
|
43
|
+
"simple-git": "^3.36.0",
|
|
44
|
+
"style-dictionary": "^4.4.0",
|
|
45
|
+
"style-dictionary-utils": "^3.3.2",
|
|
46
|
+
"tsx": "^4.23.15",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
|
-
"vitest": "^3.
|
|
48
|
+
"vitest": "^3.2.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"prettier:check": "prettier --check src/",
|