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

@bug-on/md3-tailwind

v3.0.1

Published

Tailwind CSS v4 plugin for Material Design 3 Expressive

Downloads

653

Readme

@bug-on/md3-tailwind

Tailwind CSS v4 Plugin for Material Design 3 Expressive.

This package is a core dependency of the @bug-on ecosystem. It acts as a bridge between the MD3 design system and Tailwind CSS by generating standard CSS utility classes conforming strictly to the Google Material Design 3 specifications. This package is fully redesigned to natively support the Tailwind CSS v4 engine (CSS-first configuration).


📦 Installation

To install this package independently (note: included automatically if you install @bug-on/md3-react):

npm install @bug-on/md3-tailwind
# or
pnpm add @bug-on/md3-tailwind

Required peer dependency:

npm install tailwindcss@^4.0.0

🛠️ Usage (Tailwind v4)

Unlike older versions requiring a massive tailwind.config.ts, Tailwind v4 allows you to declare plugins directly within the CSS source. Add the following to your global stylesheet (e.g., globals.css):

/* Import Tailwind core layer */
@import "tailwindcss";

/* 1. Register the @bug-on MD3 plugin */
@plugin "@bug-on/md3-tailwind";

/* 2. Import MD3 Tokens (Required to prevent undefined variable mapping) */
@import "@bug-on/md3-tokens/index.css";

Generated Utilities

By registering this plugin, your Tailwind environment gains access to the following utilities out-of-the-box:

  • M3 Colors: Extensive utility classes mapped to MD3 token system (e.g., m3-primary, m3-secondary, m3-surface). Examples: bg-m3-primary, text-m3-on-primary, border-m3-outline.

  • Elevation (3D Shadows): Support for 5 levels of true MD3 elevations. Examples: shadow-m3-elevation-1, shadow-m3-elevation-3.

  • Shape (Radii): Soft borders matching component standards. Examples: rounded-m3-extra-small, rounded-m3-large.

  • Typography: Ready CSS classes mapping to Material Heading, Body, Label variations. Examples: text-m3-display-large, text-m3-body-medium, text-m3-label-small.


💡 Using alongside MD3 React

This package only provides text/class-based UI utilities. To leverage complex and pre-composed components safely along with animations, refer to the installation steps documented in @bug-on/md3-react.

⚖️ License

MIT