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

@winstonblewup/sass-utils

v1.0.45

Published

My first mini scss utilitary framework

Readme

@winstonblewup/sass-utils

@winstonblewup/sass-utils is a mini SCSS utility framework inspired by Tailwind. It enables you to easily generate classes for grid, spacing, sizing, colors, border-radius, animations and more. The framework relies on Sass and offers a modular, responsive-first approach to building interfaces.


Table of Contents


Installation

  1. Install Sass

    The framework depends on Sass. In your project, install it with:

    npm install --save-dev sass
  2. Install the framework

    npm install @winstonblewup/sass-utils
  3. Add the setup script manually

    In your project’s package.json, add the following script:

    "scripts": {
      "setup": "node node_modules/@winstonblewup/sass-utils/setup-project.cjs"
    }
  4. Run the setup

    Then initialize the project using:

    npm run setup

    This will:

    • Copy generate-safelist.cjs and postcss.config.cjs to your project root
    • Inject the script build:css into your package.json if not already present
  5. Compile the CSS

    npm run build:css

Usage

In your src/styles/main.scss file, import the framework:

@use "@winstonblewup/sass-utils" as *;

After editing your styles or HTML structure, run:

npm run build:css

Then include the compiled file (typically dist/assets/index.min.css) in your HTML pages.


Project Structure

The framework is structured as follows:

sass-utils/
├── _index.scss
├── scss/
│   ├── abstracts/
│   │   ├── _functions.scss
│   │   ├── _mixins.scss
│   │   └── _variables.scss
│   ├── base/
│   │   └── _reset.scss
│   └── utilities/
│       ├── _colors.scss
│       ├── _flex.scss
│       ├── _grid.scss
│       ├── _radius.scss
│       ├── _sizing.scss
│       └── _spacing.scss
├── generate-safelist.cjs
├── postcss.config.cjs
├── setup-project.cjs
└── package.json

Documentation

1. Grid System

  • .col-1 to .col-12 define widths as fractions (e.g., .col-6 = 50%)

  • Responsive variants like .col-sm-6, .col-md-4, etc., are auto-generated

  • Breakpoints:

    $breakpoints: (
      "xs": 360px,
      "sm": 480px,
      "md": 768px,
      "lg": 1024px,
      "xl": 1280px,
      "2xl": 1536px
    );

2. Spacing, Margins and Paddings

  • Classes like .mt-16, .p-20, .mx-8, etc.
  • Pixel values converted to rem() automatically

3. Widths and Heights

  • .w-100, .h-50, etc. define width/height in percentage
  • Responsive versions also available

4. Colors and Border Radius

  • Colors defined via a SCSS map
  • Utilities generated: .bg-*, .text-*, .border-*
  • Border radius: .radius-4, .radius-8, .sm-radius-12, etc.

License

This project is licensed under the ISC License.