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

neat-omega

v3.1.0

Published

A family of omega mixins for Neat 3.x+

Downloads

55

Readme

Neat-Omega Family for Bourbon Neat (3.x.x+)

The Omega family is a group of mixins that accomplish several supplemental goals within the Bourbon-Neat framework.

Originally created to address: https://github.com/thoughtbot/neat/issues/543

Install

with NPM

  • npm install --save neat-omega
  • add @import neat-omega after your @import neat statement in your scss.
  • add node_modules/neat-omega/core to your sass import paths.

with Bower

  • bower install neat-omega
  • add @import neat-omega after your @import neat statement in your scss.
  • add bower_components/neat-omega/core to your sass import paths.

with Bundler

  • add gem "neat-omega" to Gemfile
  • add @import neat-omega after your @import neat statement in your scss.

Documentation

alpha

@include alpha($selector: self, $grid: $neat-grid)

  • Clears the float on the specified selector. Generally this is the first item in a new row.

example SCSS

.element:nth-child(3n+1) {
  @include alpha;
}

example CSS

.element:nth-child(3n+1) {
  clear: left;
}

example SCSS

.last-element {
  @include alpha('&:last-child');
}

example CSS

.last-element:last-child {
  clear: left;
}

example SCSS

@include alpha('.custom:nth-child(3n+2)');

example CSS

.custom:nth-child(3n+2) {
  clear: left;
}

nth-alpha

@include nth-alpha($selector, $grid: $neat-grid)

  • Clears the float on the specified nth-of-type selector. This is mostly for convenience, since you can achieve the same result with alpha

example SCSS

.nth-element {
  @include nth-alpha(4n+1);
}

example CSS

.nth-element:nth-of-type(4n+1) {
  clear: left;
}

omega

@include omega($selector: self, $grid: $neat-grid)

  • Adds a margin-right to the specified selector. Generally this is only needed for centered flex layouts.

example SCSS

@include omega('.element:nth-of-type(3n+2)');

example CSS

.element:nth-of-type(3n+2) {
  margin-right: 20px;
}

example SCSS

element {
  @include omega('&:nth-of-type(3n+1)');
}

example CSS

.element:nth-of-type(3n+1) {
  margin-right: 20px;
}

omega-flex

@include omega-flex($selector: null, $grid: $neat-grid)

  • Adds a margin right to the specified object, or if auto, to the last child of the grid.

example SCSS

.element {
  @include omega-flex;
}

example CSS

.element {
  margin-right: 20px;
}

example SCSS

@include omega-flex('.element:nth-of-type(3n+2)');

example CSS

@example css - CSS Output
.element:nth-of-type(3n+2) {
  margin-right: 20px;
}

example SCSS

.element {
  @include omega-flex('&:nth-of-type(3n+1)');
}

example CSS

@example css - CSS Output
.element:nth-of-type(3n+1) {
  margin-right: 20px;
}

example SCSS

.element {
  @include omega-flex(auto);
}

example CSS

@example css - CSS Output
.element:last-child {
  margin-right: 20px;
}

nth-omega

@include nth-omega($selector, $grid: $neat-grid)

  • Adds a margin right to the specified nth-of-type object, and clears the nth+1 object. Note that composite arguments such as 2n+1 are not supported by this mixin.

example SCSS

.nth-element {
  @include nth-omega(4n);
}

example CSS

.nth-element:nth-child(4n) {
  margin-right: 20px;
}
.nth-element:nth-child(4n+1) {
  clear: left;
}
.nth-element:last-child {
  margin-right: 20px;
}