Browse Foundations

Foundations

Responsive grid

A responsive grid allows a layout to change dynamically based on the size of the screen. This also guarantees consistent layouts across all products.

Responsive grid presets

SGDS have six main grid presets to consolidate margin and gutter adjustments across breakpoints.

GridScreen sizeColumnsGuttersOuter marginsContainer widthExtra small column320px to 511px4 columns flexed16px20px fixedAutoSmall column512px to 767px8 columns flexed16px24px fixedAutoMedium column768px to 1023px8 columns flexed24px28px fixedAutoLarge column1024px to 1279px12 columns fixed24pxAuto flexed888pxExtra large column1280px to 1439px12 columns fixed32pxAuto flexed1168px2 extra large column1440px and above12 columns fixed32pxAuto flexed1312px

Extra small column (320px to 511px)

Use for small screens like example mobile vertical.

Columns
4 columns flexed
Gutters
16px
Margins
20px fixed
Container width
Auto

Small column (512px to 767px)

Use for medium screens like example mobile horizontal.

Columns
8 columns flexed
Gutters
16px
Margins
24px fixed
Container width
Auto

Medium column (768px to 1023px)

Use for medium screens like example tablet vertical or small notebook.

Columns
8 columns flexed
Gutters
24px
Margins
28px fixed
Container width
Auto

Large column (1024px to 1279px)

Use for large screens like tablet landscape layouts or notebooks.

Columns
12 columns fixed
Gutters
24px
Margins
Auto flexed
Container width
888px

Extra large column (1280px to 1439px)

Use for extra large screens like desktop layouts.

Columns
12 columns fixed
Gutters
32px
Margins
Auto flexed
Container width
1168px

2 extra large column (1440px and above)

Use for extra large screens like wide-screen monitors.

Columns
12 columns fixed
Gutters
32px
Margins
Auto flexed
Container width
1312px

Responsive grid with sticky sidebar

A responsive grid with a sticky sidebar is a layout where the main content uses a flexible grid system, while the sidebar remains fixed within the viewport when scrolling.

On mobile devices, the sidebar is hidden or repositioned to prioritise content visibility and improve usability.

GridScreen sizeColumnsGuttersOuter marginsContainer widthSidebar widthSmall column768px to 1023px8 columns flexed16px56px fixedAuto72px side bar fixed (collapse)Medium column1024px to 1279px12 columns fixed24pxAuto flexed840px72px side bar fixed (collapse)Large column1280px to 1439px12 columns fixed24pxAuto flexed888px272px side bar fixed (expand)Extra large column1440px and above12 columns fixed32pxAuto flexed1024px272px side bar fixed (expand)

Small column (768px to 1023px)

Use for medium screens like example tablet vertical.

Columns
8 columns flexed
Gutters
16px
Margins
56px fixed
Container width
Auto
Sidebar
72px side bar fixed (collapse)

Medium column (1024px to 1279px)

Use for large screens like example tablet horizontal or notebook.

Columns
12 columns fixed
Gutters
24px
Margins
Auto flexed
Container width
840px
Sidebar
72px side bar fixed (collapse)

Large column (1280px to 1439px)

Use for extra large screens like example desktop or wide screen monitor.

Columns
12 columns fixed
Gutters
24px
Margins
Auto flexed
Container width
888px
Sidebar
272px side bar fixed (expand)

Extra large column (1440px and above)

Use for extra large screens like example desktop or wide screen monitor.

Columns
12 columns fixed
Gutters
32px
Margins
Auto flexed
Container width
1024px
Sidebar
272px side bar fixed (expand)

Singapore Government Design System

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

Past VersionsSGDS v1SGDS v2