Licence
ISC
Version
4.6.0
Deps
0
Size
184 kB
Vulns
0
Weekly
0
Maggioli Design System
svg-icons
The SVG artwork of the Maggioli Design System. Consumed by
@maggioli-design-system/magma (the mds-icon web component reads these files at runtime) and by
@maggioli-design-system/icons, which turns a curated subset of them into an icon font.
Installation
npm install @maggioli-design-system/svg-icons@latest
Adding an icon
Drop the optimised file into svg/. The filename is the public slug and must match
^[a-z0-9-]+\.svg$ — the build fails otherwise.
An icon added here is not automatically part of the icon font: it also needs an entry in
projects/icons/dictionary.json. See projects/icons/SPEC.md for the full
flow, and run nx run icons:check.dictionary to verify the two stay in sync.
Build
nx run svg-icons:build
Outputs optimised SVGs in dist/svg/ and the slug dictionary dist/iconsauce.json.