v5.0.0
To support HPE’s brand strategy, grommet-theme-hpe v5.0.0 includes revisions to core styles reflecting the latest brand expression for HPE products.
For migration help, read the Migrating from v4.x to 5.x guide.
Colors:
- Changed light mode
text-strongto#444444. - Changed light mode
textto#6F6F6F. - Changed
selected-backgroundtobrand. - Changed
selected-texttotext-primary-button(white, necessary to meet color contrast on HPE green background). - Changed
controltobrand.
Accordion:
- Changed title to use heading
level: 3. - Changed expand and collapse icons to
DownandUp.
Anchor:
- Changed color to
text-strong. - For sizes large and greater, changed weight to
bold(700). - For sizes large and greater, changed color to
brand.
Button:
- Increased rounding on all button kinds and sizes from 2em (full rounding). The exception is toolbar buttons which retain the existing 6px radius.
- For medium buttons, changed padding to
6pxvertical and18pxhorizontal for buttons with labels and to9pxfor icon-only buttons to ensure a36pxheight. - For small buttons, changed padding to
6pxvertical and18pxhorizontal for buttons with labels and to9pxfor icon-only buttons to ensure a36pxheight. - For large buttons, changed padding to
8pxvertical and24pxhorizontal for buttons with labels and to15pxfor icon-only buttons to ensure a48pxheight. - Removed border from toolbar button.
- Changed hover treatment of primary buttons to use a linear-gradient.
- Changed disabled treatment of buttons to use
opacity: 0.3. - Reduced size of
badgeto be more proportional with reduced icon sizes. - Changed default
badgecolor totext-strongto fix color contrast ratio and align with button label color.
Calendar:
- Changed use of Heading to Text for proper semantic rendering of month and year.
- Changed use of
FormNextandFormPreviousicons toNextandPrevious. - Changed selected day to have background
brandand colortext-primary-button(white, necessary to meet color contrast requirement on HPE green background).
CheckBox:
- Changed selected state to use
brand.
DataTable:
- Changed heading cell weight to
500. - Changed primary key weight to
400and color totext-strong. - Increased pinned cell background blur to
12px. - Refinements to icons supporting sorting and grouping.
Heading:
The following are formatted as font-size / line-height / font-weight.
Level 1:
- small: 24px / 24px / 500
- medium: 36px / 36px / 400
- large: 48px / 48px / 400
- xlarge: 60px / 60px / 400
Level 2:
- small: 20px / 20px / 500
- medium: 24px / 24px / 500
- large: 36px / 36px / 400
- xlarge: 48px / 48px / 400
Level 3:
- small: 16px / 16px / 600
- medium: 20px / 20px / 500
- large: 24px / 24px / 500
- xlarge: 36px / 36px / 500
Level 4:
- small: 12px / 12px / 600
- medium: 16px / 16px / 600
- large: 20px / 20px / 500
- xlarge: 24px / 24px / 500
Level 5:
- small: 12px / 12px / 600
- medium: 12px / 12px / 600
- large: 16px / 16px / 600
- xlarge: 20px / 20px / 500
Level 6:
- small: 12px / 12px / 600
- medium: 12px / 12px / 600
- large: 12px / 12px / 600
- xlarge: 16px / 16px / 600
Icons:
- Changed sizing to align with font-size values: small (
16px), medium (18px), large (24px), xlarge (30px), xxlarge (36px). - Added
disabledScaleDownwhich ensures for certain simple icons (Close, LinkNext, etc.) that the stroke does not scale down at smaller sizes which was creating undesirably thin icons.
Layer:
- Changed layer overlay background color.
- Added
blur(12px)to overlay.
Menu:
- Changed icon to
Down. - Updated horizontal padding to
18pxand vertical padding to6pxto align with default button.
NameValuePair:
- Changed name color to
text-strong. - Changed name weight to
500.
Notification:
- Changed weight to
500and color totext-strong.
PageHeader:
- Changed subtitle to size
xlarge. - Added responsive behavior to PageHeader subtitle so it sizes down to
mediumat small breakpoint.
Paragraph:
The following are formatted as font-size / line-height / font-weight / max-width.
- xsmall: 14px / 16px / 400 / 25em
- small: 16px / 20px / 400 / 25em
- medium: 18px / 24px / 400 / 25em
- large: 24px / 32px / 400 / 25em
- xlarge: 30px / 36px / 300 / 25em
- xxlarge: 36px / 40px / 300 / 25em
RadioButton:
- Changed selected state to use
brand.
RangeInput:
- Changed color to
brand.
RangeSelector:
- Changed color to
brand.
Select:
- Changed selected state to use
brand. - Changed weight of selected option to use
boldin order to meet color contrast requirement on HPE green background. - Changed icon to
Down.
Spinner:
- Changed color to
brand.
Tab:
- Changed color to
text. - Changed weight of active tab to
bold. - Changed border color of active tab to
brand. - Reduced border size of active tab to
medium(4px). - Added border color of
border-weakon hover. - Changed horizontal pad of tab to
18pxto align with Button.
Tabs:
- Added
alignSelf: “start”to ensure bottom border under all tab controls is only under the tabs rather than extending across entire container. - Reduced border size under all tab controls to
xsmall. - Changed border color under all tab controls to
border-weak.
Table:
- Changed footer font-weight to
500.
Tag:
- Changed value font-weight to
500.
Text:
The following are formatted as font-size / line-height / font-weight.
- xsmall: 14px / 16px / 400
- small: 16px / 20px / 400
- medium: 18px / 24px / 400 (not changed)
- large: 24px / 32px / 400
- xlarge: 30px / 36px / 300
- xxlarge: 36px / 40px / 300
- 3xl: 42px / 46px / 300
- 4xl: 48px / 48px / 300
- 5xl: 72px / 72px / 300
- 6xl: 72px / 72px / 300
NEW hpePop theme:
The hpePop theme extends the hpe theme and is intended for use in external facing websites such as dotCom and other marketing contexts. The hpePop theme scales up typography to better support marketing experiences in readability and brand perception.
For migration help, read the Migrating from v4.x to 5.x guide.