Gov IE Design System contains the code you need to start building a user interface for government platforms and services.
corepack enable
pnpm install
pnpm ds
Script | Description |
---|---|
pnpm ds |
Launch documentation site (Next.js) |
pnpm html:storybook |
Launch global HTML components Storybook |
pnpm react:storybook |
Launch React components Storybook |
pnpm build |
Build all libraries and applications |
pnpm build:libs |
Build all libraries only |
pnpm figma:build |
Build Figma token import files |
pnpm format:check |
Check formatting on all projects |
pnpm lint |
Check linting on all projects |
pnpm test |
Run tests on all projects |
pnpm examples:vite |
Run Vite example component usage |
pnpm examples:nextjs |
Run Next.js example component usage |
Make token changes in tokens/tokens
or packages/themes/<packagename>
in Design Token Format Module format.
pnpm figma:build
Figma tokens are outputted to packages/design/figma/dist/tokens
The entire folder can be uploaded as one with the figma-variables-import plugin.
- Figma does not support composite variables (e.g. typography, shadows etc), so they are converted to nested variable groups
- Figma does not support percentage variables for line height so line height percentages must be entered manually for Figma text styles
Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.
This project is tested with BrowserStack BrowserStack