This repository hosts the source for the DIGIT Design System documentation site — a reference for designers and developers building on the DIGIT platform by eGov Foundation.
The site covers the full design language: foundations (colour, typography, spacing, iconography), reusable UI components (atoms, molecules, organisms), and interaction patterns — all built for accessibility, responsiveness, and consistency across government digital services.
The documentation is published via GitHub Pages on every push to master:
| Resource | Description | Link |
|---|---|---|
| Design System Docs (this repo) | Component specs, foundations, and design patterns | egovernments.github.io/ui-docs |
| Storybook | Live interactive preview of every DIGIT UI component | egovernments.github.io/DIGIT-UI-LIBRARIES |
| DIGIT UI Developer Docs | Full platform documentation, guides, and API reference | docs.digit.org/digit-ui |
| digit-ui-components (npm) | React component library — install and use DIGIT components in your app | @egovernments/digit-ui-components |
| digit-module-generator (npm) | CLI scaffolding tool to bootstrap new DIGIT modules | @egovernments/digit-module-generator |
npm install @egovernments/digit-ui-componentsImport and use components in your React application:
import { Button, TextInput } from '@egovernments/digit-ui-components';npx @egovernments/digit-module-generatorThis CLI walks you through generating a new DIGIT module with the correct folder structure, routing, and configuration.
ui-docs/
├── index.html # Homepage
├── docs/
│ ├── getting-started/ # Designer & developer onboarding
│ ├── foundation/ # Colour, typography, spacing, radius, icons
│ ├── components/ # Atoms, molecules, and component pages
│ └── patterns/ # Form, inbox, and summary patterns
├── assets/
│ ├── css/styles.css # Global styles
│ ├── js/ # Sidebar, search, theme, navigation
│ ├── previews/ # Component preview images
│ └── images/ # Page illustrations and diagrams
├── .github/workflows/pages.yml # GitHub Actions — deploys to GitHub Pages on push to master
└── CODEOWNERS # Code ownership configuration
This is a static HTML site — no build step required.
- Clone the repo:
git clone https://github.com/egovernments/ui-docs.git
cd ui-docs- Serve locally with any static file server, for example:
npx serve .
# or
python3 -m http.server 8080- Open
http://localhost:8080in your browser.
The site deploys automatically via the GitHub Actions workflow at .github/workflows/pages.yml on every push to master. No manual deployment is needed.
Please read the Content Standard before contributing new pages. For code ownership, see CODEOWNERS.
All content on this site by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.