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

@duo-icons/svelte

v1.0.1

Published

Duo Icons is a library of modern and beautiful duotone icons, designed for easy use in svelte projects. Each icon is crafted with a two-tone color scheme, providing a unique and stylish look that enhances the visual appeal of your applications. With a wid

Downloads

20

Readme

Duo Icons is a modern duotone icon collection built for Svelte 5 projects. Each icon is a lightweight Svelte component with two layers (primary and secondary), providing a stylish two‑tone look that integrates seamlessly with your app.

Installation

Install the package via npm or yarn:

npm install @duo-icons/svelte
# or
yarn add @duo-icons/svelte

Peer Dependencies

  • svelte ^5.53.7

Basic Usage

Import icons from the library and use them like any other component:

<script lang="ts">
  import { AddCircle } from '@duo-icons/svelte';
</script>

<main>
  <AddCircle />
  <AddCircle size="32" />
  <AddCircle class="text-red-500" />
</main>

Available Icons

The complete collection of all available icons is at https://duoicons.vercel.app/, providing the necessary resources to implement them into your project.

Props & Options

All icons extend native SVG attributes and accept an extra size prop:

| Prop | Type | Default | Description | |-----------|----------------------|---------|-------------| | size | number \| string | 24 | Width/height of the icon (px, rem, etc.) | | class | string | — | CSS classes applied to the SVG container | | ...svg attrs | various | — | Any standard SVG attribute (e.g. fill, stroke, aria-*) |

Duotone Layers

The component markup exposes two CSS classes on the <path> elements:

  • .duo-icons-primary-layer – the main layer
  • .duo-icons-secondary-layer – the secondary (faded) layer

Customize its appearance with Tailwind utility classes provided by @duo-icons/tailwind or standard CSS.

<AddCircle class="duo-icons-primary:text-blue-600" />
<style>
  .duo-icons-secondary-layer {
    opacity: 0.4;
    fill: #93c5fd;
  }
</style>

Styling Examples

Changing Size

<AddCircle size="16" />
<AddCircle size="1.5rem" />
<AddCircle size="48" />

Applying Colors

<AddCircle class="text-green-500" />
<AddCircle style="color: #e53e3e" />

Accessibility

<AddCircle aria-label="Add item" />

Practical Examples

Icon Button

<button class="p-2 rounded bg-blue-500 text-white flex items-center">
  <AddCircle class="mr-2" />
  Add
</button>

List with Icons

<ul>
  <li><AddCircle class="inline-block align-middle mr-1" /> New file</li>
</ul>

Color & Size Variation

<div class="flex gap-4">
  <AddCircle size="20" class="text-red-500" />
  <AddCircle size="24" class="text-yellow-500" />
  <AddCircle size="28" class="text-green-500" />
</div>

Additional Notes

  • Since icons are just SVGs wrapped in Svelte components, you can animate them using Svelte transitions or CSS.
  • You can import and render icons dynamically using import() if needed.

License

MIT © fazdiu

Support

If you find Duo Icons useful, consider supporting the project with a donation: Support me on Ko-fi