@hackclub/icons
Hack Club’s icons are a superset of Spectrum’s incredible collection (also published as spectrum-icons
). Designed for use with our Design System.
Usage
npm i @hackclub/icons
import React from 'react'
import Icon from '@hackclub/icons'
export default () => (
<div style={{ color: 'hotpink' }}>
<Icon glyph="challenge" size={128} />
<Icon glyph="event-code" size={64} />
<Icon glyph="important" size={32} />
</div>
)
Development Setup
- Clone & enter the repo.
$ git clone https://github.com/hackclub/icons.git
$ cd icons
- Install dependencies.
$ npm install
- Setup docs (optional, do this if you’ve added icons).
npm run prepare
npm run docs
- Run locally.
npm run dev