Links

A reference for the user that can lead directly to an external or internal destination by clicking or tapping on it.


Overall styling#

  • The text-style depends on the body text and is either small, small bold, basic, basic bold, large or large bold.
  • The line-height is set to default.
  • A link can have multiple states: default/visited, hover/focus, active/pressed.
  • The appearance of the state depends on the usage or context.
  • There’s also a positive and negative version to layout on a light or dark background.
  • The icon can only be placed before, not after the link.
  • Icons are always displayed like in the font color.

Positive version#

  • Use the positive version if you want to display a link on a light background.
  • Always make sure you have enough contrast when choosing the background.
StateAttributesPreview
 Default / visited text-color: brand-primary-base
text-decoration: underline
positive: default/visited
Hover / focustext-color: brand-primary-darker
text-decoration: underline
positive: hover/focus
Active / pressedtext-color: brand-primary-darkerpositive: active/pressed

Negative version#

  • Use the negative version if you want to display a link on a dark background.
  • Always make sure you have enough contrast when choosing the background.
StateAttributesPreview
 Default / visited text-color: basic-white
text-decoration: underline
negative: hover/focus
Hover / focustext-color: gray-light
text-decoration: underline
negative: hover/focus
Active / pressedtext-color: gray-lightnegative: active/pressed

Text styles#

Small#

BreakpointFont sizePreview
LG14px positive: small
 MD-XS12px positive: small

Basic#

BreakpointFont sizePreview
LG 18pxpositive: basic
MD-XS 16pxpositive: basic

Large#

BreakpointFont sizePreview
 LG22px positive: large
 MD-XS20px positive: large

Spacing & measurements#

TypeAttributesPreview
Vertical spacing 8px between icon and labelspacing: small
spacing: basic
spacing: large
 Icon sizesmall: 16x16px
basic: 24x24px
large: 32x32px 
icon: small
icon: basic
icon: large

Our workflow in Sketch#

  • Take one of the text styles for the different font sizes to display a linked text.
  • The text style is then manually adapted to the status to be displayed (e.g. hover/focus: underlined, brand-primary-darker,…).
  • Detach the text-style if you want to show a link in a copy-text.

Change log#

Added#

  • Doc: "Link" | Added small bold, basic bold and large bold to overall styling