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

@latty-ds/icons

v1.6.0

Published

Icon components for the Latty design system — 200 curated icons with a pluggable provider registry

Readme

@latty-ds/icons

Icon system for the Latty Design System. Ships 200 curated icons across 16 categories and a pluggable registry for adding your own.

See the icon gallery in the docs for the full list of available icons.

Installation

pnpm add @latty-ds/icons

Basic usage

<lt-icon name="check"></lt-icon>
<lt-icon name="arrow-right" size="lg"></lt-icon>
<lt-icon name="search" size="sm"></lt-icon>

Icons inherit currentColor, so color them with CSS:

<lt-icon name="check" style="color: var(--lt-color-success-500)"></lt-icon>

Sizes

xs (12px) · sm (16px) · md (20px, default) · lg (24px) · xl (32px) · inherit (1em, scales with surrounding text)

Accessibility

Icons are decorative by default (aria-hidden="true"). When an icon conveys meaning on its own (not inside a labelled button or link), set label:

<!-- Decorative (default) — hidden from screen readers -->
<lt-icon name="search"></lt-icon>

<!-- Informative — announced as "Warning" -->
<lt-icon name="warning-triangle" label="Warning"></lt-icon>

Registering custom icons

import { iconRegistry } from '@latty-ds/icons';

// Single icon
iconRegistry.registerIcon('my-icon', '<svg>...</svg>');

// Multiple at once
iconRegistry.registerIcons({
  'icon-a': '<svg>...</svg>',
  'icon-b': '<svg>...</svg>'
});

Custom icons override any built-in with the same name:

iconRegistry.registerIcon('check', '<svg><!-- your custom check --></svg>');

Security note: SVG strings are rendered as-is via Lit's unsafeSVG. Never pass untrusted or user-provided SVG to registerIcon.

Tree-shaking

Importing the main entry (@latty-ds/icons) registers all 200 icons. For smaller bundles, import only what you need:

import '@latty-ds/icons/search';
import '@latty-ds/icons/check';

Each per-icon entry registers that icon and defines the lt-icon custom element — no other import needed.

Using icons inside components

Components that accept icons use icon / icon-end / icon-start props:

<lt-button icon="save">Save</lt-button>
<lt-button icon-end="arrow-right">Next</lt-button>
<lt-textfield icon-start="search" placeholder="Search…"></lt-textfield>

API reference

lt-icon element

| Property | Attribute | Type | Default | Description | | -------- | --------- | --------------- | ------- | -------------------------------------------------------------- | | name | name | LattyIconName | '' | Icon name from the registry | | size | size | IconSize | 'md' | Icon size | | label | label | string | '' | Accessible label; when set, icon is informative (role="img") |

CSS custom property: --lt-icon-size overrides the size attribute.

iconRegistry

| Method | Description | | ------------------------- | --------------------------------------------------------- | | registerIcon(name, svg) | Register a single icon | | registerIcons(icons) | Register multiple icons at once | | getIcon(name) | Get an icon's SVG string | | hasIcon(name) | Check if an icon is registered | | getAvailableIcons() | Get all registered icon names (sorted) | | subscribe(listener) | Listen for registry changes; returns unsubscribe function | | reset() | Clear all icons from the registry |

License

MIT