For a list of all icons with thumbnails, see icons.md. Included in the NPM package is icons.json
, for your convenience.
npm i --save @gapminder/dollar-street-icons
Import your icons like so:
import { dsLogoCircle, dsTimes } from '@gapminder/dollar-street-icons'
Or as a deep import:
import { dsLogoCircle } from '@gapminder/dollar-street-icons/dist/dsLogoCircle'
import { dsTimes } from '@gapminder/dollar-street-icons/dist/dsTimes'
Read about Font Awesome here.
Or go straight to the Font Awesome API documentation.
npm install
Create your SVG file with dimensions 512x512 pixels. Make sure it's a "compound path" (Illustrator: Object > Compound Path > Make
). The file must have this structure, with viewBox
and one <path>
element:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 12.3.4, SVG Export Plug-In . SVG Version: 5.67 Build 0) -->
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 512 512" xml:space="preserve">
<path d="M304.3,353C210..."/>
</svg>
Add to the svg
folder. Name the icon as you wish to call it in Font Awesome, lower-case hyphenated, for example: logo-circle-svg
npm run build
⚠️ You must be a member of the GapMinder NPM org to continue!
npm publish --access public
2022-08-23