Releases: grommet/hpe-design-system
[email protected]
Changes
There are no breaking API changes from v0.9.0. The below changes are updates to design token values to reflect a major visual update to the HPE theme.
Colors
color.background.screenOverlay
updated frombase.color.black.opacity50
tobase.color.black.opacity12
.color.background.info
updated fromcolor.background.contrast
tobase.color.blue.400-opacity12
.color.background.warning
light mode value updated frombase.color.yellow.400-opacity24
tobase.color.yellow.400-opacity12
.color.background.critical
light mode value updated frombase.color.red.500-opacity24
tobase.color.red.500-opacity12
.color.background.ok
light mode value updated frombase.color.green.400-opacity24
tobase.color.green.400-opacity12
.color.background.primary.strong
updated from base.color.green.600 tobase.color.green.700
in light mode and base.color.green.600 to #007C60 in dark mode.color.background.primary.strong.hover
updated frombase.color.green.700
tobase.color.green.800
in light mode andbase.color.green.600
to #00513F in dark mode.color.background.selected.primary.strong
updated frombase.color.brand to color.background.primary.strong
.color.background.selected.primary.strong.hover
updated frombase.color.brand
tocolor.background.primary.strong.hover
.color.border.selected
updated frombase.color.green.600
tobase.color.green.700
in light mode.color.border.critical
updated fromcolor.border.default
tobase.color.red.800
in light mode andcolor.border.default
tocolor.foreground.critical
in dark mode.color.text.critical
updated fromcolor.text.default
tobase.color.red.800
in light mode andcolor.foreground.critical
in dark mode.color.text.anchor
updated fromcolor.text.strong
tocolor.text.primary
.color.text.anchor.hover
updated fromcolor.text.strong
tocolor.text.primary-hover
.color.icon.info
updated fromcolor.icon.default
tobase.color.blue.900
in light mode andcolor.icon.default
tobase.color.blue.700
in dark mode.color.icon.primary
updated frombase.color.green.600
tobase.color.green.800
in light mode andbase.color.green.600
tobase.color.green.500
in dark mode.
Typography
Heading
Heading sizes, line-heights, and font-weights have been adjusted to improve legibility and page hierarchy.
heading.xlarge
lineHeight
updated from 36px to 40px (exported as rem)fontWeight
updated from medium to regular
heading.large
fontSize
updated from 24px to 28px (exported as rem)lineHeight
updated from 24px to 32px (exported as rem)fontWeight
updated from medium to regular
heading.medium
fontSize
updated from 20px to 24px (exported as rem)lineHeight
updated from 20px to 28px (exported as rem)fontWeight
updated from medium to regular
heading.small
fontSize
updated from 16px to 20px (exported as rem)lineHeight
updated from 20px to 24px (exported as rem)fontWeight
updated from medium to regular
heading.xsmall
fontSize
updated from 12px to 18px (exported as rem)lineHeight
updated from 12px to 20px (exported as rem)
heading.xxsmall
fontSize
updated from 12px to 16px (exported as rem)lineHeight
updated from 12px to 18px (exported as rem)
![Screenshot 2025-02-06 at 9 33 11 AM](https://private-user-images.githubusercontent.com/12522275/411001555-4b840dcd-54bf-4c30-9bc6-8468f12a41b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE1NTUtNGI4NDBkY2QtNTRiZi00YzMwLTliYzYtODQ2OGYxMmE0MWIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5YWZhZTE1YzBjMWY4MDFjY2JlY2UyODFhYTY3YWM5NDI0ZDQ2NGI5YjFlYjg3MzBkYWU2MGYwOWVkZTE0NWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WwFchIbt71zT6xHumvuFPsOT7i7UvzJZ2z71_2he8iY)
Text
Text font-weights have been updated to use fontWeight.regular
across all text sizes by default.
![Screenshot 2025-02-06 at 9 30 49 AM](https://private-user-images.githubusercontent.com/12522275/411001608-0914e287-4767-423c-a0e0-347fbce87f20.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE2MDgtMDkxNGUyODctNDc2Ny00MjNjLWEwZTAtMzQ3ZmJjZTg3ZjIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJmODIzMGQ2MzE4OTIwZGRkNjQ1NTY2OTU3MDcwNmY2NzlhYmZlMjc1OTRhYzg3MzhjOThlMDkwNWIyNjhiNDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.u1NZGLYHK00EEeVWVuKXCqgg4T2RaMk6WEGUoAjJuIQ)
Anchor
- Anchor color has been updated from
color.text.strong
tocolor.text.primary
.
![Screenshot 2025-02-06 at 9 30 38 AM](https://private-user-images.githubusercontent.com/12522275/411001635-22412b45-172e-431d-9b07-1b81f78f1bb6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE2MzUtMjI0MTJiNDUtMTcyZS00MzFkLTliMDctMWI4MWY3OGYxYmI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzZTVmYWFhZDhiZTM4ZDE1ZDc4YTRiZGRkMjA2N2QwMmYwM2VlMjE4NTBmNzg3YWNiMDkyMGNjYzQ0OTM4ZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.p8g-b6fGBZBIIDkK5Y-gbNAuH-08HYST4b1gbDRL6o4)
Buttons
Because of improved color contrast ratios in the updated color palette, all medium buttons have been updated to use 18px (exported as rem) as opposed to 19px which was previously required on color.background.primary.strong
.
Primary
button.primary.rest
background
pulls in updated value fromcolor.background.primary.strong
.fontWeight
updated from bold to semibold.
button.primary.hover
background
pulls in updated value fromcolor.background.primary.strong.hover
.fontWeight
updated from bold to semibold.
button.primary.selected.rest
background
updated fromcolor.background.contrast
tocolor.background.primary.xstrong
.fontWeight
updated from bold to semibold.
button.primary.selected.hover
background
updated fromcolor.background.contrast
tocolor.background.primary.xstrong
.fontWeight
updated from bold to semibold.
![Screenshot 2025-02-06 at 9 45 49 AM](https://private-user-images.githubusercontent.com/12522275/411001857-8911b74a-12ef-43c7-ac32-6ddaa60aef29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE4NTctODkxMWI3NGEtMTJlZi00M2M3LWFjMzItNmRkYWE2MGFlZjI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI5MmZkZjM1MDJhYzVmZWFmZTBiNDJiZDMyYWI5ZTI4OTFhZWIzZDNkZTMzMTViYmJhYjMwZmYyN2M3YzE2NWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.1ZS2u-MjjBnPjuCrqZyCbdevalJkPN41R9rWb44tRrQ)
Secondary
button.secondary.rest
background
updated fromcolor.transparent
tocolor.background.contrast
.borderColor
updated frombrand
tocolor.transparent
textColor
updated fromcolor.text.strong
to color.text.primaryiconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
button.secondary.hover
background
updated fromcolor.transparent
tocolor.background.contrast
.borderColor
updated frombrand
tocolor.transparent
textColor
updated fromcolor.text.strong
to color.text.primaryiconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
button.secondary.disabled.rest
borderColor
updated fromcolor.border.disabled
tocolor.transparent
button.secondary.selected.rest
background
updated fromcolor.background.contrast
tocolor.background.selected.primary
.textColor
updated fromcolor.text.strong
to color.text.primaryiconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
button.secondary.selected.hover
background
updated fromcolor.background.contrast
tocolor.background.selected.primary.hover
.textColor
updated fromcolor.text.strong
tocolor.text.primary
.iconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
![Screenshot 2025-02-06 at 9 45 30 AM](https://private-user-images.githubusercontent.com/12522275/411001927-7bbe3968-0077-44e1-a4be-2154639f2ff6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE5MjctN2JiZTM5NjgtMDA3Ny00NGUxLWE0YmUtMjE1NDYzOWYyZmY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwOWFmZmRjYWYwYTk4ODE1OGIyODM2NmMwMmU4YjYzZTBlZGVmNDQzNzgxYzA2NTgyZTQ5NzU1ZjM0MmY4ZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.qeZ-hvfCvJKCGo3qrYicXw3SmC1jXq-OYDoHZR-v8yQ)
Default
button.default.rest
fontWeight
updated from semibold to medium.
button.default.hover
fontWeight
updated from semibold to medium.
button.default.selected.rest
textColor
updated fromcolor.text.strong
tocolor.text.primary
.iconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
button.default.selected.hover
textColor
updated fromcolor.text.strong
tocolor.text.primary
.iconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
![Screenshot 2025-02-06 at 9 45 08 AM](https://private-user-images.githubusercontent.com/12522275/411001985-c6d59969-d36a-4d46-bfd7-84a92b3a8208.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDE5ODUtYzZkNTk5NjktZDM2YS00ZDQ2LWJmZDctODRhOTJiM2E4MjA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZiMzYyOWE2ZTI1NmI1ZjdkMjkzMTBmMWVjMTYyNmUyMTYzNzRiZjk4YmI5ZmM3YTg4YmQ4YzA1ZWRhMjc3NWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mJjkcVIUQiumY3KWDcDWFIWmq73mgnJ0idB-xIVFc84)
Toolbar
button.toolbar.rest
borderColor
updated fromcolor.border.default
tocolor.transparent
.textColor
updated fromcolor.text.strong
tocolor.text.default
.iconColor
updated fromcolor.icon.strong
tocolor.icon.default
.
button.toolbar.hover
textColor
updated fromcolor.text.strong
tocolor.text.default
.iconColor
updated fromcolor.icon.strong
tocolor.icon.default
.
button.toolbar.disabled.rest
borderColor
updated fromcolor.border.disabled
tocolor.transparent
.
button.toolbar.selected.rest
background
updated fromcolor.background.contrast
tocolor.background.selected.primary
.textColor
updated fromcolor.text.strong
tocolor.text.primary
.iconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
button.toolbar.selected.hover
background
updated fromcolor.background.contrast
tocolor.background.selected.primary.hover
.textColor
updated fromcolor.text.strong
tocolor.text.primary
.iconColor
updated fromcolor.icon.strong
tocolor.icon.primary
.
![Screenshot 2025-02-07 at 8 50 42 AM](https://private-user-images.githubusercontent.com/12522275/411002238-e5709513-3b4c-4886-b641-9d85a2cf3d1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDIyMzgtZTU3MDk1MTMtM2I0Yy00ODg2LWI2NDEtOWQ4NWEyY2YzZDFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU3NDYzNzJiYzIzZDE2NWFhZDE3NGFkYzY1YWQ5NGRjOGJmNzg1MTI2NDBhZTA2MTM3NTdkNmMxNmZkNWJhN2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WVwUfZqcEwf0eNzk3DHDmQzyHkAcuqVdTVyDcs-AbXg)
Inputs
Checkbox
checkbox.default.control.rest
background
updated fromcolor.background.default
tocolor.transparent
.
checkbox.default.control.hover
background
updated fromcolor.default
tocolor.background.hover
.
checkbox.default.control.selected.rest
/ checkbox.default.indeterminate.rest
background
pulls in updatedcolor.background.primary.strong
.
checkbox.default.control.selected.hover
/ checkbox.default.indeterminate.hover
background
pulls in updatedcolor.background.primary.strong.hover
.
checkbox.default.label
fontWeight
across all states updated from medium to regular.
checkbox.default.medium.control
borderRadius
updated fromstatic.radius.xxsmall
tostatic.radius.xsmall
.
![Screenshot 2025-02-07 at 8 57 53 AM](https://private-user-images.githubusercontent.com/12522275/411005309-65e3f1ef-e197-4eb8-acc6-9ffade424719.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5NjA3MzEsIm5iZiI6MTczOTk2MDQzMSwicGF0aCI6Ii8xMjUyMjI3NS80MTEwMDUzMDktNjVlM2YxZWYtZTE5Ny00ZWI4LWFjYzYtOWZmYWRlNDI0NzE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE5VDEwMjAzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwN2RiYzZmMzdmZjY2OGJmYTUzNzk0NmQ5YmZlZGZjZTE5YWExZjNkMzRjZmRmMzA5MzllYzQ1NWI5NTNiMTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.RfqdKChLtLDN4kl-St4fiGzdsQG6jG3cdqBpGOErcK0)
Switch
switch.default.control.track.rest
background
updated fromcolor.background.default
tocolor.decorative.neutral
.borderColor
updated from color.border.default tocolor.transparent
.
switch.default.control.track.hover
background
updated fromcolor.default
tocolor.decorative.neutral.hover
.borderColor
updated from color.border.strong to `colo...
[email protected]
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.
[email protected]
[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.