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

slab-plugin-grid

v1.0.3

Published

Grid plugin for Slab.css

Readme

slab-plugin-grid

The Slab.css grid is an inline-block responsive grid with classes generated by the $breakpoints data map.

<div class="grid">
    <div class="grid__item one-half palm-one-third"></div>
</div>

A grid is always wrapped in a grid class with each item having grid__item. By default each item will be 100% width but can be changed via generated classes in the format {namespace}-{fraction as text}. The grid can have a maximum of 12 columns so fractions from 1 to 12 are available.

.three-fifths // namespaceless grid spacer
.lap-and-up-ten-twelfths
.desk-one-whole

Note: as the grid is built using inline-block the space between the html tags must be removed for the grid to work correctly. This can be done through HTML comments or using the Craft CMS {% spaceless %} helper.

<!-- HTML Comments -->  
<div class="grid">
    <div class="grid__item one-half palm-one-third"></div><!--
--><div class="grid__item one-half palm-one-third"></div><!--
--><div class="grid__item one-whole palm-one-third"></div>
</div>


<!-- Craft CMS helper -->
{% spaceless %}
<div class="grid">
    <div class="grid__item one-half palm-one-third"></div>
    <div class="grid__item one-half palm-one-third"></div>
    <div class="grid__item one-whole palm-one-third"></div>
</div>
{% endspaceless %}

The grid also comes with a number of modifier classes to adjust its alignment. These also have the option to be namespaced to only apply to a specific breakpoint.

grid--rev reverses the grid to content runs right to left. grid--right aligns grid to the right. Will only work if grid items to do not make up 100% of the grid parent’s width. grid--center centers align grid columns. Will only work if grid items to do not make up 100% of the grid parent’s width. grid—middle vertically aligns small grid columns to the center. grid—bottom vertically aligns small grid columns to the bottom.

Grid gutters

By default the grid will have its gutter width set to 1rem but this can be changed via the gutter mixin.

.grid--my-custom-grid {
    @include gutter(0); // Removes gutter spacing.
}

Responsive grid gutter classes are also generated from the spacing data map if $slab-grid-responsive-modifiers is set to true. The namespaceless classes will always be generated.

.grid-large // Gutter of 3rem
.portable-grid-small
.desk-wide-grid-medium