Sizing
Loading
Browsers and operating systems typically only afford users the ability to adapt the base or body font size. This can be expressed as 1rem which is exactly one times the root font size. As such 1rem is the default value from which all spacing values are based upon.
There are 3 available sizes in most components:
| Reference | Value | Deviation |
|---|---|---|
| small | size="small" | In components font size, paddings and minimum heights are set to 1 deviation less than standard (default). Font size follows the defined type scale and other elements follow the defined spacing scale. |
| default | size="default" | In components font size, paddings and minimum heights are set to standard (default). The base size is --s0 (1rem / 16px), however based on the component or element within a componet this can vary. |
| large | size="large" | In components font size, paddings and minimum heights are set to 1 deviation more than standard (default). Font size follows the defined type scale and other elements follow the defined spacing scale. |
There are 4 available sizes in components containing buttons or icons:
| Reference | Value | Deviation |
|---|---|---|
| small | size="small" | In components font size, paddings and minimum heights are set to 1 deviation less than standard (default). Font size follows the defined type scale and other elements follow the defined spacing scale. |
| default | size="default" | In components font size, paddings and minimum heights are set to standard (default). The base size is --s0 (1rem / 16px), however based on the component or element within a component this can vary. |
| large | size="large" | In components font size, paddings and minimum heights are set to 1 deviation more than standard (default). Font size follows the defined type scale and other elements follow the defined spacing scale. |
| xlarge | size="xlarge" | In components font size, paddings and minimum heights are set to 3 deviation more than standard (default). Font size follows the defined type scale and other elements follow the defined spacing scale. |
When icons and text are used inline the following size assignment applies:
| Reference | Icon size | Text size |
|---|---|---|
| small | --s1 (1.25rem / 20px) | --ts-1 (.875rem / 14px) |
| default | --s2 (1.5rem / 24px) | --ts0 (1rem / 16px) |
| large | --s3 (2rem / 32px) | --ts1 (1.125rem / 18px) |
There are 3 available border width sizes:
| Reference | Size | Rem | Pixels |
|---|---|---|---|
| --border-large | .1875 | 3 | |
| --border-default | .125 | 2 | |
| --border-small | .0625 | 1 |
There are 3 available border radius sizes:
| Reference | Size | Rem | Pixels |
|---|---|---|---|
| --border-radius-large | .5 | 8 | |
| --border-radius-default | .25 | 4 | |
| --border-radius-small | .125 | 2 |
There are 11 form width tokens available:
| Reference | Value |
|---|---|
| xxxs | |
| xxs | |
| xs | |
| s | |
| m | |
| l | |
| xl | |
| xxl | |
| xxxl | |
| auto | |
| default (none) |
There are 11 Z-index values available:
| Reference | Value |
|---|---|
| --z-index-default | auto |
| --z-index-1 | 100 |
| --z-index-2 | 200 |
| --z-index-3 | 300 |
| --z-index-4 | 400 |
| --z-index-5 | 500 |
| --z-index-6 | 600 |
| --z-index-7 | 700 |
| --z-index-8 | 800 |
| --z-index-9 | 900 |
| --z-index-10 | 1000 |
There are 4 available opacity sizes:
| Reference | Size |
|---|---|
| --opacity-0 | 0 |
| --opacity-1 | .1 |
| --opacity-2 | .2 |
| --opacity-3 | .3 |
| --opacity-4 | .4 |
| --opacity-5 | .5 |
| --opacity-6 | .6 |
| --opacity-7 | .7 |
| --opacity-8 | .8 |
| --opacity-9 | .9 |
| --opacity-default | 1 |