@obosbbl/grunnmuren-icons-svg
Grunnmuren's icon set as raw SVG files.
If you are using React, you may want to use @obosbbl/grunnmuren-icons-react
instead.
Install
npm install @obosbbl/grunnmuren-icons-svg@canary
pnpm add @obosbbl/grunnmuren-icons-svg@canary
Usage
import House from '@obosbbl/grunnmuren-icons-svg/src/House.svg';
Updating the icons
To update the icons, run the update and build scripts. The icons should never be edited manually, as the source of truth is in Figma.
Running the update
script downloads all the icons as SVG files and perform some basic optimizations on them. The icons are checked into the src folder.
pnpm run update
Figma access token
If you are running the import script for the first time, it will prompt your for a Figma access token. The token is is required to access Figma's API. It can be generated on your Figma account settings page.
The import script may store the token to a local file, so you won't have to supply the token again on subsequent runs.
If the script fails with authentication issues, you could try to create a new access token and delete the local file .FIGMA_TOKEN
before running the script again.