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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@maizzle/tailwindcss

v1.0.2

Published

Tailwind CSS 4 configuration for HTML emails

Readme

About

This package exports a Tailwind CSS 4 configuration file that can be used to make the CSS output more email client-friendly. The output will still contain modern CSS syntax, so it needs lowering with a tool like Lightning CSS.

Usage

First, install the package:

npm install @maizzle/tailwindcss

Then, import it in your project's CSS file:

@import '@maizzle/tailwindcss';

You may also import individual configurations:

@import '@maizzle/tailwindcss/mso';
@import '@maizzle/tailwindcss/clients';
@import '@maizzle/tailwindcss/theme/colors';
@import '@maizzle/tailwindcss/theme/text';
@import '@maizzle/tailwindcss/theme/shadows';
@import '@maizzle/tailwindcss/theme/filters';
@import '@maizzle/tailwindcss/theme/spacing';
@import '@maizzle/tailwindcss/theme/borders';

Note: for Tailwind CSS Intellisense to work, make sure you import this package in an actual .css file in your project.

Namespaces

The following namespaces are customized by this package:

  • --breakpoint-* - breakpoints are reset and only include xs and sm
  • --spacing - spacing utilities use a px scale instead of rem
  • --color-* - oklch colors have been replaced with their HEX equivalents
  • --text-* - font sizes use a px spacing scale instead of rem
  • --font-* - font families are set to use custom font stacks that are more compatible with email clients
  • --shadow-* - custom shadow utilties
  • --blur-* - custom filter utilities
  • borders - custom border radius utilities
  • --animate-* - this namespace is disabled

Variants

The package registers a few custom variants:

Breakpoint variants

  • sm - max-width: 600px
  • xs - max-width: 430px

Hover variant

The hover: variant has been overridden to use a :hover pseudo-class instead of a @media query, just like in Tailwind CSS v3.

Email targeting variants

The config includes variants for targeting specific email clients. These can be used to apply styles conditionally based on the client.

  • Airmail - airmail:
  • Apple Mail
    • apple-mail-10: to target Apple Mail 10
    • apple-mail: to target Apple Mail 12 and later
  • Comcast - comcast:
  • Edison (iOS, Android) - edison:
  • Freenet - freenet:
  • Gmail (web, Android, iPad)
    • gmail: to target Gmail web
    • gmail-android: to target Gmail Android
    • gmail-ipad: to target Gmail on the iPad
  • iOS Mail
    • ios-10: to target iOS 10
    • ios-13: to target iOS 13
    • ios-15: to target iOS 15 and later
  • Notion - notion:
  • Open-Xchange - ox:
  • Outlook
    • outlook-mac: to target Outlook on Mac
    • outlook-android: to target Outlook on Android
    • ogsc: and ogsb: to target Outlook webmail and iOS dark modes
  • Spark - spark:
  • Superhuman - superhuman:
  • Thunderbird - thunderbird:
  • Yahoo! Mail - yahoo:

MSO utilities

The configuration includes an extensive set of MSO (Microsoft Office) utilities that can be used to style emails in specific versions of Outlook (2007-2021), which use the Word rendering engine.

These utilities are prefixed with mso- and can be used in your HTML like so:

<div class="mso-hide-all">
  This will be hidden in Outlook 2007-2021.
</div>