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

sushruto-tailwind-css

v1.0.1

Published

A lightweight Tailwind-like CSS engine

Downloads

19

Readme

Sushruto Tailwind

npm license

A lightweight utility-first CSS engine built from scratch using JavaScript.

No CSS files. No configuration.
Just write classes like chai-* and styles are applied automatically.


✨ Features

  • ⚡ Zero CSS writing
  • 🎯 Utility-first approach
  • 🧠 Dynamic DOM parsing
  • 🔄 Real-time CSS generation
  • 🎨 Built-in UI utilities (shadow, button, hover)
  • 📦 Available as npm package

🛠️ How It Works

Pipeline:

DOM → Extract Classes → Generate CSS → Apply Styles

  1. Scans DOM for chai-* classes
  2. Parses class patterns
  3. Converts them into CSS
  4. Injects styles dynamically

📦 Installation

npm install sushruto-tailwind-css
🚀 Usage
<div class="chai-p-20 chai-bg-red chai-text-center">
  Hello World
</div>
import { sushrutoTailwind } from "sushruto-tailwind-css";

sushrutoTailwind();
🎨 Utilities
🎨 Colors

i. chai-bg-red → background: red
ii. chai-bg-blue → background: blue
iii. chai-bg-green → background: green
iv. chai-text-white → color: white
v. chai-text-black → color: black

Example:
<div class="chai-bg-red chai-p-20">
  Red Box
</div>
📏 Spacing

i. chai-p-10 → padding: 10px
ii. chai-p-20 → padding: 20px
iii. chai-p-50 → padding: 50px
iv. chai-m-10 → margin: 10px
v. chai-m-20 → margin: 20px

🔤 Typography

i. chai-text-16 → font-size: 16px
ii. chai-text-24 → font-size: 24px
iii. chai-font-bold → bold text
iv. chai-text-center → center align
v. chai-text-left → left align

📦 Layout

i. chai-flex → display: flex
ii. chai-flex-center → center alignment
iii. chai-flex-col → column layout
iv. chai-gap-10 → spacing between elements
v. chai-justify-between → space between

📐 Borders

i. chai-border-2 → border width
ii. chai-border-4 → thicker border
iii. chai-rounded-10 → border radius
iv. chai-rounded-20 → larger radius
v. chai-border-red → colored border

🎭 Transforms

i. chai-scale-2 → scale element
ii. chai-scale-3 → larger scale
iii. chai-rotate-45 → rotate 45deg
iv. chai-rotate-90 → rotate 90deg
v. chai-scale-1 → normal size

🖱 Hover Effects

i. chai-hover-scale → zoom effect
ii. chai-hover-bg-red → change background
iii. chai-hover-text-white → change text color
iv. chai-hover-shadow → add shadow
v. chai-hover-border → border effect

💻 GitHub Repository

👉 https://github.com/SUSHRUTO/sushruto-tailwind


👨‍💻 Author

Sushruto Majumdar

⭐ Future Improvements
Responsive utilities
Grid system
Theme support
Advanced animations