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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@accelint/icons

v2.2.0

Published

An open-source icon library to serve as part of the entire ecosystem of UX for Accelint.

Readme

@accelint/icons

An open-source icon library serving as part of the Accelint UX ecosystem. This package contains 230+ optimized SVG icons converted to React components for seamless integration into React applications.

Features

  • Tree-Shakeable: Import only the icons you need
  • TypeScript Support: Full type definitions included
  • Accessible: Built-in title prop support for screen readers
  • Customizable: Icons inherit color and can be sized via CSS
  • Optimized: SVGs are processed with SVGO for minimal file size
  • Consistent: All icons use a 24x24 viewBox for uniform sizing

Installation

pnpm add @accelint/icons

Usage

Basic Import

Import icons using named imports for optimal tree-shaking:

import { Add } from '@accelint/icons/add';
import { Search } from '@accelint/icons/search';
import { Settings } from '@accelint/icons/settings';

export function MyComponent() {
  return (
    <div>
      <Add />
      <Search />
      <Settings />
    </div>
  );
}

With Accessibility

Use the title and titleId props for screen reader support:

import { Alert } from '@accelint/icons/alert';

export function AlertMessage() {
  return (
    <Alert
      title="Warning notification"
      titleId="alert-icon"
      aria-labelledby="alert-icon"
    />
  );
}

Styling Icons

Icons inherit the current text color and can be styled using CSS classes. For consistent sizing and styling, consider using the <Icon> component from @accelint/design-toolkit.

Using CSS Classes:

import { Check } from '@accelint/icons/check';

export function SuccessIcon() {
  return <Check className="fg-normal-bold" />;
}

Inheriting Parent Color:

export function SearchButton() {
  return (
    <button className="fg-accent-primary-bold">
      <Search />
      Search
    </button>
  );
}

Using the Icon Component (Recommended):

The @accelint/design-toolkit provides an <Icon> component with built-in size variants:

import { Icon } from '@accelint/design-toolkit';
import { Alert } from '@accelint/icons/alert';

export function WarningIcon() {
  return (
    <Icon size="medium" className="fg-serious-bold">
      <Alert />
    </Icon>
  );
}

Key Styling Properties:

  • Color: Icons use currentColor for fill, so they inherit the text color from their parent or can be styled directly
  • Size: Control size using width and height via CSS classes or inline styles
  • Stroke: Icons are designed with fill="none" by default; paths define the icon shape

TypeScript Support

All icons are fully typed and accept standard SVG element props:

import type { SVGProps } from 'react';
import { Dashboard } from '@accelint/icons/dashboard';

interface IconButtonProps {
  icon: React.ComponentType<SVGProps<SVGSVGElement>>;
  label: string;
}

export function IconButton({ icon: IconSvg, label }: IconButtonProps) {
  return (
    <button>
      <IconSvg />
      <span>{label}</span>
    </button>
  );
}

// Usage
<IconButton icon={Dashboard} label="Dashboard" />

Available Icons

This package includes 230+ icons across various categories:

  • UI Controls: Add, Remove, Edit, Delete, Settings, Search, Filter
  • Navigation: Arrow (all directions), Chevron (all directions), Expand, Collapse
  • Media: Play, Pause, Record, Stop
  • Communication: Message, Phone, Bell, Share
  • Status: Alert, Warning, Success, Information, Error
  • Files: Import, Export, Attach, Copy, Paste
  • Domain-Specific: Radar, Aircraft, Ships, Military symbols, Weather

For a complete list of available icons, see the package exports or explore the src/svg directory.

Icon Naming Convention

Icons use kebab-case naming:

  • File: arrow-left.svg → Import: @accelint/icons/arrow-left → Component: ArrowLeft
  • File: add-fill.svg → Import: @accelint/icons/add-fill → Component: AddFill

Design Guidelines

Icon Specifications

  • ViewBox: All icons use a 24x24 viewBox
  • Grid: Icons are designed on a 24x24 pixel grid
  • Stroke Width: Consistent stroke widths across icon set
  • Color: Monochrome design using currentColor (inherits text color)

Best Practices

  1. Sizing: Use the <Icon> component from @accelint/design-toolkit for consistent sizing with predefined variants (xsmall, small, medium, large)
  2. Spacing: Maintain adequate padding around icons for touch targets
  3. Accessibility: Always provide title prop for standalone icons
  4. Color Contrast: Ensure sufficient contrast between icon color and background
  5. Loading: Icons are lightweight, but consider lazy loading for pages with many icons

For more information about the Icon component and its size variants, see the Icon component documentation.

Contributing

Adding New Icons

  1. Add SVG File: Place your SVG file in src/svg/ directory

  2. SVG Requirements:

    • ViewBox must be 0 0 24 24
    • Primary color should be #898989 (will be converted to currentColor)
    • Remove unnecessary attributes (SVGR will optimize)
    • Ensure paths are properly closed
  3. Generate React Components:

pnpm generate:icons

This runs SVGR to convert SVGs to React components in src/icons/.

  1. Build and Test:
pnpm build
pnpm test  # If tests exist

SVGR Configuration

Icon generation is configured in svgr.config.mjs:

  • Optimization: SVGO preset with custom overrides
  • Color Replacement: #898989currentColor
  • Props: Expands props, includes title prop
  • Output: TypeScript React components with JSX runtime

Build Process

The build process follows these steps:

  1. pnpm generate:icons - Converts SVG files to React components using SVGR
  2. pnpm tsdown - Bundles TypeScript to JavaScript with type definitions
  3. pnpm run license - Adds license headers to generated files
  4. pnpm run format - Formats output files with Biome

License

Apache-2.0

Repository

GitHub: gohypergiant/standard-toolkit