Size

Apply minimum, maximum or fixed width and height to elements.

Global size tokens

We use a set of primitive size tokens to define minimum or maximum sizes for specific elements. These tokens are based on a 4px baseline grid that scales up to 8px at the end of the range.

Global size tokens
16px
16px
1
16px. UI icons, checkboxes, radios, ...
20px
20px
2
20px. Default switch buttons, small avatars, ...
24px
24px
3
24px. Default avatar, larger switch buttons, ...
28px
28px
4
28px. Small buttons, small form fields, ...
32px
32px
5
32px. Lists, actions ...
36px
36px
6
36px. The most common size – buttons, form fields, roadmap cards, larger avatars, item lists, spot icons, ...
44px
44px
7
44px. Larger buttons, larger form fields ...
52px
52px
8
52px. Not that common, but mostly for larger navigational elements
60px
60px
9
60px. The least common – basically just for super-large floating buttons

 

Icons

We have a separate scale for icon sizes to give us more control over any differences between vector shapes and their parent components.

Global icon size tokens
size / icon
12px
12px
12
Smallest icon size available, not suitable for general use
16px
16px
16
Default size for small icons in product
20px
20px
20
Slightly larger than the default small icon size
24px
24px
24
Medium icon size often seen in most products, should have good legibility in most situations
28px
28px
28
Larger icon size for better visibility
36px
36px
36
Extra-large icon size for prominent display

 

Base tokens

Every size token is defined as combination of base and modifier for easier maintenance. This allows us to experiment with different scales and modes by changing couple of tokens instead of every size token in the system.


                                                        
                                                        
                                                            {
                                                          "size": {
                                                            "2": {
                                                              "$type": "dimension",
                                                              "$value": "{size.base} + {size.modifier}",
                                                              "$description": "Default switch buttons, small avatars, ..."
                                                            }
                                                          }
                                                        }
                                                        
                                                            
16px
16px
base
Base size token used in size calculations. Not used outside design tokens
4px
4px
modifier
A modifier used to calculate the size scale. Not used outside design tokens