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

boxes-css

v0.5.1

Published

A CSS framework for building landing pages that lets you focus on writing content, not code!

Downloads

11

Readme

boxes.css — focus on writing landing page content, not CSS

Newly released full documentation: BOXES.CSS DOCUMENTATION

Boxes.css is the framework I've always dreamed of.

I want to launch new projects every week or two, but I need to:

  1. Write content
  2. Drop it into a page
  3. Customize the HTML & CSS
  4. Be driven crazy by HTML & CSS bugs
  5. Make sure it looks good on every device

🥱

Boxes.css lets me just focus on the first two steps

  1. Write content
  2. Drop it into a page

And takes care of the rest:

  1. ~~Customize the HTML & CSS~~
  2. ~~Be driven crazy by HTML & CSS bugs~~
  3. ~~Make sure it looks good on every device~~

It's all you need to design a beautiful landing page!

include the CSS

minified version

<link rel="stylesheet" type="text/css" href="https://unpkg.com/browse/[email protected]/boxes.min.css">

unminified version

<link rel="stylesheet" type="text/css" href="https://unpkg.com/browse/[email protected]/boxes.css">

types of boxes

always use section elements to define boxes

Use class .media when wanting to include an image, animation, or video on the page

  • Contains an img, svg, or video element
  • Will maintain the media's aspect ratio (5:4) no matter what screen size the user is using (mobile / tablet / desktop)

Use class .content when wanting to include headings, text, or form controls on the page

  • Contains h1-h6, p, div, form, input, button, a
  • Will maintain the box's aspect ratio (5:4) on desktop devices only — on smaller screen sizes (e.g. tablet, mobile) the amount of content will determine the box's size

what is a box

a box is a section of content (text or media) that can appear next to other sections of content

it's always responsive by default and maintains its aspect ratio where it makes sense (esp. .media boxes)

the goal of a box is that you define how it looks on one screen size (e.g. desktop) and it automatically will adapt to look good on every other screen size (e.g. tablet & mobile)

headings

use classes .h1, .h2, etc. to determine size

floating labels with inputs

In order to save room, while also being accessible, boxes.css has the concept of an input that contains its own label

When the input is clicked, its label floats slightly above it so the user can type.

Example:

Floating label

Syntax:

<fieldset>
  <input id="email" type="email" name="email" placeholder="Enter your email address">
  <label for="email">Enter your email address</label>
</fieldset>

dealing with media

always create media that has a 5:4 ration (width:height)

this will ensure that part of your media is never cut off on any screen size and will always look the same no matter what size device the user is viewing your website on

tip: since wide content works better on desktop and tablet and tall content works better on mobile, you may want to consider making one pieces of media in both formats (wide and tall) and only show the wide version on tablet and desktop and the tall one on mobile

how to make SVGs responsive

  1. make a vector image with 5:4 width to height ratio
  2. export an SVG with viewBox attribute
  3. put the SVG image in a .media box

source