Component gap

Component gap tokens for spacing between elements within a component.

Gap tokens

Gap tokens control spacing between flex and grid children. SGDS provides three semantic categories that scale responsively across breakpoints: text gap for typography, layout gap for page structure, and component gap for spacing inside components.

Component gap

Use for spacing between elements within a component. Utility: sgds:gap-component-{size}.

CSS variableFigma tokenCSS variableMobile≥ 1024px≥ 1440pxUsage
--sgds-component-gap-xs
8px16px20pxBetween tightly grouped elements inside a component
--sgds-component-gap-sm
12px20px24pxDefault gap for most component internals
--sgds-component-gap-md
Base
16px24px32pxBetween larger sub-sections within a component
--sgds-component-gap-lg
20px32px48pxSpacious component layouts, e.g. card groups
--sgds-component-gap-xl
24px48px64pxMaximum separation within expansive component regions

Singapore Government Design System

The Singapore Government Design System was developed to empower teams in creating fast, accessible and mobile-friendly digital services.