Spacing & Layout Tokens
Tokens for spacing, sizing, border radius, and elevation that keep layouts consistent across the system. Click the copy button next to any token to copy it as a var() expression.
Spacing
A thirteen-step scale for margins, padding, and gaps. Use these to maintain consistent spatial rhythm across your application.
Space 1px
Spacing tokens standardize margins, padding, and gaps in layouts. This is ultra-thin for fine detail, like borders or dividers.
--nys-space-1px
Space 2px
Very small spacing for micro-adjustments or compact layouts.
--nys-space-2px
Space 50
Extra-small spacing, typically used for tight content spacing.
--nys-space-50
Space 100
Small spacing, often used for compact layouts or minimal margins.
--nys-space-100
Space 150
Small-medium spacing for general UI elements.
--nys-space-150
Space 200
Medium spacing, commonly used for standard element separation.
--nys-space-200
Space 250
Medium-large spacing for container padding or visual balance.
--nys-space-250
Space 300
Standard spacing for layouts with moderate separation.
--nys-space-300
Space 400
Large spacing for separating sections or creating visual breaks.
--nys-space-400
Space 500
Extra-large spacing for major sections or wide gaps.
--nys-space-500
Space 600
Very large spacing, often used for section padding or layouts.
--nys-space-600
Space 700
Generous spacing for wide content separation.
--nys-space-700
Space 800
Maximum spacing for highly open designs or major layouts.
--nys-space-800
Space 1200
Largest spacing token for creating significant visual separation.
--nys-space-1200
Sizing
Dimension tokens for widths, heights, and other fixed measurements.
Size 1px
Size tokens standardize the width and height of elements, like icons, typography, and UI components.
--nys-size-1px
Size 2px
Slightly thicker size for minimal elements, such as borders.
--nys-size-2px
Size 50
Extra-small size for compact UI elements or icons.
--nys-size-50
Size 100
Small size for UI elements or containers.
--nys-size-100
Size 150
Small-medium size for buttons or small containers.
--nys-size-150
Size 200
Medium size, often used for inputs or cards.
--nys-size-200
Size 250
Medium-large size for slightly larger UI elements.
--nys-size-250
Size 300
Standard size for larger UI controls or containers.
--nys-size-300
Size 400
Large size for buttons, modals, or prominent elements.
--nys-size-400
Size 500
Very large size for main containers or sections.
--nys-size-500
Size 600
Extra-large size for significant UI containers or elements.
--nys-size-600
Size 700
Massive size for prominent layout features.
--nys-size-700
Size 800
Largest size for visual anchors or major elements.
--nys-size-800
Size 1200
Maximum size for expansive layouts or hero elements.
--nys-size-1200
Border Radius
Six radius tokens from subtle rounding to fully circular. Components use these internally — apply them to your own elements to match the system's corner styles.
Radius XS
Extra-small radius for subtle rounding.
--nys-radius-xs
Radius SM
Small radius for slightly rounded elements.
--nys-radius-sm
Radius MD
Medium radius input elements like text fields, checkboxes, and select dropdowns.
--nys-radius-md
Radius LG
Larger radius for a more pronounced rounding.
--nys-radius-lg
Radius XL
Extra-large radius for buttons, to quickly indicate interactivity.
--nys-radius-xl
Radius Round
Fully rounded elements. Used for avatars and icons.
--nys-radius-round
Elevation
Box shadow tokens that create depth. Use raised for cards and overlay for modals and dropdowns.
Shadow Raised
Small surfaces. Used for dropdown items, toasts, and popovers.
--nys-shadow-raised
Shadow Overlay
Large surfaces. Used for modals.
--nys-shadow-overlay
Edit this page on GitHub (Permissions required)
Last updated: May 22, 2026