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

sass-wdk

v1.2.0

Published

Sass web development kit - A comprehensive library of functions, mixins, and utilities for Sass/SCSS development

Readme

Sass WDK - Sass Web Development Kit

Sass programming library extension for web style developers. Importing any part of this library will not generate any CSS output. It just provides functions and mixins helping sass programming.

Modules included:

  • Constants

    • color.constants: assorted color names
    • font.constants: assorted font names
    • mq.constants: assorted media query names
    • tf.constants: timing function constants (cubic-bezier)
  • Function modules

    • color: color handling functions
    • font: font handling functions
    • string: string handling functions
    • list: list data structure
    • map: map data structure
    • reg: configuration data handling, registry model setting and getting data with path name
    • type: sass type conversion functions
    • util: misc functions
  • Mixins modules for UI

    • border: mixins for drawing borders
    • media-query: mixins for handling media queries
    • shape: mixins for drawing shapes such as circle, pattern, hamburger bar, etc.
    • misc: miscellaneous mixins including clearfix, align, visibility control, etc.
    • svg: mixins to handle svg handling
    • theme: mixins for handling themes
    • z-index: z-index constants and utilities

Installation

npm install sass-wdk

# or with pnpm:
pnpm add sass-wdk

# or with yarn:
yarn add sass-wdk

Usage

In your scss file, just import 'wdk':

@use 'sass-wdk/wdk' as wdk;

or add ./node_modules/sass-wdk to loadPath of your sass compiler:

@use 'wdk/color';
@use 'wdk/font';
@use 'wdk/ui/media-query' as mq;

Documentation

API Documentation provides brief introduction. For the details, refer tot he source code in wdk/ directory.

Quick Examples

@use 'sass-wdk/wdk/color';
@use 'sass-wdk/wdk/ui/media-query' as mq;

.example {
    // Smart color contrast
    color: color.yiq-color(#333);

    // Responsive design
    @include mq.media(tablet) {
        font-size: 1.2rem;
    }
}

For comprehensive examples and detailed API reference, see the complete documentation.

Development

Development environment is set using Vitest unit test module.

Available Scripts

# Start development mode with watch
pnpm run dev

# Run tests once
pnpm run test

# Run linting
pnpm run lint

# Build (lint check)
pnpm run build

If changing *.scss test file does not trigger test rerun, then press 'a' in the vitest watch mode.

Testing

The library uses sass-true for unit testing Sass functions and mixins. Test files are located in the test/ directory.

Credits

Thanks to the authors:

http://www.htmlcsscolor.com http://hugogiraudel.com/2013/08/08/advanced-sass-list-functions/ https://css-tricks.com/snippets/sass/deep-getset-maps http://www.sassmeister.com/gist/7525f0546479acd1d6e1 https://24ways.org/2010/calculating-color-contrast https://css-tricks.com/snippets/sass/power-function/ https://codepen.io/jakob-e/pen/doMoML http://hugogiraudel.com/2014/01/27/casting-types-in-sass/ https://css-tricks.com/snippets/sass/str-replace-function/ https://github.com/zurb/foundation-sites/blob/master/scss/util/_mixins.scss