·
38 commits
to master
since this release
This release provides production-ready support for HPE Design Tokens with styles in alignment with the existing HPE theme (grommet-theme-hpe v5).
hpe-design-tokens v1.0.0 applies the updated look and feel of the HPE theme. Therefore to ease adoption of design tokens, v0.9.0 allows teams with existing applications to adopt design tokens while maintaining styling that aligns with existing theming. There are no breaking API changes from v0.9.0 to v1.0.0. The only changes are value changes to reflect the updated HPE theme.
Breaking changes
- b87e080: - Renamed
3xl
,4xl
,5xl
text and anchor sizes to3xlarge
,4xlarge
, and5xlarge
for consistency with other t-shirt size naming. - 6df1814: - Updated
anchor.disabled
tokens to be structured asanchor.disabled.rest
. - 6df1814: - Updated
dataCell.primary.disabled
tokens to be structured asdataCell.primary.disabled.rest
. - 66ca9da:
- Renamed exports from "base" to "primitives" (e.g., "base.css" --> "primitives.css").
- Removed "default" from CJS/ESM component token exports (e.g., "components.default.cjs" --> "components.js"). No effect on import.
- Removed light/dark, medium/small modes from ESM/CommonJS exports. Because these now return CSS variable refs, we don't need separate mode exports. (e.g., "color.light.js" --> "color.js").
- cb9764f: - Moved
fontWeight
tokens for checkbox, switch, and radiobutton label under each state. - fc7ba24:
- Renamed
color.background.primary.default
-->color.background.primary.strong
. - Renamed
color.background.selected.strong.enabled
-->color.background.selected.primary.strong
. - Renamed
color.background.selected.strong.hover
-->color.background.selected.primary.strong.hover
. - Renamed
color.background.selected.weak.enabled
-->color.background.selected.primary
. - Renamed
color.background.selected.weak.hover
-->color.background.selected.primary.hover
. - Renamed
color.text.onPrimary
-->color.text.onPrimaryStrong
. - Renamed
color.text.heading.default
-->color.text.heading
. - Renamed
color.text.onSelectedStrong
-->color.text.onSelectedPrimaryStrong
. - Renamed
color.text.onSelected
-->color.text.onSelectedPrimary
. - Renamed
color.text.onStrong.default
-->color.text.onStrong
. - Renamed
color.text.onCritical.default
-->color.text.onCritical
. - Renamed
color.text.onWarning.default
-->color.text.onWarning
. - Renamed
color.text.onOk.default
-->color.text.onOk
. - Renamed
color.text.onInfo.default
-->color.text.onInfo
. - Renamed
color.text.onUnknown.default
-->color.text.onUnknown
. - Renamed
color.icon.onPrimary
-->color.icon.onPrimaryStrong
. - Renamed
color.icon.onSelectedStrong
-->color.icon.onSelectedPrimaryStrong
. - Renamed
color.icon.onSelected
-->color.icon.onSelectedPrimary
.
- Renamed
- 6c11700:
- Removed
color.text.xweak
,color.icon.xweak
,color.text.brand
,color.icon.brand
. - Renamed
enabled
in component tokens torest
. - Removed
checkbox.control.selected.disabled
(usecheckbox.control.disabled.rest
). - Removed
radiobutton.control.selected.disabled
(useradiobutton.control.disabled.rest
). - Removed
dataCell.primary.disabled
(usedataCell.disabled.rest
). - Restructured Anchor token structure from
anchor.[size].default
toanchor.default.[size]
in alignment with button token structure.
- Removed
- f9c30cc:
- Updated
borderWidth
scale values (and removed unused value of xlarge). - Removed incorrect
dataCell.pinned.rest.backgroundColor
in favor of existingdataCell.pinned.rest.background
.
- Updated
- 2b30ef4:
- Changed ESM/CommonJS exports to resolve to CSS variables rather than raw values.
- Changed structure of "color" exports to flatten color name after the category (e.g.,
hpe.color.background.selected.weak
-->hpe.color.background['selected-weak']
).
- a334ab2: - Removed "!" namespaced decorative colors (e.g.,
hpe.color.decorative.green!
). - 38aad17: - Removed component-specific focus tokens in favor of relying on global focusIndicator tokens.
- c376a85:
- Removed
fontStack.code
. - Removed
display.medium
. - Removed
text.6xl
,anchor.6xl
.
- Removed
- 52674f0:
- Removed
formField.input.group.item.status.critical
tokens. - Removed formField text "error" tokens for complex states, now only support
error.rest
,error.hover
,error.focus
. - Renamed formField "enabled" tokens to "rest".
- Renamed formField "status.critical" tokens to "error.rest".
- Renamed formField "disabled" tokens to "disabled.rest".
- Renamed formField "readOnly" tokens to "readOnly.rest".
- Renamed
base.static
tokens tostatic
.
- Removed
- c3982ea: - Renamed default dimension mode from "medium" to "default".
- dc6b0f3:
- Renamed
size.icon[t-shirt size]
toicon[t-shirt size].size
(e.g.,size.icon.xsmall
-->icon.xsmall.size
). - Renamed
size.container[t-shirt size]
tocontainer[t-shirt size]
(e.g.,size.container.medium
-->container.medium
). - Renamed all default component tokens to include "default" namespace (e.g.,
checkbox.control.rest.background
-->checkbox.default.control.rest.background
).
- Renamed
Added
- 6df1814: - Added
color.text.anchor
,color.text.anchor.hover
. - 083dab9:
- Added
anchor.default.xsmall
tokens. - Added
color.decorative.neutral
,color.decorative.neutral.hover
- Added
- f9c30cc: - Added
iconColor
for select.option states. - 2b30ef4: - Added new export
hpe-design-tokens/grommet
. - 11926ea: - Added
iconColor
tokens to formField label. - 38aad17: - Added
drop.boxShadow
. - 52674f0: - Added
formField.input.group.container.error.rest
tokens.
Updated
- 6df1814: - Fixed color-background-screenOverlay.
- 38aad17: - Fixed
icon.info
andbackground.info
to correct values. - 78fb822: Fixed
formField.input.group.container.enabled.background
,formField.input.group.container.hover.background
tocolor.transparent
. - 6700928: - Fixed container token values in "small" mode to remain the same as "default" mode, in alignment with current behavior.
- 1affdd5: - Fixed t-shirt scales and values for
spacing
andcontainer
tokens. - 11926ea:
- Fixed
switch.medium.label.lineHeight
. - Fixed
formField.input.group.container.error.rest.borderColor
. - Fixed
formField.input.group.container.disabled.rest.background
. - Fixed
formField.help.disabled.rest.textColor
. - Fixed
base.color.grey.1000
which is used by light mode forcolor.text.strong
.
- Fixed
- e3bf8e6: - Fixed
shadow.small
dimension andshadow.large
dark mode color.