npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

custom-icons

v0.2.0

Published

fully customisable svg icons

Downloads

13

Readme

Custom Icons

npm version

Fully customisable open-source icons.

Installation

Git repository

You can clone this repository to manually install Custom Icons in your project…

git clone https://github.com/eucalyptuss/custom-icons.git

Install with npm

…or you can download the icons using npm package manager.

npm install ucreate-icons

Build

To generate demo files and SVG sprites run a build command from the main repo directory.

npm run build

Demo

The generated demo is available under ./custom-icons/demo/index.html.

IT DOESN't WORK! If you open the file directly in your browser, it may not display the icons correctly. To fix it, open it using a http server such as http-server.

Usage

As <img> or background-image.

Reference: CSS Tricks: Using SVG as an <img>

All the icons are available as separate files at ./custom-icons/icons. Remember that using icons as <img> or background-image, you can't customise them with CSS.

As inline SVG.

Reference: CSS Tricks: Using "inline" SVG

Import the icons you need using a technique appropriate for your project from ./custom-icons/icons.

As SVG sprite.

Reference: CSS Tricks: SVG use with External Reference

If you successfully run the build command you will find the SVG sprite in ./custom-icons/sprite.

If you'd like to learn more about different ways of using SVG in your project please take a look at the following articles:

Customisation

To customise icons with CSS you need to use the icons as either inline SVG or SVG sprite.

You can use the following CSS parameters to customise the icons:

  • width
  • height
  • stroke
  • stroke-width
  • stroke-linecap
  • stroke-linejoin

e.g.:

width: 24px;
height: 24px;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;

License

Ucreate icons are available under the MIT. Feel free to use the set in both personal and commercial projects. Attribution in much appreciated but not required.

Do not resell the icons. If you share the set on the web, always link to the project's page, not directly to the file. Do not repost the file on other websites and services.