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

oocss-utils

v0.3.0

Published

Object-oriented CSS utility classes for rapid website development

Downloads

5

Readme

CSS Utility Classes Build Status

A collection of CSS utility classes - based on Emmet shorthand conventions - to aid in object-oriented CSS development.

Usage

Terse OOCSS classes can be a powerful tool for rapid and scalable development. They can be used independently, or to augment existing objects.

<div class="card">
	<div class="card__photo ta-c">
		<h3>Business Name</h3>
		<div class="fz-s">Some City, America</div>
	</div>
	<div class="card__cell">
		<h3 class="mt-xs mb-xxs">John Doe</h3>
		<div class="fz-s"><span class="fw-b">Member number:</span> 081425</div>
		<div class="mt mb-l">
			123 Main St.<br />
			Columbus, OH 43215
		</div>
		<a href="#" class="button">Select Account</a>
	</div>
</div>

Install

You can download the repo, or install via Bower:

$ bower install css-utils --save-dev

The Classes

Display

Selector | Responsibility --- | --- .d-b | display block .d-i | display inline .d-ib | display inline-block .d-tb | display table .d-tbc | display table-cell .d-tbr | display table-row .vh | visually hidden, but available for screen readers

Floats

Selector | Responsibility --- | --- .fl-l | float left .fl-r | float right .fl-n | float none .cl-b | clear both .cl-l | clear left .cl-r | clear right .cf | clear fix (contain floats)

Media

Selector | Responsibility --- | --- .rwd-img | responsive image (max-width: 100%) .rwd-img-st | stretched responsive image (width: 100%) .intrinsic | intrinsic ratio wrapper; default 16:9 ratio .ir | image replacement (@mixin included)

Position

Selector | Responsibility --- | --- .pos-r | position relative .pos-s | position static .pos-a | position absolute .pos-f | position fixed

Spacing

Selector | Responsibility --- | --- .{p/m}{t/r/b/l}-{xxs/xs/s/l/xl/xxl} | apply padding/margin in a given direction (top/right/bottom/left) in a given increment. .{p/m}-0 | remove all padding/margin .m{r/l}-a | margin left/right auto (centering)

Increment | Value* --- | --- xxs | 0.146em xs | 0.236em s | 0.618em (none) | 1em l | 1.618em xl| 4.236em xxl | 6.854em

*values derived from golden ratio

Examples:

<div class="mt-xl">
	<!-- 4.236em top margin -->
</div>

<div class="pl-s">
	<!-- 0.618em left padding -->
</div>

<div class="mb">
	<!-- 1em bottom margin -->
</div>

The spacing scale and step progression are configurable. Set these values in your own Sass, before including the css-utils lib:

// default values
$util-ratio: 1.618;
$util-base: 1em;
$util-spacing: (
	xxs: -4,
	xs: -3,
	s: -1,
	base: 0,
	l: 1,
	xl: 3,
	xxl: 4
);

Text

Selector | Responsibility --- | --- .ta-l | text align left .ta-c | text align center .ta-r | text align right .ta-j | text align justify .c-i | inherit ancestor text color .kern | enable font kerning .whs-nw | prevent wrapping on whitespace .truncate | limit text to a single line, truncating with an ellipsis .fw-l | font weight light (200) .fw-n | font weight normal (400) .fw-b | font weight bold (700) .fs-i | italic .tt-u | uppercase .wfsm | font anti-aliasing

Vertical Alignment

Selector | Responsibility --- | --- .va-t|align to top .va-m|align to middle .va-b|align to bottom

License

The MIT License (MIT)