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

chai-tailwind-mini

v1.0.2

Published

A mini Tailwind-like utility CSS engine

Readme

🍵 Chai Tailwind (Mini Tailwind CSS Engine)

A lightweight, runtime utility-first CSS engine inspired by Tailwind CSS.

Chai Tailwind scans your HTML, detects chai-* classes, and dynamically injects CSS into your page — no build step required 🚀


✨ Features

  • ⚡ Zero build setup
  • 🎯 Utility-first classes (like Tailwind)
  • 🧠 Runtime CSS generation
  • 🌐 Works directly in browser (CDN)
  • 📦 Also available via npm

🚀 Quick Start (CDN)

Just include this script in your HTML:

<script src="https://cdn.jsdelivr.net/gh/Mehtab-786/tailwind-mini/dist/chai-tailwind.js"></script>

That’s it — your chai-* classes will start working automatically.


🧪 Example Usage

<h1 class="chai-text-3xl chai-font-bold chai-bg-purple chai-text-white chai-p-4">
  Hello Chai Tailwind 🚀
</h1>

<p class="chai-bg-orange chai-shadow-xl chai-p-4">
  This is a paragraph with background, shadow, and padding.
</p>

📦 NPM Usage

Install:

npm install chai-tailwind-mini

Use:

import { startChai } from "chai-tailwind-mini";

startChai();

🧠 How It Works

  1. Scans DOM for chai-* classes
  2. Matches them with predefined styles
  3. Generates CSS dynamically
  4. Injects styles into <head>

🎨 Available Utility Classes

📏 Spacing (Padding)

chai-p-1 → padding: 0.25rem
chai-p-2 → padding: 0.5rem
chai-p-4 → padding: 1rem
chai-p-6 → padding: 1.5rem
chai-p-8 → padding: 2rem

📐 Margin

chai-m-1 → margin: 0.25rem
chai-m-4 → margin: 1rem
chai-m-auto → margin: auto

🎨 Background Colors

chai-bg-red
chai-bg-blue
chai-bg-green
chai-bg-yellow
chai-bg-purple
chai-bg-orange
chai-bg-gray
chai-bg-black
chai-bg-white

📝 Text Styles

chai-text-xs → 0.75rem
chai-text-lg → 1.125rem
chai-text-3xl → 1.875rem
chai-text-5xl → 3rem

chai-font-light
chai-font-medium
chai-font-bold
chai-font-black

chai-text-center
chai-text-left
chai-text-right

🌈 Text Colors

chai-text-red
chai-text-blue
chai-text-green
chai-text-yellow
chai-text-purple
chai-text-orange
chai-text-gray
chai-text-white
chai-text-black

📦 Layout

chai-block
chai-inline
chai-flex
chai-grid
chai-hidden

🔲 Flexbox

chai-flex-row
chai-flex-col
chai-items-center
chai-justify-center
chai-justify-between
chai-gap-4

🧱 Borders

chai-border
chai-border-2
chai-border-4
chai-border-red
chai-rounded
chai-rounded-lg
chai-rounded-full

🌫️ Shadows

chai-shadow-sm
chai-shadow
chai-shadow-md
chai-shadow-lg
chai-shadow-xl

🎞️ Animations

chai-animate-spin
chai-animate-ping
chai-animate-bounce

⚠️ Notes

  • Works only in browser (uses DOM)
  • No build tools required
  • Classes must start with chai-

🔥 Future Improvements

  • Dynamic values (chai-p-[50px])
  • Responsive utilities
  • Hover states
  • CLI build tool

👨‍💻 Author

Mehtab Hussain


⭐ Support

If you like this project, consider giving it a ⭐ on GitHub!