Gov Design System - Icons
This package includes Gov Design System CE Icons.
lib/ is the canonical source — do not edit the copies
packages/icons/lib is the only place icon SVGs are authored. Every other icon
directory in the repository is generated, gitignored, and overwritten on the next
build — editing one loses the work:
| Generated destination | Produced by |
|---|---|
dist/packages/icons | icons:build (published package) |
dist/packages/core/www/build/assets/icons | icons:serve (core playground) |
packages/templates/src/public/assets/design-system/icons | templates → assets:copy-icons (Fractal) |
packages/docs/public/assets/icons | docs → assets:copy-icons (VitePress) |
All four are filled by scripts/sync-icons.js, which mirrors lib/ — it discovers the
sets from the filesystem and removes anything the source no longer has, so a destination
cannot drift from lib/. Adding a set is therefore just a new directory here; no build
script names the sets. Sprite filenames in webpack.config.js are derived the same way.
The one exception is packages/docs/public/assets/icons/custom: five technology logos
owned by the documentation, committed to the repository, and excluded from the mirror via
--keep custom. They are not part of the design system.
Copyright
Copyright(c) 2020 - 2026 Digitální a informační agentura