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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@intello/substance-icons

v1.0.183

Published

Substance Icons is a lightweight React icon library that provides a collection of customizable and scalable SVG icons for modern web applications.

Readme

Substance Icons

A lightweight and elegant React icon library that converts your SVG files into optimized, customizable React components with TypeScript support.

Features

  • 🎨 Simple: Drop SVG files and generate React components automatically
  • 📦 Optimized: Built-in SVG optimization with SVGO and code minification
  • 🔷 TypeScript: Full TypeScript support with auto-generated types
  • Lightweight: Tree-shakable exports for minimal bundle size
  • 🎯 Customizable: Size, color, and className props for easy styling
  • 🔧 Developer Friendly: Simple API and great DX
  • 🚀 Fast Deploy: Single command to build, version, publish and push

Installation

Install the library using npm or yarn:

# Using npm
npm install @intello/substance-icons@latest

# Using yarn
yarn add @intello/substance-icons@latest

# Using pnpm
pnpm add @intello/substance-icons@latest

Usage

Import Individual Icons

Import and use icons directly from the library:

import React from "react";
import { User, Heart, Settings } from "@intello/substance-icons";

const App = () => (
  <div>
    <User size={32} color="blue" />
    <Heart size={32} color="red" />
    <Settings size={32} className="custom-class" />
  </div>
);

export default App;

Universal Icon Component

Use the Substance component to dynamically render any icon by name:

import React from "react";
import { Substance } from "@intello/substance-icons";

const App = () => {
  const iconName = "User"; // Can be dynamic

  return (
    <div>
      <Substance name="User" size={32} color="blue" />
      <Substance name={iconName} size={48} className="icon" />
    </div>
  );
};

export default App;

TypeScript Support

Full TypeScript support with auto-generated types for all icons:

import React from "react";
import { Substance, IconName } from "@intello/substance-icons";

const icons: IconName[] = ["User", "Heart", "Settings"];

const App = () => (
  <div>
    {icons.map((icon) => (
      <Substance
        key={icon}
        name={icon}
        size={32}
        color="currentColor"
      />
    ))}
  </div>
);

export default App;

Props

All icon components accept the following props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | size | number | 24 | Width and height of the icon in pixels | | color | string | currentColor | Icon color (inherits from CSS if not specified) | | className | string | "" | Additional CSS classes | | ...props | SVGProps | - | Any valid SVG attributes (onClick, style, etc.) |

Adding Your Own Icons

If you're forking this library to create your own icon set:

  1. Place your SVG files in the svg/ directory
  2. Run npm run generate-icons to convert them to React components
  3. Run npm run build to build the library
  4. Your icons are ready to use!
# Add your SVGs
cp my-icon.svg svg/

# Generate React components
npm run generate-icons

# Build the library
npm run build

Development

# Install dependencies
npm install

# Generate icons from SVG files
npm run generate-icons

# Build the library
npm run build

# Development workflow (generate + build)
npm run dev

# Deploy with one command (generate + build + version + publish + git push)
npm run deploy

Quick Deploy

The deploy script allows you to build, update, and push your changes with a single command:

npm run deploy

This will:

  1. Generate all icons from SVG files
  2. Build the library with optimizations
  3. Bump the patch version
  4. Publish to npm
  5. Push changes to GitHub

Contributing to Your Fork

  1. Add your SVG files to the svg/ directory
  2. Run npm run generate-icons to generate components
  3. Test your changes
  4. Build and publish your version

Issues and Suggestions

If you encounter any issues or have suggestions for improvements, please:

License

This project is licensed under the ISC License. See the LICENSE file for more details.


Author: José Campillo Website: intello.dev Twitter: @Chema12071 GitHub: Jcampillo1207