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

@chassis-ui/icons

v0.1.0

Published

Comprehensive SVG icon library for Chassis Design System. Features optimized icons with automated font generation, sprite creation, and multi-format distribution for web and mobile applications.

Readme

🎨 Chassis Icons

Icon generator and font builder for Chassis Design System

npm version License: MIT

✨ Features

  • 🎯 SVG Optimization - Automated SVG cleaning and optimization with SVGO
  • 🖼️ Sprite Generation - Creates optimized SVG sprites for web use
  • 🔤 Icon Fonts - Generates web fonts (WOFF, WOFF2) from SVG icons
  • 📱 CSS & SCSS - Pre-built stylesheets with icon classes
  • 🎨 Preview Generator - HTML preview page for all icons
  • Build Pipeline - Automated icon processing and distribution

📦 Installation

# Install the package
npm install @chassis-ui/icons

# Or with pnpm
pnpm install @chassis-ui/icons

🚀 Quick Start

Using Pre-built Icons

<!-- Include the CSS -->
<link
  rel="stylesheet"
  href="node_modules/@chassis-ui/icons/icons/package/chassis-icons.css"
/>

<!-- Use icon classes -->
<i class="chassis-icon chassis-icon-home"></i>
<i class="chassis-icon chassis-icon-user"></i>

Using SVG Sprite

<!-- Include the sprite -->
<svg style="display: none;">
  <use
    href="node_modules/@chassis-ui/icons/icons/package/chassis-icons.svg"
  ></use>
</svg>

<!-- Use specific icons -->
<svg class="icon">
  <use href="#chassis-icon-home"></use>
</svg>

🛠️ Development

Building Icons

# Build all icons (SVG optimization, sprite, font generation)
pnpm build

# Build individual components
pnpm icons-main      # Optimize SVG files
pnpm icons-sprite    # Generate SVG sprite
pnpm icons-font      # Generate icon font
pnpm icons-dist      # Copy to distribution folder

Adding New Icons

  1. Add SVG files to icons/svgs/ directory
  2. Run the build process: pnpm build
  3. Preview icons in browser: pnpm preview

Icon Guidelines

  • ✅ Use 24x24px viewBox for consistency
  • Single color icons (black fill)
  • Simplified paths for better font rendering
  • Meaningful names (kebab-case)

📁 Project Structure

chassis-icons/
├── icons/
│   ├── svgs/              # Source SVG files
│   ├── package/           # Generated files
│   │   ├── chassis-icons.css
│   │   ├── chassis-icons.scss
│   │   ├── chassis-icons.svg
│   │   ├── chassis-icons.woff2
│   │   └── chassis-icons.woff
│   └── preview.html       # Icon preview page
├── build/                 # Build scripts
└── package.json

🔧 Configuration

SVG Sprite Config (svg-sprite.json)

{
  "mode": {
    "symbol": {
      "dest": "icons/package",
      "sprite": "chassis-icons.svg"
    }
  }
}

Fantasticon Config (.fantasticonrc.js)

Icon font generation settings for typeface creation.

📋 Available Scripts

| Script | Description | | ------------------- | ----------------------------------- | | pnpm build | Build all icons (complete pipeline) | | pnpm icons-main | Optimize SVG files | | pnpm icons-sprite | Generate SVG sprite | | pnpm icons-font | Create icon font files | | pnpm icons-dist | Copy files to distribution | | pnpm check | Validate icon files | | pnpm preview | Open icon preview in browser | | pnpm release | Build and package for release |

🎯 Output Files

After building, you'll find these generated files:

CSS & SCSS

  • chassis-icons.css - Complete stylesheet with font definitions
  • chassis-icons.min.css - Minified version
  • chassis-icons.scss - SCSS version with variables

Font Files

  • chassis-icons.woff2 - Modern web font (preferred)
  • chassis-icons.woff - Legacy web font support

SVG Sprite

  • chassis-icons.svg - Complete SVG sprite with all icons

Preview

  • preview.html - Visual preview of all available icons

🔗 Related Packages

This package is part of the Chassis Design System:

📄 License

Licensed under the MIT License.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request