blemlicons
v0.2.5
Published
Crisp SVG icon set by Problemli
Maintainers
Readme
blemlicons
Everything needs an icon :)
Install
npm i blemlicons
# or
pnpm add blemliconsUsage
Import or reference icons directly.
Example (HTML)
<img src="/node_modules/blemlicons/icons/problemli.svg" alt="" width="24" height="24" />Bundler (e.g. Vite/Next)
import check from "blemlicons/icons/problemli.svg";
<img src={check} alt="" />Dev
You can run a small validation script to check all SVGs before publishing:
npm run validateThis checks:
- all icons have a 24×24 viewBox
- use
currentColorfor stroke/fill - no inline width/height attributes
Create new icons
Make sure your icon
- is 24px × 24px
- has ~2 px padding on all sides Weird shapes (not round or rectangular) may, at some positions, go a little closer to the edge
Then:
- Add your SVG to the
iconsfolder - Run
npm run validateto check it - if necessary, either manually fix or run
npm run fix - commit and push
- publish
npm version patch npm publish --access public
