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

twigwind

v4.3.7

Published

A utility-first CSS framework that's tiny, JS-powered, and designed for rapid prototyping

Downloads

614

Readme

Twigwind CSS Framework

npm JavaScript GitHub stars

Twigwind Logo

Twigwind is a small experiment in creating a utility-first CSS framework. The idea began while experimenting with the document.querySelectorAll() function. Many CSS frameworks, such as Tailwind, rely on statically generated CSS files with thousands of pre-built classes, later optimized through a purge process. Twigwind takes a different approach, envisioning a compiler-like engine that processes an HTML file and dynamically generates classes to support just-in-time (JIT) compilation and custom class support.

This project is in its early stages, being only a few months old, and is intended to explore new ideas and learnings in lightweight CSS frameworks.

Who Is It For?

Twigwind might be interesting for:

  • Anyone exploring alternative approaches to CSS frameworks
  • Developers interested in just-in-time (JIT) class generation
  • Those curious about integrating JavaScript with CSS utility frameworks Visit the Twigwind Website to see it in action or to contribute to its development.

How to install it

for mannual installation clone this repo or run:

git clone https://github.com/helloadhavan/twigwind.git

If you want to play with this framework put this line <script src="https://cdn.jsdelivr.net/npm/[email protected]/src/css.min.js"></script> into the head of the document and insert

<script>
document.addEventListener("DOMContentLoaded", () => {
  document.querySelectorAll("[class]").forEach(el => Twigwind.twApply(el));
  Twigwind.twInject();
});
</script>

For CLI and build-time support install the offical npm package

npm install -g twigwind

Currently Implemented Features

| Category | Utilities | Example | |---|---|---| | Colors | bg-*, color-* | bg-red-5, color-cyan | | Spacing | p-*, m-*, pt-*, ml-* etc. | p-16px, mt-10 | | Sizing | w-*, h-*, size-* | w-100%, h-50vh | | Flexbox | flex, flex:row, flex:col | flex:col-center-left | | Grid | grid:cols,rows,gap | grid:3,2,10px | | Borders | border-*, border-radius-* | border-2, border-radius-8px | | Transforms | transform:rotate\|scale\|skew\|translate | transform:rotate-45 | | Gradients | gradient:type\|dir\|colors | gradient:linear\|to-r\|red\|blue | | Shadows | shadow-*, text-shadow-* | shadow-lg | | Positioning | fixed, absolute, top-*, z-* | absolute, z-10 | | Text align | text-left\|center\|right\|justify | text-center | | Typography | font-size-*, font-weight-*, font-family-* | font-size-lg | | Layout | max-w-*, mx-auto, gap-* | mx-auto, gap-16 | | Transitions | transition:prop_duration | transition:all_300ms | | Opacity | opacity-* | opacity-50 | | Animations | animate-name-dur-iter | animate-spin-1s-infinite | | Images | image-url-* | image-url-bg.jpg | | Filters | filter:*, backdrop-filter:* | filter:blur-5 | | Display | block, hidden, inline-flex | inline-block | | Pseudo | hover:, focus:, dark: | hover:bg-red-5 | | Responsive | sm:, md:, lg:, xl:, 2xl: | md:flex:row | | Cofiguration | colors, functions, etc | - |

If you liked this framework please star the repo

For the code, documentation, and detailed examples, refer to the Twigwind website.