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

maskicons

v0.1.0

Published

Icons as Tailwind utilities.

Readme

maskicons

Tailwind CSS v4 utilities for popular icon sets. This lets you include icons with Tailwind LSP auto-complete and thanks to Tailwind’s tree-shaking, your output CSS will only include the icons you actually use.

Supported icon sets

Installation

npm install maskicons

Usage

Just import the package in your CSS file after tailwindcss:

@import "tailwindcss";
@import "maskicons";

You can alternatively import just the icon sets that you need:

@import "tailwindcss";
@import "maskicons/tabler-outline";
@import "maskicons/tabler-filled";
@import "maskicons/bootstrap";
@import "maskicons/flags";
@import "maskicons/flags-square";

Then use the CSS classes on <i> tags to render icons.

<i class="tabler-heart-outline"></i>
<i class="tabler-star-filled"></i>
<i class="bootstrap-folder"></i>
<i class="flag-us"></i>
<i class="flag-gb-square"></i>

Sizing

By default, icons are 1em tall, which means they scale with the current font size. You can size them using Tailwind's text-* utilities:

<i class="tabler-heart-outline text-sm"></i>
<i class="tabler-heart-outline text-base"></i>
<i class="tabler-heart-outline text-2xl"></i>

Alternatively, you can use h-* utilities for explicit sizing:

<i class="tabler-heart-outline h-4"></i>
<i class="tabler-heart-outline h-6"></i>
<i class="tabler-heart-outline h-8"></i>

Note: Flags have a 4:3 aspect ratio by default. Use the -square suffix for 1:1 flags (e.g., flag-us-square).

Colors

By default, icons inherit the current text color. You can also use the icon-* utility to set a specific icon color. This can be applied to a parent element to color all icons inside it:

<div class="icon-blue-500">
  <i class="tabler-heart-outline"></i>
  <i class="tabler-star-outline"></i>
</div>

Note: Flag icons are full-color and do not respond to the icon-* utility.

Positioning

By default, icons are displayed inline-block and vertically aligned to look great next to text content. But you can can easily override this with the block utility.

Alternative text

Any text inside the icon element is visually hidden but remains accessible to screen readers. You can use this to provide alternative text:

<button><i class="tabler-trash-outline">Delete</i></button>

Low precedence

The icon utilities use :where selectors so they have the lowest precedence. This is why all other utilities such as size-* will override the defaults.

Payload

The Tabler icons are ~687 bytes on average and the Bootstrap icons are ~914 bytes on average. They should compress well due to the duplicated rules. And Tailwind only includes the icons you actually use.

License

  • MIT © Joel Drapper
  • Bootstrap Icons are licensed under the MIT License © The Bootstrap Authors.
  • Tabler Icons are licensed under the MIT License © Paweł Kuna.
  • Flag Icons are licensed under the MIT License © Panayiotis Lipiridis.