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

@janispritzkau/tailwindcss-material-symbols

v0.0.9

Published

Easy-to-use, production-ready Material Symbols integration for Tailwind CSS with built-in font subsetting.

Readme

Material Symbols for Tailwind CSS

Modern, variable Material Symbols as first‑class Tailwind utilities for both TailwindCSS v3 (plugin) and v4 (stand‑alone CSS utilities) with automatic font subsetting for production.

Features

  • Tailwind v3 plugin & Tailwind v4 native utility file
  • Single .icon utility with composable variation classes (size / weight / fill / grade / family)
  • Deterministic icon-symbol-* utilities for every Material Symbol
  • Vite plugin that auto‑subsets variable fonts to only the symbols + variation axis ranges you actually use
  • Optional (dev‑only) import of the full, un‑subsettled fonts for zero‑config local development

Installation

pnpm add @janispritzkau/tailwindcss-material-symbols
# or
npm i @janispritzkau/tailwindcss-material-symbols

Peer deps: tailwindcss and (optionally) vite when using the Vite plugin.

Available Utilities

  • Family: icon-outlined (default), icon-rounded, icon-sharp
  • Size: icon-sm, icon-md (default), icon-lg, icon-xl
  • Weight: icon-thin, icon-extralight, icon-light, icon-normal (default), icon-medium, icon-semibold, icon-bold
  • Fill: icon-fill, icon-no-fill (default)
  • Grade: icon-on-light (0 / default), icon-on-dark (-25), icon-high (200)
  • Symbol: icon-symbol-<name> (e.g. icon-symbol-home, icon-symbol-search …)

You can specify arbitrary icon sizes and line heights as follows: icon-8, icon-sm/6, or icon-[1em]/[1lh]. Note that arbitrary expressions don't automatically set the optical size; you can specify this separately via icon-opsz-*.

Usage with TailwindCSS v3

  1. Enable the plugin in tailwind.config.(js|ts)
// tailwind.config.ts
import type { Config } from "tailwindcss";
import materialSymbols from "@janispritzkau/tailwindcss-material-symbols";

export default {
  content: ["./src/**/*.{js,ts,vue,jsx,tsx}", "./index.html"],
  plugins: [materialSymbols],
} satisfies Config;

Usage with TailwindCSS v4

For v4 you can skip the plugin and just import the provided utility layer:

/* src/style.css */
@import "@janispritzkau/tailwindcss-material-symbols";

Vite Plugin (Automatic Subsetting)

Add the plugin to your vite.config.ts. It will:

  1. Collect the final CSS produced for the files you list in include
  2. Detect which icon-symbol-* utilities and which variation axis values are used
  3. Subset each variable font (outlined / rounded / sharp)
  4. Emit only the required glyphs + axis min/max as optimized woff2 assets
  5. Inject the necessary @font-face declarations
// vite.config.ts
import { defineConfig } from "vite";
import materialSymbols from "@janispritzkau/tailwindcss-material-symbols/vite";

export default defineConfig({
  plugins: [
    materialSymbols({
      // List the CSS modules whose output should be scanned
      include: ["src/style.css"],
    }),
  ],
});

During dev (vite serve) the FULL fonts are injected. On build it performs real subsetting.

Manual Full Font Import

If you are not using the Vite plugin, you can import the full, un‑subset fonts directly. Avoid this for production because the variable fonts are large.

@import "@janispritzkau/tailwindcss-material-symbols/full.css";