@posthog/icons
v0.9.2
Published
[![NPM](https://img.shields.io/npm/v/@posthog/icons.svg)](https://www.npmjs.com/package/@posthog/icons)
Downloads
27,493
Keywords
Readme
@posthog/icons
Install
npm install --save @posthog/icons
# or
yarn add @posthog/icons
Usage
import { Logomark } from '@posthog/icons'
const Example = () => {
return <Logomark />
}
Development
yarn dev
Publishing to NPM
- Mark your PR with the appropriate label (e.g.
bump patch
) - When merged, it will trigger the bump, followed by publishing to npm
Requesting icons
- If you see an appropriate icon, use that first
- Check the Central Icons Figma file to see if there is anything appropriate (stroke: 1.5, radius: 1.0) and add it to the package. If possible, please:
- Convert strokes to outlines in Figma (break apart, select icon, Path → Outline stroke)
- Optimize with SVGOMG
- When pasting into
Icons.tsx
, locate where the icon should go alphabetically - After pasting, remove any fills and convert
fill-rule
andclip-rule
tofillRule
andclipRule
- Create an issue in this repo so Cory can add the same icon to our Figma icon library
- React out to Cory if there is something you would like but can't find