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/tailwind

v1.0.2

Published

Duo Icons is a library of modern and beautiful duotone icons, designed for easy use in projects

Readme

A modern and beautiful duotone icon library for Tailwind CSS v4. Duo Icons provides a collection of carefully crafted SVG icons with a distinctive duotone design that seamlessly integrates with your Tailwind CSS project.

Installation

Install the Duo Icons Tailwind package using npm:

npm install @duo-icons/tailwind

Requirements

  • Tailwind CSS v4.x.x or higher
  • Node.js

Setup

1. Add the icons

1.1 Plugin CSS (recommended) fast

You can get all the available icons simply by adding them using CSS:

@import "tailwindcss";

@import '@duo-icons/tailwind/icons';

1.2 Plugin js/ts

Add the Duo Icons plugin to your tailwind.config.js:

import duoIconsPlugin from '@duo-icons/tailwind';

/** @type {import('tailwindcss').Config} */
export default {
  content: ['./src/**/*.{html,js,tsx}'],
  plugins: [duoIconsPlugin],
};

You can also import the js plugin directly into Vite

@import "tailwindcss";

@plugin "@duo-icons/tailwind";

2. Import Styles

In your main CSS file, import the base styles and icons:

@import 'tailwindcss/base';
@import '@duo-icons/tailwind/base';

Or if using Vite with Tailwind CSS v4:

@import "tailwindcss";
@import "@duo-icons/tailwind/base";

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.

Basic Usage

Use any icon with the duo-icons-* utility class:

<!-- Basic icon -->
<span class="duo-icons-add-circle"></span>

<!-- With size -->
<span class="duo-icons-add-circle text-2xl"></span>

<!-- With color -->
<span class="duo-icons-add-circle text-blue-500"></span>

<!-- In a button -->
<button class="duo-icons-add-circle text-gray-400 hover:text-white transition-all w-8 h-8"></button>

Available Icons

  • AddCircle - A duotone plus icon inside a circle, perfect for "add" or "new" actions

Use the class: duo-icons-add-circle

Props & Options

Duo Icons are implemented as CSS utilities in Tailwind. Customize them using standard Tailwind utilities:

Size

Control icon size with Tailwind's text size utilities:

<!-- Small icon -->
<span class="duo-icons-add-circle text-sm"></span>

<!-- Medium icon (default) -->
<span class="duo-icons-add-circle text-base"></span>

<!-- Large icon -->
<span class="duo-icons-add-circle text-2xl"></span>

<!-- Extra large icon -->
<span class="duo-icons-add-circle text-5xl"></span>

Color

Use any Tailwind color utility:

<span class="duo-icons-add-circle text-blue-500"></span>
<span class="duo-icons-add-circle text-red-600"></span>
<span class="duo-icons-add-circle text-green-400"></span>

Opacity

Adjust opacity with Tailwind utilities:

<span class="duo-icons-add-circle text-blue-500 opacity-50"></span>
<span class="duo-icons-add-circle text-blue-500 opacity-75"></span>

Styling

CSS Customization

Since Duo Icons use mask-image under the hood, they respect text color and can be styled like text:

<!-- Default behavior - inherits text color -->
<div class="text-blue-500">
  <span class="duo-icons-add-circle"></span>
</div>

<!-- Override with specific class -->
<style>
  .icon-custom {
    color: #3b82f6;
  }
</style>
<span class="duo-icons-add-circle icon-custom"></span>

Customizing Duotone Layers

You can customize the primary and secondary layers of the duotone icons:

<!-- Using Tailwind variants -->
<span class="duo-icons-add-circle duo-icons-primary:text-blue-600 duo-icons-secondary:text-blue-300"></span>

Examples

Size Variations

<div class="flex gap-4 items-center">
  <span class="duo-icons-add-circle text-lg"></span>
  <span class="duo-icons-add-circle text-2xl"></span>
  <span class="duo-icons-add-circle text-3xl"></span>
  <span class="duo-icons-add-circle text-5xl"></span>
</div>

Color Variations

<div class="flex gap-4">
  <span class="duo-icons-add-circle text-blue-500"></span>
  <span class="duo-icons-add-circle text-green-500"></span>
  <span class="duo-icons-add-circle text-red-500"></span>
  <span class="duo-icons-add-circle text-purple-500"></span>
</div>

Interactive Icon Button

<button class="inline-flex items-center gap-2 px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors">
  <span class="duo-icons-add-circle"></span>
  Add New
</button>

Icon in Navigation

<nav class="flex items-center gap-8">
  <a href="#" class="flex items-center gap-2 hover:text-blue-500 transition-colors">
    <span class="duo-icons-add-circle"></span>
    Create
  </a>
</nav>

Icon with Hover Effect

<style>
  .hover-icon {
    transition: all 0.3s ease;
  }
  
  .hover-icon:hover {
    transform: scale(1.2);
    color: #3b82f6;
  }
</style>

<span class="duo-icons-add-circle hover-icon cursor-pointer"></span>

Advanced Configuration

Custom Icon Colors

Override the default icon color in your Tailwind config:

import duoIconsPlugin from '@duo-icons/tailwind';

export default {
  theme: {
    extend: {
      colors: {
        'icon-primary': '#3b82f6',
        'icon-secondary': '#93c5fd',
      },
    },
  },
  plugins: [duoIconsPlugin],
};

Using with Dark Mode

<!-- Icon adapts to dark mode -->
<span class="duo-icons-add-circle text-gray-800 dark:text-white"></span>

<!-- Specific colors per mode -->
<span class="duo-icons-add-circle text-blue-600 dark:text-blue-400"></span>

Browser Support

Duo Icons work in all modern browsers that support:

  • CSS mask-image property
  • CSS custom properties (CSS variables)

License

MIT - Created by fazdiu

Support

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