Nordicons
Nordicons package found from packages/icons
utilizes simple SVG files and JSON format for the meta data. The following are the most commonly used commands during development:
pnpm build
- Builds the project.pnpm test
- Run all tests once.pnpm test -- -u
- Runs all tests once and updates failing screenshot snapshots.pnpm tags
- Run CLI helper util to add category and tags to any icons, plus format and sort metadata file.
Adding icon(s)
- Export the icon(s) as an SVG file(s), making sure they’ve been resized to match our standard sizing and compressed adequately
- Add the file(s) to the
src/assets
directory within the icons
package - Run
pnpm tags
and follow the steps to update the project with the new icon(s) - Run
pnpm test -- -u
to test the new icon(s) and update screenshot snapshots
License
See license in LICENSE.md
Copyright
Copyright © 2024 Nordhealth Ltd