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

southwind

v0.5.2

Published

CSS Framework that combines the best of Tailwind and SASS

Readme

🏝️ Southwind CSS

Description

Southwind is css framework that combines the ease of use of Tailwind with the reusability of SASS. Write all your styles in one file if you like, and keep your HTML clean and readable. You can easily create themes and components and sharing them is easy.

Before

<div class="rounded-lg p-3 pr-5 cursor-pointer font-bold pt-4 text-large">
  Click Me
</div>

<div class="bg-green-500 rounded-lg p-3 pr-5 cursor-pointer font-bold pt-4 text-large">
  Click Me 2
</div>

After

<div class="btn">Click Me</div>
<div class="btn green">Click Me 2</div>

.btn {
  brad-5 p-3 pl-5 pr-5 pointer fw-6 pt-3 fs-3 bg-blue-5
  &.green { bg-green-5 }
}

Benefits

  • 😎 Any Values Work - Instead of having to remember Tailwind's intervals Southwind uses a simple 1-infinite number system. ex.fs-250 mt-17
  • 🌍 Easy Global Changes - Want to change all your buttons across the site? No problem! Just change the style in your Southwind file and it propgates globally!
  • 💁 Benefits of SASS - SASS can make organizing your code extremely helpful. You can nest as many levels deep as needed, it makes it easy to change everything related to one component in one place.
  • 👨‍💻️ Uncluttered HTML - Tailwind is fantastic but it can leave your HTML littered with dozens of classes, sometimes all on the same div. You can still use inline classes here but for the heavy lifting it's easy to use Southwind to make reusable components.
  • 👨‍🏫️ Familiar Class Names - If you know CSS then Southwind will be easy. Font Size is fs-x (x = 1-to-infinite) , fw-x (x = 1-8) ,Text align center is ta-c.
  • 🎸 Themeable - Want to use multiple projects with the same theme? Now you can. Your Southwind file can go anywhere.
  • 🎮 Works with Plain HTML and all Frameworks - All you have to do is include Southwind javascript file and you are good to go. Use it VIA CDN or NPM package. It also has a native React component (works with Solid too!)
  • ⌨️ Less Typing - Tailwind can be a bit verbose, we aim for fewer keystrokes.
  • 🌊 Supports Responsive Layouts And Focus States - You can use SW to easily accomplish this with the sm:mt-5 prefix. You can also support hover it through native CSS with .some-class:hover { bg-blue-5} or hover:bg-blue-5
  • 👶 Small Size - The distributed version is only 5.7k!

Installation

npm install southwind

Usage

React/Solid

// You need both imports for now.
import Southwind from "southwind";
import SW from "southwind/react-component";

// Add this tag and feed it your Southwind script. Generally you should put this in another file and give it as a variable.
<SW code={`.component { bg-red-8 fc-white fs-55 } `} />

Playground: https://codesandbox.io/s/vigorous-ellis-zv4v9v

Using as a Javascript function

// Use as a script as below or just add the dist/swcss.js as an external script
import Southwind from "southwind"

Southwind.processSWScript('`.component { bg-red-8 fc-white fs-55 } ')

Basics

an x below means you can use any number

Fonts & Text

| Tag | For | Range | | ------------- | ------------- | -------- | | fs-x | Font Size | fs-1 to fs-(any) | | fw-x | Font Weight | fw-1 to fw-9 | | fc-blue-x | Font Color | fc-color-1 to fc-color-9 | | lh-x | Line Height | lh-0 to lh-(any) |

Margin and Padding

Note these also support negative values -mt-5

| Tag | For | Range | | ------------- | ------------- | -------- | | mt-x | Margin Top | mt-0 to mt-(any) | | ml-x | Margin Left | ml-0 to ml-(any) | | mr-x | Margin Right | mr-0 to mr-(any) | | mb-x | Margin Bottom | mb-0 to mb-(any) | | pt-x | Padding Top | pt-0 to pt-(any) | | pl-x | Padding Left | pl-0 to pl-(any) | | pr-x | Padding Right | pr-0 to pr-(any) | | pb-x | Padding Bottom | pb-0 to pb-(any) |

| fw-x | Font Weight | fw-1 to fw-9 | | fc-blue-x | Font Color | fc-color-1 to fc-color-9 | | lh-x | Line Height | lh-0 to lh-(any) |