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

vertical-rhythm

v0.3.3

Published

Put some vertical rhythm in your CSS. LESS, Stylus and SASS versions included.

Downloads

15

Readme

Vertical Rhythm

Create typographical vertical rhythm in your CSS. LESS, Stylus and SASS/SCSS versions included.

This should get you to your goal faster than starting from scratch. Please customize it to work with your own project.

Example list styles

vertical-rhythm.scss and vertical-rhythm.styl

.rhythm {
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list {
    margin-top: ($line-height-base / 2);
  }
}

vertical-rhythm.sass

.rhythm
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list
    margin-top: ($line-height-base / 2)

vertical-rhythm.less

.rhythm {
  h3 + ul.bullet-list,
  h3 + ul.numbered-list,
  h3 + ul.alpha-list,
  h3 + ol.numbered-list {
    margin-top: (@line-height-base / 2);
  }
}

Designed to be mostly framework agnostic, although the baseline styles for normalizing are borrowed from Bootstrap. This means vertical-rhythm.{less,styl,scss,css} will make a good drop-in component for Bootstrap, but it can also be used standalone for any project.

How does this work?

In vertical-rhythm.{less,styl,scss,css} you will find two sections:

I. Typography Base

If you use Bootstrap or Foundation, just get rid these base styles before you drop vertical-rhythm.{less,styl,sass,css} into your project. This section is not strictly necessary for creating vertical rhythm, but the styles here are a great starting point for any project.

II. Vertical Rhythm

The .rhythm styles are designed with sensible defaults that you should be able to use as is. Expect to use these styles as examples though, because every project is different and you will probably need to customize before you achieve vertical rhythm with the typography in your own project.

Get Started

Issues, Requests and Contributions

  • Have a suggestion, requests or correction? Please create an issue.
  • Contributions and requests are very welcome.
  • Please comment the code in your requests so I can easily and quickly evaluate it.

Author

Jon Schlinkert

Credit & Attribution

The baseline section in this vertical-rhythm component was originally based on type.less from the excellent Bootstrap, by Mark Otto and Jacob Thornton.