Releases: grommet/hpe-design-system
[email protected]
[email protected]
- Fixed CSS output for dimension.medium.css by removing incorrect media query introduced in
v0.5.0
.
[email protected]
Breaking changes
component.default.json
- Restructured
button.[t-shirt size].[kind]
tobutton.[kind].[t-shirt size]
(e.g.,button.medium.primary.paddingY
—>button.primary.medium.paddingY
)
The reason for this restructuring is for the token namespace/architecture to lead with “function” and follow with “form”:
- generic function = UI control (e.g.,
button
) - specific function = Variant of the control tailored to the use-case (e.g.,
button.primary
) - style = State context (e.g.,
button.primary.enabled.background
) + dimension context (e.g.,button.primary.medium.paddingY
)
component.default.json
- Removed
switch.medium.width
(useswitch.medium.control.track.width
) - Removed
switch.medium.height
(useswitch.medium.control.track.height
) - Removed
switch.medium.borderRadius
(useswitch.medium.control.track.borderRadius
) - Removed
switch.medium.borderWidth
(useswitch.medium.control.track.borderWidth
)
color.light.json, color.dark.json
- Removed
color.shadow.weak
(useshadow.small
for full shadow style) - Removed
color.shadow.default
(useshadow.medium
for full shadow style) - Removed
color.shadow.strong
(useshadow.large
for full shadow style)
Added
color.light.json, color.dark.json
color.decorative.brand
global.default.json
focusIndicator.outlineOffset
focusIndicator.boxShadow
Updated
color.light.json
color.background.unknown
frombase.color.grey.50
tobase.color.black.opacity4
color.dark.json
color.background.unknown
frombase.color.grey.1200
tobase.color.white.opacity6
[email protected]
Added
color.light.json, color.dark.json
- ec8f38d -
color.border.critical
,color.border.info
,color.border.ok
,color.border.warning
,color.border.unknown
- 0bf081b -
color.background.neutral.xstrong
component.default.json
- 96c0d71
formField.medium.input.group.item.textToIconX
formField.medium.input.group.item.textToElementX
formField.medium.input.container.textToIconX
formField.medium.input.container.textToElementX
Updated
component.default.json
- 740101a - Button tokens to use element tokens and static sizing
- 86db503 - Drop tokens to use static sizing
- 8526d51 - Menu tokens to use static sizing and
color.transparent
- a898dec - Select tokens to use static sizing and
color.transparent
- 74c508e - Checkbox and switch tokens to use
base.dimension
tokens instead of lineHeight,checkbox.enabled.background
, andcheckbox.hover.background
- 64b7fb9 - dataCell, headerCell, and footerCell tokens to use
color.transparent
, also fixed some incorrectly mapped textColor tokens - 0c40456 - formField tokens to use
color.transparent
andformField.error.[state].textColor
to usecolor.text.critical
- d171ce5 - radioButton tokens to use
color.transparent
andbase.dimension
tokens instead of lineHeight
[email protected]
Breaking changes
dimension.large.json has been renamed to dimension.medium.json, meaning large
export is now medium
.
For CSS:
- hpe-design-tokens/dist/css/dimension.large.css
+ hpe-design-tokens/dist/css/dimension.medium.css
For ESM:
- import { large } from 'hpe-design-tokens';
+ import { medium } from 'hpe-design-tokens';
...
- large.hpe.spacing.medium
+ medium.hpe.spacing.medium
For CJS:
- const { large } = require('hpe-design-tokens');
+ const { large } = require('hpe-design-tokens');
...
- large.hpe.spacing.medium
+ medium.hpe.spacing.medium
color.light.json, color.dark.json
- Renamed
color.background.overlay
tocolor.background.screenOverlay
- Renamed
background.status.[statusKind]
tobackground.[statusKind]
(e.g.,background.status.info
—>background.info
) - Renamed
color.icon.status.[statusKind]
tocolor.icon.[statusKind]
(e.g.,color.icon.status.info
—>color.icon.info
) - Renamed
elevation
tokens toshadow
(e.g.,elevation.small
—>shadow.small
) - Removed
color.text.inverse.default
- Removed
Weak
DataVis colors (e.g.,color.dataVis.20Weak
)
element.default.json
- Renamed
component
tokens toelement
tokens (eg.,component.medium.fontSize
—>element.medium.fontSize
)
component.default.json
- Renamed formField
valueText
tokens tovalue
(e.g.,formField.valueText.enabled.textColor
-->formField.value.enabled.textColor
) - Renamed formField
placeholderText
tokens toplaceholder
(e.g.,formField.placeholderText.enabled.textColor
-->formField.placeholder.enabled.textColor
) - Renamed formField
errorText
tokens toerror
(e.g.,formField.errorText.enabled.textColor
-->formField.error.enabled.textColor
) - Renamed formField
labelText
tokens tolabel
(e.g.,formField.labelText.enabled.textColor
-->formField.label.enabled.textColor
) - Renamed formField
infoText
tokens toinfo
(e.g.,formField.infoText.enabled.textColor
-->formField.info.enabled.textColor
) - Renamed formField
helpText
tokens tohelp
(e.g.,formField.helpText.enabled.textColor
-->formField.help.enabled.textColor
) - Removed Anchor
emphasized
tokens
primitive.base.json
- Removed
base.color.dataVis.green1000
- Removed
base.color.dataVis.green325
- Removed
base.color.dataVis.green3250opacity50
- Removed
base.color.dataVis.pink1000
- Removed
base.color.dataVis.pink325
- Removed
base.color.dataVis.pink325-opacity50
- Removed
base.color.dataVis.purple1000
- Removed
base.color.dataVis.purple325
- Removed
base.color.dataVis.purple325-opacity50
- Removed
base.color.dataVis.blue1000
- Removed
base.color.dataVis.blue325
- Removed
base.color.dataVis.blue325-opacity50
Added
component.default.json
button.[t-shirt size].[kind].iconOnly.minWidth
(e.g.,button.medium.primary.iconOnly.minWidth
)formField.error.status.critical.iconColor
Updated
color.light.json
color.dataVis.categorical.80
frombase.color.dataVis.blue325
tobase.color.dataVis.grape1
devDependencies
style-dictionary
from^3.9.2
to^4.2.0
style-dictionary-utils
from^2.0.7
to^3.0.0
[email protected]
Added
primitive.base.json
base.static.radius.full
base.dimensions.350
color.dataVis.green1
color.dataVis.darkblue1
color.dataVis.purple1
color.dataVis.gold1
color.dataVis.lightblue1
color.dataVis.pink1
color.dataVis.blue1
color.dataVis.grape1
color.dataVis.darkblue2
color.dataVis.purple2
color.dataVis.gold2
color.dataVis.lightblue2
color.dataVis.pink2
color.dataVis.blue2
color.dataVis.purple3
color.green.650
color.grey.600
color.orange.600
color.red.600
color.light.json, color.dark.json
color.background.selected.strong.hover
color.foreground.primary
color.foreground.critical
color.foreground.warning
color.foreground.unknown
color.foreground.primary
color.text.critical
color.text.warning
color.text.info
color.text.ok
color.text.unknown
color.text.onCritical.default
color.text.onCritical.strong
color.text.onWarning.default
color.text.onWarning.strong
color.text.onOk.default
color.text.onOk.strong
color.text.onWarning.default
color.text.onWarning.strong
color.text.onInfo.default
color.text.onInfo.strong
color.text.onUnknown.default
color.text.onUnknown.strong
color.text.onStrong
component.default.json
button.xsmall
tokenscomponent.xsmall.icon.size
component.small.icon.size
component.medium.icon.size
component.large.icon.size
component.xlarge.icon.size
dataCell.enabled.iconColor
dataCell.hover.iconColor
dataCell.disabled.iconColor
dataCell.pinned.iconColor
dataCell.primary.enabled.iconColor
dataCell.primary.hover.iconColor
dataCell.primary.disabled.iconColor
dataCell.primary.pinned.iconColor
headerCell.enabled.iconColor
headerCell.hover.iconColor
headerCell.pinned.iconColor
footerCell.enabled.iconColor
footerCell.hover.iconColor
footerCell.pinned.iconColor
formField.errorText.enabled.iconColor
formField.errorText.hover.iconColor
formField.errorText.focus.iconColor
formField.errorText.disabled.iconColor
formField.errorText.readOnly.iconColor
Updated
dimension.large.json
icon.xsmall
frombase.dimension.400
tobase.dimension.350
dimension.small.json
icon.xsmall
frombase.dimension.400
tobase.dimension.350
color.light.json
color.icon.status.critical
frombase.color.red.550
tobase.color.red.600
color.icon.status.warning
frombase.color.orange.400
tobase.color.orange.600
color.icon.status.ok
frombase.color.green.400
tobase.color.green.650
color.icon.status.unknown
frombase.color.grey.400
tobase.color.grey.600
color.dataVis.categorical.10.
frombase.color.dataVis.green1000
tobase.color.dataVis.green1
color.dataVis.categorical.20
frombase.color.dataVis.green325
tobase.color.dataVis.darkblue1
color.dataVis.categorical.30
frombase.color.dataVis.pink1000
tobase.color.dataVis.purple1
color.dataVis.categorical.40
frombase.color.dataVis.pink325
tobase.color.dataVis.purple1
color.dataVis.categorical.50
frombase.color.dataVis.purple1000
tobase.color.dataVis.lightblue1
color.dataVis.categorical.60
frombase.color.dataVis.purple325
tobase.color.dataVis.pink1
color.dataVis.categorical.70
frombase.color.dataVis.blue1000
tobase.color.dataVis.blue1
color.dark.json
color.icon.status.critical
frombase.color.red.750
tobase.color.red.550
color.icon.status.warning
frombase.color.orange.700
tobase.color.orange.600
color.icon.status.ok
frombase.color.green.700
tobase.color.green.500
color.dataVis.categorical.10.
fromTBD
tobase.color.dataVis.green1
color.dataVis.categorical.20
fromTBD
tobase.color.dataVis.darkblue2
color.dataVis.categorical.30
fromTBD
tobase.color.dataVis.gold2
color.dataVis.categorical.40
fromTBD
tobase.color.dataVis.purple2
color.dataVis.categorical.50
fromTBD
tobase.color.dataVis.lightblue2
color.dataVis.categorical.60
fromTBD
tobase.color.dataVis.pink2
color.dataVis.categorical.70
fromTBD
tobase.color.dataVis.blue2
color.dataVis.categorical.80
fromTBD
tobase.color.dataVis.purple3
component.default.json
formField.label.disabled.textColor
fromcolor.text.strong
tocolor.text.disabled
component.xsmall.paddingX.wide
from9
tobase.dimension.225
(equates to 9)component.small.paddingX.wide
from9
tobase.static.spacing.small
component.medium.paddingX.wide
from15
tobase.dimension.450
component.large.lineHeight
fromtext.xlarge.lineHeight
totext.large.lineHeight
component.large.paddingY
from8
to9
component.large.paddingX.narrow
from9
tobase.dimension.225
(equates to 9)component.large.paddingX.default
from18
tobase.dimension.450
(equates to 18)component.large.paddingX.wide
from24
tobase.dimension.600
(equates to 24)component.xlarge.fontSize
fromtext.xlarge.lineHeight
totext.xlarge.fontSize
component.xlarge.paddingX.narrow
from16
tobase.dimension.500
component.xlarge.paddingX.default
from24
tobase.dimension.600
(equates to 24)
[email protected]
We’re excited to announce the release of hpe-design-tokens v0.1.0, our first iteration of design tokens for HPE products. 🚀
Design tokens enable the delivery of a unified visual language for HPE, allowing HPE’s brand and expression to evolve and change overtime with ease and minimal impact to design and development teams.
Currently, this release is optional for all design system users. The purpose of this release is to test design tokens in preparation for the v1 release. So use them, break them, test them and let us know what works and what can be improved.
How to get started:
Read up and learn more about HPE design tokens. You’ll find an overview and docs for Using tokens in Figma and Using tokens in code. Also, you can use this handy All design tokens table to browse the HPE design token catalog.