@feathericons/core
v0.5.0
Published
Icon catalog for [Feather](../..).
Readme
@feathericons/core
Icon catalog for Feather.
Install
pnpm add @feathericons/coreThe published package is ESM in dist/index.js with types in dist/index.d.ts.
Usage
import { ICON_AXES, getVariant, icons } from '@feathericons/core'
ICON_AXES
// {
// weight: ['thin', 'extralight', 'light', 'regular', 'medium', 'semibold', 'bold'],
// roundness: ['none', 'small', 'medium', 'large'],
// }
icons
// [{ name, keywords, variants: [{ axes, grid, bounds, contents }, ...] }, ...]
getVariant(icons[0], { weight: 'bold', roundness: 'large' })
// { axes, grid, bounds, contents }
getVariant(icons[0], { weight: 'bold' })
// Axes you leave out use ICON_AXIS_DEFAULTS