@obosbbl/grunnmuren-icons-svg

2.0.0-canary.1 • Public • Published

@obosbbl/grunnmuren-icons-svg

npm canary version

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
npm install @obosbbl/grunnmuren-icons-svg@canary

# pnpm
pnpm add @obosbbl/grunnmuren-icons-svg@canary

Usage

// SVG
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.

Readme

Keywords

none

Package Sidebar

Install

npm i @obosbbl/grunnmuren-icons-svg

Weekly Downloads

0

Version

2.0.0-canary.1

License

MIT

Unpacked Size

113 kB

Total Files

149

Last publish

Collaborators

  • aulonm
  • alexanbj