NICE Design System home

Spacing

Find spacing variables within the nds-core package.

There are a number of set sizes to be used for margins/padding/borders, listed below:

VarPixelsRemsSample codeWidth
$xx-small2px0.125remutils.rem(spacing.$xx-small)
$x-small4px0.25remutils.rem(spacing.$x-small)
$small8px0.5remutils.rem(spacing.$small)
$medium16px1remutils.rem(spacing.$medium)
$large32px2remutils.rem(spacing.$large)
$x-large48px3remutils.rem(spacing.$x-large)
$xx-large64px4remutils.rem(spacing.$xx-large)

Help improve this page

To help make sure that this page is useful, relevant and up to date, you can:

Need help?

If you've got a question about the NICE Design System, contact the team.