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

css-em-grid

v0.1.0

Published

EM grid in pure HTML5/CSS3 to include during mobile-first, device-agnostic, responsive development workflows. Stylus/Jade includes and HTML partial versions available.

Downloads

3

Readme

css-em-grid

EM grid is a pure HTML5/CSS3 tool to help with mobile-first, device-agnostic, responsive development workflows. Stylus/Jade includes and HTML partial versions are available. It's all on GitHub and NPM.

npm install css-em-grid --save-dev

For now you can just grab or link to stuff in

node_modules/css-em-grid/styles

Why?

First of all, you hate grid frameworks like Foundation and Bootstrap. They add unnecesary weight and syntax to remember. If you ever do need a grid, you build one for your needs in a few lines.

You are a true modern, mobile-first, device-agnostic web developer who always starts with something that looks great on anything 20em and smaller (320px if you haven't messed with your base font, which you haven't 'cuz you're smart) and work your way up through media queries while resizing without a care to any device-specific pixel width. You give yourself about 1em to play with and notice you need granularity in different widths as you get larger. You love EMs and percentages and size everything in them so your responsive site is bullet-proof against even users zooming in or out in their browsers. In fact, you actually like the relative nature of the em font-sizing because you've organized your content and styles so you expect all your fonts to resize based on one base-font em change, after all, that's why it was created that way.

Your eyes aren't so good even though you're not very old and you hate squinting at width using whatever tool you use during your resizing sessions. You prefer not to make a half-dozen extra clicks to even see the viewport size when you do. You probably have livereload working like a champ and prefer to use the mouse as little as possible.

But most of all, you hate that webkit browsers such as Chrome do not count the 17 or so pixels in your viewport's right edge which means you never see those 17 pixels because you are buildng SPAs that always trigger the scrollbar and since 17 pixels is about 1em, your responsive adjustment buffer, this pisses you off enough find or make something to get around it.

Welcome.

You just might like this visual guide through the perils and power of em sizing that you don't even have to think about much.

Nothing fancy, no JavaScript, no extensions to load in your browser, etc. Just add the position fixed em grid to your page during workflow, adjust to taste with the #em-grid selector and you'll be seeing rainbows of ems in no time.

Then again, you could just use a Wordpress template.