Text gap

Text gap tokens for spacing between text elements and inline content.

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.

Text gap

Use for spacing between text elements and inline content. Utility: sgds:gap-text-{size}.

CSS variableFigma tokenCSS variableMobile≥ 1024px≥ 1440pxUsage
--sgds-text-gap-2-xs
4px4px4pxTightest inline spacing, e.g. icon-and-label pairs
--sgds-text-gap-xs
8px8px8pxBetween labels, badges, or tag clusters
--sgds-text-gap-sm
8px12px12pxBetween a heading and its immediately following text
--sgds-text-gap-md
Base
12px16px16pxBetween related body paragraphs or list items
--sgds-text-gap-lg
16px20px20pxBetween a heading group and the content below
--sgds-text-gap-xl
20px24px24pxBetween distinct content blocks within a prose section
--sgds-text-gap-2-xl
24px32px32pxBetween major typographic groups on the same surface

Singapore Government Design System

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