Component padding

Component padding tokens for internal spacing in UI components.

Padding tokens

Padding tokens define the internal spacing of components and layout regions. Like gap tokens, they scale responsively across breakpoints. Apply them with shorthand utilities such as sgds:p-component-md, sgds:px-component-sm, or sgds:py-layout-lg.

Component padding

Internal padding for UI components. Utility: sgds:p-component-{size}.

CSS variableFigma tokenCSS variableMobile≥ 1024px≥ 1440pxUsage
--sgds-component-padding-xs
16px20px24pxCompact components, e.g. small cards or chips
--sgds-component-padding-sm
20px24px32pxDefault padding for interactive components
--sgds-component-padding-md
Base
24px32px48pxStandard content components, e.g. panels or modals
--sgds-component-padding-lg
32px48px64pxSpacious components, e.g. feature cards or callouts
--sgds-component-padding-xl
48px64px96pxMaximum padding for hero blocks or full-bleed sections

Singapore Government Design System

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