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 🙏

© 2024 – Pkg Stats / Ryan Hefner

spacious

v1.0.12

Published

> A set of functional CSS utilities for all your spacing needs.

Downloads

4

Readme

Spacious

A set of functional CSS utilities for all your spacing needs.

Padding, margin, width and max-width utilities formed on a ratio of your base font size.

Padding and Margin

The default spacing scale for padding and margin is based on powers of two and starts at .25rem (1 spacing amount), ending at 16rem (7 spacing amount).

Classes follow a simple pattern:

{viewport}-{p or m}{spacing-direction}{spacing-amount}

Example

<p class='ml1 sm-ml3' />

Translates to margin-left-1 (sets margin-left property to .25rem) and small-margin-left-3 (sets margin-left property above the small breakpoint to 1rem).

Widths and Max-Widths

Widths and max widths work in a similar fashion, although come in both relative and percentage based units.

These classes follow a simple pattern:

{viewport}-{w or mw}-{spacing-amount}

Relative

The relative spacing scale for widths and max widths is also based on powers of two, but starts at 1rem (1 spacing amount) and ends at 64rem (8 spacing amount).

Percentage

Percentage based widths include a scale from 0-100 in multiples of 10, as well as the additional useful widths of 25%, 33%, 66% and 75%.

Example

<div class='w-4 sm-mw-40 ' />

Translates to width-4 (sets width to 8rem) and small-max-width-40 (set width above the small breakpoint to 40%).