Key value

A key value pair is the easiest way to visually represent any data.


When to use

Use a key value pair in the following cases:

  • When you need to display data in a consistent way.
  • When you need to visually associate a key with a value.
  • When you need to decrease the lookup time for a value.


There are the following key value pair types:

Key above value

Use this type if the key has an equal importance to the value.

Key above value, left aligned

Key below value

Use this type if you want to emphasize the value.

Key below value, left aligned

Key next to value

Use this type if you want to create a list with many items.

Key next to value, left aligned

General construction

A key value pair consists of the following elements:

1. Key, 2. Value, 3. Supporting visual, 4. Unit

1. Key, 2. Value, 3. Supporting visual, 4. Unit

Various value types:

1. Plain text single line, 2. Plain text multiline, 3. Array of items, 4. Image, 5. Video, 6. Any generic entity

1. Key

  • The key is a field name, identifier or attribute.
  • The key is muted text.

2. Value

  • The value is the content of the key field. It is the data that is being stored and identified.
  • The value can be:
    1. Plain text single line
    2. Plain text multiline
    3. Array of items, for example lists, categories (tags or badges)
    4. Image
    5. Video
    6. Any generic entity, lists, tables or another key value pair.

3. Supporting visual

  • A supporting visual may be an icon, pictogram (for example avatar) or image.
  • A supporting visual is optional.

4. Unit

  • A unit is, for example, meters, seconds, hours etc.
  • A unit is recommended but not required.


The following key value pair options are available:


By default, all types of key value pairs are aligned left. It can also be aligned center or right.

Key above value, center aligned

Key above value, right aligned


  • Key and value can have an individual font size.
  • The font size of a key is never bigger than the value.
  • The font size of a value can be as big as required for good information structure and readability.
  • The font size of the unit can be
    • half of the value.
    • the same as the value.
    • the same as the key.

Key value pair with individual font sizes

Font weight level

Weight level makes it possible to emphasize the information according to their importance. There are three available font weights.

1. Black, 2. Bold, 3. Regular

Custom color

Use a custom color to additionally highlight the content.

Key value pair with custom color


On small screen sizes, key value pairs that are next to each other rearrange to one below the other.

1. Key value pair next to each other

2. Key value pair one below the other on small screens

Do’s & Don’ts



  • Ensure consistency.
  • Do not mix too many types and options in one context.


This chapter shows several key value pair styles in the design system.


Key value pairs with key above value, left aligned

Key value pair with key below value and custom color

Key value pairs next to each other, left aligned

Key value pair next to each other, key right aligned, value left aligned

Key value pair with supporting visual. 1. Icon, 2. Pictogram (for example avatar), 3. Image

Key value pair with supporting visual and unit, key below value

Key value pair with supporting visual and unit, key next to value

Key value pair in list within a container with frameless content area

Key value pairs in simple container

Key value pairs in grid

Key value pairs in list within a container

Key value pairs in simple container

Key value pairs in grid


The following table gives reference to the different font sizes and weights:

Name State Font-family Font-size Line-height Text-align
Key below, above Siemens Sans Roman 12px 16px left, center, right
Key next to each other Siemens Sans Roman 14px 20px left, center, right
Value all Siemens Sans Roman 14px 20px left, center, right
Unit all Siemens Sans Roman Refer to corresponding value Refer to corresponding value left

Sizing and spacing

The following measurements show the dimensions for this component:

All outer spacings are dependent on the wrapper element (list, table, container …).

Key above and below value

Spacing of key above and below value

Key next to value

1. Standard spacing, 2. Compact spacing, 3.Individual spacing

  1. Standard spacing
    • These are the default spacings.
  2. Compact spacing
    • Use compact spacing if there is less space like in a list item or table row.
  3. Individual spacing
    • Can be an increment of 4px.
    • Use this spacing for key value pairs with individual font size.
Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.
Back to top