Size & Space
Size
Size tokens provide a scale of values used for element sizing. This includes padding and margins retained within the bounds of the element.
| Token | Value | Description | Demo | |
|---|---|---|---|---|
| --nve-ref-size-50 | --nve-ref-scale-size * 2px | Use for minimal padding and margins within compact elements | ||
| --nve-ref-size-100 | --nve-ref-scale-size * 4px | Use for tight padding and margins within small elements | ||
| --nve-ref-size-150 | --nve-ref-scale-size * 6px | Use for compact padding and margins within elements | ||
| --nve-ref-size-200 | --nve-ref-scale-size * 8px | Use for standard padding and margins within form controls and small components | ||
| --nve-ref-size-250 | --nve-ref-scale-size * 10px | Use for comfortable padding and margins within medium elements | ||
| --nve-ref-size-300 | --nve-ref-scale-size * 12px | Use for standard padding and margins within buttons and interactive elements | ||
| --nve-ref-size-400 | --nve-ref-scale-size * 16px | Use for comfortable padding and margins within cards and panels | ||
| --nve-ref-size-500 | --nve-ref-scale-size * 20px | Use for generous padding and margins within larger components | ||
| --nve-ref-size-600 | --nve-ref-scale-size * 24px | Use for spacious padding and margins within containers | ||
| --nve-ref-size-700 | --nve-ref-scale-size * 28px | Use for extra padding and margins within large components | ||
| --nve-ref-size-800 | --nve-ref-scale-size * 32px | Use for standard height of form inputs and buttons | ||
| --nve-ref-size-900 | --nve-ref-scale-size * 36px | Use for extra large padding and margins within oversized elements | ||
| --nve-ref-size-1000 | --nve-ref-scale-size * 40px | Use for maximum padding and margins within very large containers |
Space
Space tokens provide a scale of values used for consistent whitespace used in layouts between elements.
| Token | Value | Description | Demo | |
|---|---|---|---|---|
| --nve-ref-space-none | --nve-ref-scale-space * 0px | Use when no spacing is needed between elements | ||
| --nve-ref-space-xxxs | --nve-ref-scale-space * 2px | Use for minimal gaps between tightly grouped elements | ||
| --nve-ref-space-xxs | --nve-ref-scale-space * 4px | Use for very small gaps between closely related elements | ||
| --nve-ref-space-xs | --nve-ref-scale-space * 8px | Use for small gaps between form fields and related content | ||
| --nve-ref-space-sm | --nve-ref-scale-space * 12px | Use for standard gaps between form fields and sibling elements in layouts | ||
| --nve-ref-space-md | --nve-ref-scale-space * 16px | Use for comfortable gaps between sections and groups of elements | ||
| --nve-ref-space-lg | --nve-ref-scale-space * 24px | Use for generous gaps between major sections and content blocks | ||
| --nve-ref-space-xl | --nve-ref-scale-space * 32px | Use for large gaps between distinct page sections | ||
| --nve-ref-space-xxl | --nve-ref-scale-space * 48px | Use for extra large gaps between major page regions | ||
| --nve-ref-space-xxxl | --nve-ref-scale-space * 64px | Use for maximum gaps between completely separate page areas |