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

@ulule/owl-kit

v2.0.35

Published

Owl kit

Downloads

1,003

Readme

Owl-kit

SASS

Namespaces

b- Block indicate a block element of the new structure introducing namespace to our css is- Status tells us that the DOM currently has a temporary, optional, or short-lived style applied to it due to a certain state being invoked like is-open for a menu. js- JavaScript classes are for javascript manipulation and should not have any style associate.

Possible enhancement

o- Objects are abstract elements that can be used by lot of things like the media object. If you really must, be very careful when modifying one. c- Components are tiny concrete elements with one specific defined purpose like a button. b- Blocks are big concrete sections like the site header.

BEM

Owl-kit uses the block, element and modifier (BEM) methodology with namespace. The syntax is .block__element--modifier.

Let's see how it works with this silly example:

$block: '.c-narwhal';

#{$block} {
  float: left;

    &__horn {
      display: block;

      &--pretty-big {
        font-size: large;
    }
  }
}

Which produces this beautiful CSS:

.c-narwhal {
  float: left;
}

.c-narwhal__horn {
  display: block;
}

.c-narwhal__horn--pretty-big {
  font-size: large;
}

References

Styleguide

Installation

Node 8.1.4 +

cd styleguide && npm install

Tasks npm

Run application

npm run start
npm run css:compile

Run application and watch changes

npm run server
npm run css:watch

Note: you need to have nodemon installed

npm install -g nodemon

How to release a new version

It's easy!

Update the package version in the package.json file

And add a summary of the changes in the CHANGELOG.md file

After that, you just need to publish on npm:

$ npm publish