Size
The size tokens are used to define the size of elements, applied for example on the width and height properties.
Size
TIP
Some size design tokens, e.g. size-icon are referencing CSS custom properties rather than raw values. This means that the tokens will not work in various preprocessor functions (like Less unit()) and may require relying on CSS calc() function for basic calculations.
| Name | Value |
|---|---|
size-0 | 0
|
size-6 | 0.0625rem
|
size-12 | 0.125rem
|
size-25 | 0.25rem
|
size-50 | 0.5rem
|
size-75 | 0.75rem
|
size-100 | 1rem
|
size-125 | 1.25rem
|
size-150 | 1.5rem
|
size-200 | 2rem
|
size-250 | 2.5rem
|
size-275 | 2.75rem
|
size-300 | 3rem
|
size-400 | 4rem
|
size-800 | 8rem
|
size-1200 | 12rem
|
size-1600 | 16rem
|
size-2400 | 24rem
|
size-2800 | 28rem
|
size-3200 | 32rem
|
size-4000 | 40rem
|
size-5600 | 56rem
|
size-viewport-width-full | 100vw
|
size-viewport-height-full | 100vh
|
size-absolute-1 | 1px
|
size-absolute-9999 | 9999px
|
size-content-min | min-content
|
size-content-fit | fit-content
|
size-content-max | max-content
|
size-third | 33.33%
|
size-half | 50%
|
size-full | 100%
|
size-double | 200%
|
size-search-figure | 2.5rem
|
size-icon-x-small | calc( 1rem - 4px )
|
size-icon-small | 1rem
|
size-icon-medium | calc( 1rem + 4px )
|
size-toggle-switch-grip | calc( 1rem * 1.25 )
|
Minimum size
| Name | Value |
|---|---|
min-size-interactive-pointer | 32px
|
min-size-interactive-touch | 44px
|
min-size-search-figure | 40px
|
min-size-icon-x-small | 10px
|
min-size-icon-small | 14px
|
min-size-icon-medium | 18px
|
min-size-input-binary | 20px
|
min-size-input-chip-clear-button | 20px
|
min-size-toggle-switch-grip | 18px
|
Maximum width
| Name | Value |
|---|---|
max-width-base | none
|
max-width-button | 28rem
|