npm.io
1.95.0 • Published 1 month ago

@maggioli-design-system/icons

Licence
ISC
Version
1.95.0
Deps
0
Size
6.0 MB
Vulns
0
Weekly
0

Maggioli Design System

icons

The icon font of the Maggioli Design System (mgg-icons), built from Maggioli artwork plus Google Material and Material Design Icons community sets.

Installation

npm i @maggioli-design-system/icons@latest
Usage
<link rel="stylesheet" href="node_modules/@maggioli-design-system/icons/dist/mgg-icons.css" />
<i class="mgg-icons-action-send"></i>
Adding an icon

Every glyph is declared in dictionary.json, which maps a font class name to a source icon:

nx run icons:add.icons --auto          # map new Maggioli SVG sources
nx run icons:check.dictionary          # verify the dictionary matches the sources
nx run icons:build                     # build the font

Dictionary format, source groups, validation rules and release conventions are documented in SPEC.md. Read it before editing dictionary.json by hand.

Keywords