Browse Foundations

Foundations

Text colour

Apply SGDS text colour utilities for body, heading, label, and interactive text across themes.

Text colour utilities apply semantic colour tokens to text. All tokens are theme-aware and automatically switch between day and night mode values — unless a fixed variant is used.

Base

General-purpose hierarchy tokens. Use these when a specific typographic role (heading, label, link) does not apply.

SGDS tailwind tokenDayNightUsage
sgds:text-default
#1a1a1a
#ffffff
Primary body text — main readable content
sgds:text-subtle
#525252
#c6c6c6
Secondary text — captions, helper text
sgds:text-muted
#c6c6c6
#3b3b3b
Low-contrast text — metadata, decorative labels
sgds:text-inverse
#f3f3f3
#2a2a2a
Text on inverted surfaces
sgds:text-fixed-light
#f3f3f3
#f3f3f3
Always light — use on fixed dark backgrounds
sgds:text-fixed-dark
#1a1a1a
#1a1a1a
Always dark — use on fixed light backgrounds

Typography roles

Purpose-specific tokens for structured document content. Prefer these over base tokens when the element has a clear typographic role.

SGDS tailwind tokenDayNightUsage
sgds:text-display-default
#1a1a1a
#ffffff
Hero headlines, page-level display titles
sgds:text-heading-default
#2a2a2a
#f3f3f3
H1–H4 section titles
sgds:text-body-default
#1a1a1a
#ffffff
Paragraphs and descriptions
sgds:text-body-subtle
#525252
#c6c6c6
Secondary body — footnotes, meta
sgds:text-label-default
#2a2a2a
#f3f3f3
Form labels, table headers
sgds:text-link-default
#0269d0
#60aaf4
Links at rest
sgds:text-link-emphasis
#0151a0
#96c7f7
Links on hover or focus

Semantic

State and brand tokens that carry meaning. Use these when colour communicates a specific intent — status, feedback, or brand identity.

SGDS tailwind tokenDayNightUsage
sgds:text-accent-default
#0269d0
#60aaf4
Informational text — brand accent, link-adjacent labels
sgds:text-accent-emphasis
#0151a0
#96c7f7
Hover or active accent text
sgds:text-success-default
#0e7c3d
#16bd5e
Positive state — confirmed, saved, valid
sgds:text-success-emphasis
#0b5e2f
#62db96
Strong success emphasis
sgds:text-danger-default
#cf2323
#e98b8b
Error state — invalid, destructive, failed
sgds:text-danger-emphasis
#a11b1b
#f1b2b2
Critical error emphasis
sgds:text-warning-default
#7e6917
#e5bf29
Caution state — requires attention
sgds:text-warning-emphasis
#605111
#fcde63
Strong caution emphasis
sgds:text-purple-default
#ac1cdb
#d983f6
Supplementary brand color — visual differentiation
sgds:text-purple-emphasis
#8516a9
#e6adf9
Hover or active purple text
sgds:text-cyan-default
#00758d
#00b4da
Supplementary brand color — visual differentiation
sgds:text-cyan-emphasis
#005a6d
#49d2ef
Hover or active cyan text
sgds:text-neutral-default
#6b6b6b
#a5a5a5
Non-semantic grey — tags, badges, disabled states
sgds:text-neutral-emphasis
#525252
#c6c6c6
Stronger neutral text emphasis

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