Browse AI

AI

This AI section is still being developed. Please treat the content as contextual guidance only, as information may be largely incomplete and inaccurate at the time of reading.

Introduction

SGDS helps teams use AI with clearer context, shared standards, and design system guidance.

The role of AI in design systems

AI is now part of everyday design and engineering work. Coding assistants can read codebases, edit files, run commands, and connect to tools such as Figma through MCP. Their output still depends on the context they receive. Without SGDS context, the result may look plausible while drifting from how government digital services should work.

AI needs a source of truth

An AI tool can generate a button quickly. It still needs to know which SGDS button variant to use, which tokens control spacing and colour, how the component behaves in different states, and which pattern the button belongs to.

A design system gives AI that source of truth. It turns design decisions into components, tokens, patterns, templates, blocks, documentation, and usage rules that both people and AI tools can reference. The clearer the system, the less the assistant needs to infer from examples or defaults.

SGDS uses a layered token architecture. Raw values, primitive tokens, semantic tokens, and component-specific tokens connect design intent to implementation. Token names describe the decision they represent, so an AI tool can work from meaning instead of copying visual values.

Clearer context leads to better output

AI output improves when the assistant can work from clear, shared context. A local component set can provide reusable parts, but a design system also explains how those parts work together, when to use them, and what standards they meet.

When a central team maintains the system, improvements can flow downstream. A component gets refined, an accessibility issue gets fixed, or a pattern gets updated. Products built on that system can then pick up the improvement instead of solving the same problem separately.

This matters more when teams use AI often. If an assistant only sees isolated examples, it may copy the surface of the interface without the underlying logic. If it can reference shared components, tokens, templates, and usage guidance, it has a better path to produce work that matches the system.

A design system does not guarantee good AI output by itself. It needs to be documented, current, and accessible to the tools that teams use. When the system is unclear, AI tends to expose those gaps. When the system is structured well, AI can work from the same standards as the team.

What this means for teams using SGDS

SGDS gives teams a maintained foundation aligned to the Digital Service Standards. We are making that foundation easier for AI tools to use through structured guidance, reusable templates and blocks, and SGDS agent skills. In practice, this helps teams:

  • Generate more consistent UI because AI works from the same components, tokens, and patterns.
  • Reduce rework because the rules are available before code or design output is produced.
  • Move from idea to implementation with clearer guardrails because common layouts, templates, and behaviours are already defined.
  • Keep standards visible because accessibility and government design requirements are part of the system.

How SGDS is evolving for AI

Design systems now need to serve both people and AI tools. They need clear documentation, machine-readable context, reliable examples, and guidance that explains how components and patterns should be used.

SGDS is moving in that direction through clearer component guidance, reusable templates and blocks, and agent skills that help AI tools choose SGDS components, utilities, forms, and layouts more reliably.

The goal is practical: when teams use AI, SGDS should help output stay consistent, accessible, and aligned with how government digital services are built.

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