@artsy/icons v3.39.0
@artsy/icons
@artsy/icons is the canonical source for icons used at Artsy, and serves as an automatic build pipeline for generating JSX representations of .svg sources that can easily be imported into React apps.
You can view available icons here and click to copy the import path of the desired icon.
Meta
- State: production
- GitHub: https://github.com/artsy/icons
- CI/Deploys: CircleCi; merged PRs to
artsy/icons#mainare automatically deployed to NPM - Docs: https://icons.artsy.net
- Point People: @dzucconi
Installation and Usage
yarn add @artsy/iconsAnd then later, import icons like so for web:
import ArtsyLogo from "@artsy/icons/ArtsyLogo"
const MyApp = () => {
return <ArtsyLogo />
}Or for React Native:
import { ArtsyLogo } from "@artsy/icons/native"
const MyApp = () => {
return <ArtsyLogo />
}Alternatively, visit the docs and select individual icons, which will copy the import path to your clipboard.
Adding New Icons
We've setup the repo so that adding new icons and publishing to NPM is as automated as can be:
- Clone the repo:
git clone https://github.com/artsy/icons.git - Create a new branch:
git checkout -b add-new-icon - Copy your new icon
.svgfile into thesrcfolder (and follow pre-existing naming conventions! :pray:) - Push your branch up to GitHub and open a PR. This should automatically be tagged with a
minorlabel indicating a new feature addition - Merge PR. This will automatically generate JSX components and publish to NPM, and additionally update the docs
- Once published, a new comment will be added to the PR announcing the new version.
Development
yarn install
yarn build
yarn docs9 months ago
11 months ago
8 months ago
9 months ago
6 months ago
9 months ago
6 months ago
6 months ago
6 months ago
6 months ago
8 months ago
9 months ago
7 months ago
9 months ago
8 months ago
8 months ago
6 months ago
6 months ago
9 months ago
6 months ago
6 months ago
8 months ago
6 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
9 months ago
6 months ago
8 months ago
6 months ago
9 months ago
9 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago