Badges

Use it for a number of functions, but mostly to demonstrate status and progress to the customer.

Basically it is positioned in a context with a text.


Versions#

  • There are different versions of the badge: standard and addon.
StandardAddon
Use it in conjunction with text.Use it in the user-navigation of the header.

Recommendations#

  • If you decide to use a badge, never use more than a maximum of 2 variations.
  • Keep the text in a badge as short as possible.

Overall styling#

  • The text-style or font-size depends on the component but is always basic bold.
  • The line-height is 120%.
  • The text-color always is basic-white.
  • The border is in basic-white with a 1px thickness.
  • It always has rounded corners of 50% of its height.

Standard#

  • This badge is called standard and should be used in conjunction with text.
  • It comes in 3 different sizes depending of the corresponding text-styles.
  • Please use the badge corresponding to the breakpoint since there are different sizes.
  • The badge has 4 colored variations: primary, highlight, gray and info.
TypesAttributesPreview
Primarytext-style: small, basic, large
background-color: brand-primary-base
 primary: LG
Highlighttext-style: small, basic, large
background-color: danger-base
highlight: LG
Graytext-style: small, basic, large
background-color: gray-base
gray: LG
Infotext-style: small, basic, large
background-color: info-base
info: LG

States#

  • A badge can also be given as a link.
  • The only thing that changes is the background-color.
TypesAttributesPreview
Defaultbrand-primary-base
danger-base
gray-base
info-base
state: default
Hover / focus and activebrand-primary-darker
danger-darker
gray-darker
info-darker
state: hover

Addon#

  • This badge is called addon and is only used in the user-navigation section of the header.
  • It comes in 3 different sizes depending on the breakpoints.
BreakpointsAttributesPreview
LGfont-size: 12px
line-height: 100%
background-color: brand-primary-base
pill: LG
MD-XSfont-size: 10px
line-height: 100%
background-color: brand-primary-base
pill: MD-XS

Usage#

  • Stick to the following examples to implement a badge-standard in combination with a text.

Headlines#

Text styleAttributes Preview
Headline 1text-style: headline 1
badge: large
example: headline 1
Headline 2text-style: headline 2
badge: basic
example: headline 3
Headline 3text-style: headline 3
badge: basic
example: headline 3
Headline 4text-style: headline 4
badge: basic
example: headline 4
Headline 5text-style: headline 5
badge: small
example: headline 5

Text#

Text styleAttributes Preview
Smalltext-style: small(-bold)
badge: small
example: headline 1
Basictext-style: basic(-bold)
badge: basic
example: headline 1
Largetext-style: large(-bold)
badge: large
example: headline 1

Spacing & measurements#

Standard#

TypesAttributes Preview
LG horizontal spacingLG padding: 16pxhorizontal-spacing
MD-XS horizontal spacingMD-XS padding: 16pxhorizontal-spacing
Vertical spacing for all badges on all breakpoints (LG-XS)LG-XS padding: 4pxvertical-spacing
Distancesmargin: 8pxdistance

Addon#

TypesAttributes Preview
Horizontal spacingpadding: 4pxhorizontal-spacing
SizeLG: 20px
MD-XS: 16px
vertical-spacing
PositionOverlaps an icon by 50% to the right
Text expands the element to the left
position

What can be modified?#

  • Override the text.
  • Adjust the width according to the text.
  • Modify badges to your project needs by changing colors of background, outline and text.

Change log#

Changed#

  • Doc: "Badge" | Clean up the documentation for the right structure and sentence case

Fixed#

  • Sketch, Doc: "Badge" | Fixed MD-XS small badge text style and horizontal spacings

Fixed#

  • Sketch: "Badge" | Top and bottom spacings are fixed

Added#

  • Doc: "Badge" | Horizontal spacing & measurement for small badges MD-XS, defined valid vertical spacing & measurement

Fixed#

  • "Badge" | Fixed symbols: wrong padding

4.4.0 Core & 4.4.0 Web - 2020-04-09#

Changed#

  • "Badge" | Changed description: of standard badge breakpoint use

4.2.0 Core & 4.2.0 Web - 2020-01-16#

Changed#

  • "Badge" | Changed symbols: new smart layout of Sketch
  • "Badge" | Changed symbols: with layer styles

4.0.0 Core & 4.0.0 Web - 2019-09-30#

Fixed#

  • "Badge" | Fixed symbols: correct rounded corners of the outline

3.4.0 Core & 3.4.0 Kit - 2019-08-15#

Added#

  • "Badge" | Added symbol: badge-standard, badge-addon for three digits

Changed#

  • "Badge" | Changed naming: from "user-navigation/batches" to "badge/addon"